Skip to content

bug: frontend: OBS hangs on SIGINT shutdown after the outputs are destroyed #462

Closed

Description

@zackees

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.

Activity

  1. zackees commented on Oct 13, 2026

    @zackees
    MemberAuthor

    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.

  2. added
    claimed
    on Oct 13, 2026
  3. zackees commented on Oct 13, 2026

    @zackees
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions