You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an uncaught exception occurs after AppLauncher initialization, this handler runs during interpreter shutdown. Kit fast shutdown exits with the default SimulationApp.close(exit_code=0), replacing the pending nonzero Python exit status.
As a result, launchers such as torchrun, CI systems, and workflow schedulers report failed training processes as successful. We observed an unhandled exception and traceback from every torchrun worker, followed by torchrun and the workflow task exiting with code 0.
Expected behavior
Uncaught exceptions preserve a nonzero process exit code.
Actual behavior
The traceback is printed, but the process exits with code 0.
Regression
The behavior was introduced by commit 0090622 and is present in v3.0.0-beta2. v2.3.2 and v3.0.0-beta predate the change.
The current SimulationApp.close(exit_code=...) documentation explicitly notes that a nonzero value is required to prevent fast shutdown from replacing the status with 0.
Activity
RandomOakForest commentedon Jul 24, 2026
Thank you for posting this. The team will review it.
[-]AppLauncher atexit handler masks uncaught exceptions as exit code 0[/-][+][Bug Report] AppLauncher atexit handler masks uncaught exceptions as exit code 0[/+]Make AppLauncher teardown truthful and re-entrancy-safe; document mGP…
Make AppLauncher teardown truthful and re-entrancy-safe; document mGP…