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
Frontend: obs_frontend_remove_event_callback called after frontend API teardown on every shutdown #156
Found during the sanitizer launch passes (round 2 meta issue linked as parent). Upstream OBS code, unchanged in this fork.
Symptom
Every normal shutdown logs:
error: Tried to call obs_frontend_remove_event_callback with no callbacks!
Cause
OBSBasic::closeWindow sends OBS_FRONTEND_EVENT_EXIT and then destroys the frontend API with obs_frontend_set_callbacks_internal(nullptr). A widget torn down after that still calls obs_frontend_remove_event_callback. There are two candidates, and the log doesn't say which:
Drop the destructor's redundant removal, or have widgets track whether they're still registered. A breakpoint on callbacks_valid_ would confirm the caller.
Claiming: #156. Both candidates remove their event callback on EXIT and again later (~AudioMixer, OBSBasicStats::closeEvent). Plan: each tracks whether its callback is still registered and removes it once. These are Qt widgets with no unit-test seam, so verification is the full builds plus a launch/quit log check if I can get one.
Activity
zackees commentedon Oct 13, 2026
Claiming: #156. Both candidates remove their event callback on EXIT and again later (
~AudioMixer,OBSBasicStats::closeEvent). Plan: each tracks whether its callback is still registered and removes it once. These are Qt widgets with no unit-test seam, so verification is the full builds plus a launch/quit log check if I can get one.frontend: Remove the mixer and stats event callbacks only once