Skip to content

bug: transition swap can still store a cycle (hang) #2499

Closed

Description

@rdoupe

Follow-up to #2486 / #2487 (found while fixing them, reproduced with a probe on top of #2498).

obs_transition_swap_begin() (copy_source_state()) still stores a source in the destination transition's slot when obs_source_add_active_child() fails because of a cycle (the destination transition is inside that source). #2497 fixes the active flag, but the slot still holds the cycle. Showing the scene afterwards walks into the transition again and re-locks its mutex: the probe (swap, then show the scene) hung past 5 seconds. The audio thread's walk can likely hit the same hang.

Fix: when the add fails in copy_source_state(), store nothing in that slot (release the reference), matching #2498's refusal in obs_transition_set().

Activity

  1. rdoupe commented on Oct 26, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: #2499 (after #2497 and #2498).

  2. added
    ready
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions