Skip to content

Frontend: obs_frontend_remove_event_callback called after frontend API teardown on every shutdown #156

Closed

Description

@zackees

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:

Fix

Drop the destructor's redundant removal, or have widgets track whether they're still registered. A breakpoint on callbacks_valid_ would confirm the caller.

Activity

  1. added
    bug
    on Oct 10, 2026
  2. zackees commented on Oct 13, 2026

    @zackees
    MemberAuthor

    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.

  3. added
    claimed
    on Oct 13, 2026
  4. added a commit that references this issue on Oct 13, 2026
    c5a0809
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

    bugclaimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions