Skip to content

[26.1.2 NeoForge] Sampler threads stuck throwing uncaught exceptions on server crash, indefinitely holding up server process / console #564

@Appulcake

Description

@Appulcake

Description

When a server crash occurs, instead of the server crashing and shutting down (upon which the server process exits and thus e.g. server admin software can detect the crashed state and restart server), the server process gets indefinitely stuck throwing uncaught exceptions in various spark sampler threads.

Reproduction Steps

  1. Set up a 26.1.2 Neoforge client + server (I used 26.1.2.17, latest as of this, but this's occurred on earlier NF versions on 26.1.2) and add spark mod (spark-1.10.172-neoforge)
  2. Cause a server crash - could be from seemingly any source, I've just been using known problematic mod interactions that cause such a crash, like adding sophisticatedcore-26.1-1.4.25.1687 and sophisticatedbackpacks-26.1-3.25.47.1680, as on this version if you give yourself a backpack and try to open it, the server crashes (I could also reproduce the same behaviour with entirely different sets of mods and causing a crash with them)
  3. On server crash, instead of the server process exiting after finishing the crash report, the process will be indefinitely stuck throwing exceptions

Expected Behaviour

Server process to exit after crash

Platform Information

  • Minecraft Version: 26.1.2
  • Platform Type: Server
  • Platform Brand: NeoForge
  • Platform Version: 26.1.2.17

Spark Version

v1.10.172

Logs and Configs

Latest.log: latest.log
Debug.log: debug.log

Do note that this exception spam is absent in latest/debug logs (since I suspect server thread is already closed/gone at this point), and is only further present in console logs (visible on admin panels or terminal/console windows across various operating systems), example on Windows host where this very rapidly gets spammed indefinitely:

Tall screenshot: Image

Extra Details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions