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
{{ message }}
Repository navigation
bug: frontend: OBS hangs on SIGINT shutdown after the outputs are destroyed #462
Found by the sanitizer launch for #448/#449 (run, master after #457). The harness starts OBS headless (Xvfb, fresh profile), sends SIGINT after 45 s, and SIGKILLs it after a grace period (60 s, or 240 s under valgrind).
All three passes (ASan, TSan, valgrind) end with app exit=137: OBS starts shutting down and never finishes. The last log lines are always the same:
info: ==== Shutting down ==================================================
debug: source 'Scene' destroyed
info: All scene data cleared
debug: service 'default_service' destroyed
debug: encoder 'simple_archive_audio' destroyed
debug: encoder 'simple_video_stream' destroyed
debug: encoder 'simple_aac' destroyed
debug: output 'simple_file_output' destroyed
The X11 errors that follow appear after the harness kills Xvfb, once timeout has given up. They come after the hang and don't cause it.
Since all three tools stall at the same point, this is probably a real hang, not sanitizer slowdown. Next: capture all-thread backtraces at the hang (the harness should run gdb -batch -ex 'thread apply all bt' -p <obs pid> before SIGKILL), then fix. Blocks the clean-shutdown parts of #448 and #449.
Claiming: #462. Step 1: the sanitizer harness captures all-thread gdb backtraces of OBS when it hangs on SIGINT, before SIGKILL, and starts Xvfb before the unit tests too (test_audio_io fails under the harness with 'Unable to open X display'). Step 2: fix the hang from those backtraces.
Not an OBS hang. With #473 the harness sends SIGINT to OBS itself, and OBS shuts down cleanly with exit 0 (sanitizers run 38360696761, ASan). The old timeout -s INT … dbus-run-session -- obs signalled dbus-run-session instead, which took dbus-daemon down. OBS then began shutting down because the session bus was gone and stalled waiting on it. That's a vanished-bus corner case, not a SIGINT shutdown hang.
Activity
zackees commentedon Oct 13, 2026
Claiming: #462. Step 1: the sanitizer harness captures all-thread gdb backtraces of OBS when it hangs on SIGINT, before SIGKILL, and starts Xvfb before the unit tests too (
test_audio_iofails under the harness with 'Unable to open X display'). Step 2: fix the hang from those backtraces.rust/tools/sanitize: Signal and trace OBS, not dbus-daemon
zackees commentedon Oct 13, 2026
Not an OBS hang. With #473 the harness sends SIGINT to OBS itself, and OBS shuts down cleanly with exit 0 (sanitizers run 38360696761, ASan). The old
timeout -s INT … dbus-run-session -- obssignalled dbus-run-session instead, which took dbus-daemon down. OBS then began shutting down because the session bus was gone and stalled waiting on it. That's a vanished-bus corner case, not a SIGINT shutdown hang.rust/tools/sanitize: Capture a backtrace when OBS hangs on shutdown