Skip to content

test/cmocka: test_scene_canvas_characterization segfaults on Windows (scene_find_source_recursive) #2543

Closed

Description

@zackees

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.

Activity

  1. added
    bug
    P1
    size:S
    on Oct 27, 2026
  2. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    Claiming: #2543

    1. Give the fixture transition an audio_render so it registers and the transition cases run.
    2. 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.
  3. added
    ready
    on Oct 27, 2026
  4. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1bugreadysize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions