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
test/cmocka: test_scene_canvas_characterization segfaults on Windows (scene_find_source_recursive) #2543
Master's Windows Rust Tier 2 lane (Validate Tier 2 on Windows (libobs C vs with Rust)) fails in a test #2508 added. #2508's PR CI selected only Linux, so this is the first Windows run. Seen on #2514, run 40422466703, job 121923128937:
error: Required value 'audio_render' for 'test_scene_canvas_char_transition' not found. obs_register_source failed.
[ RUN ] scene_get_ref
[ OK ] scene_get_ref
[ RUN ] scene_find_source_recursive
278/296 Test #239: test_scene_canvas_characterization .............***Exception: SegFault 0.98 sec
Every PR that selects the Windows Tier 2 lane is red until this is fixed.
Where:scene_find_source_recursive (test/cmocka/test_scene_canvas_characterization.c:149) builds a scene with one leaf and a group (obs_scene_add_group), then calls obs_scene_find_source[_recursive]. obs_scene_find_source_recursive itself NULL-checks the scene (libobs/obs-scene.c.h:1824). Suspects: obs_scene_add_group or group creation without a graphics context on Windows, or the leaf fixture source.
Separate, smaller problem: the fixture transition registers OBS_SOURCE_VIDEO without audio_render, so obs_register_source refuses it, and the transition cases always skip, on every platform. Give it an audio_render (or the right flags) so those cases run.
Acceptance: the test runs on windows-2025-vs2026 under both libobs builds without crashing. The root cause is fixed, or, if the test has to skip on Windows, the reason is recorded as a "characterized, not endorsed" note. The transition fixture registers.
Give the fixture transition an audio_render so it registers and the transition cases run.
Find the root cause of the intermittent Windows segfault in scene_find_source_recursive. The crash-stack rerun in job 121923128937 passed all 13 cases, so this looks like uninitialized or freed memory, not a deterministic NULL. Fix it in libobs or the fixture.
One PR; first push today.
PR #2545 merged as bc3db16. The transition fixture now registers and its cases run on Linux. Windows Rust Tier 2 passes with the graphics-less scene/canvas characterization executable explicitly skipped (CTest exit 77, characterized not endorsed), as this issue allowed after crashes in both Cargo-built cores even under RUN_SERIAL. Linux retains all 13 cases and assertions. Follow-up #2547 tracks diagnosing deferred source destruction and restoring Windows coverage.
Activity
zackees commentedon Oct 27, 2026
Claiming: #2543
audio_renderso it registers and the transition cases run.scene_find_source_recursive. The crash-stack rerun in job 121923128937 passed all 13 cases, so this looks like uninitialized or freed memory, not a deterministic NULL. Fix it in libobs or the fixture.One PR; first push today.
ci: Capture original Windows scene test crash with WER dump (#2543)
test/cmocka: Characterize Windows scene lookup without running flaky …
test/cmocka: Isolate scene canvas characterization in CTest (#2543)
test/cmocka: Skip graphics-less scene characterization on Windows (#2543
zackees commentedon Oct 27, 2026
PR #2545 merged as bc3db16. The transition fixture now registers and its cases run on Linux. Windows Rust Tier 2 passes with the graphics-less scene/canvas characterization executable explicitly skipped (CTest exit 77, characterized not endorsed), as this issue allowed after crashes in both Cargo-built cores even under RUN_SERIAL. Linux retains all 13 cases and assertions. Follow-up #2547 tracks diagnosing deferred source destruction and restoring Windows coverage.
test/cmocka: Fix transition fixture; characterize Windows skip (obs-r…