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
libobs: source->removed is a plain bool read by the render threads (data race) #2105
obs_source_remove (UI thread) writes source->removed at libobs/obs-source.c.h:963. The render and graphics threads read it with no synchronization: obs_source_removed (:976), obs-scene.c.h:2075 and obs_view_source_removed (obs-view.c.h:80). TSan run 40074741825 (master) has 28 reports of obs-source.c.h:976 against :963.
Fix: volatile bool removed in obs-internal.h (not a public header), with os_atomic_load_bool/os_atomic_set_bool at the five sites, as #2083 did for activate_refs and show_refs. The flag only ever goes false to true, so the visible behavior is unchanged. Low risk (local).
Activity
zackees commentedon Oct 24, 2026
Claiming: this issue.
libobs: Make a source's removed flag atomic (obs-rust#2105) (obs-rust…