Skip to content

test/cmocka: Fix transition fixture; characterize Windows skip (#2543) - #2545

Merged
zackees merged 5 commits into
masterfrom
fix/2543-scene-canvas-windows
Oct 27, 2026
Merged

zackees merged 5 commits into
masterfrom
fix/2543-scene-canvas-windows

Conversation

@zackees

@zackees zackees commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Fixes #2543

  • Add the required audio_render callback to the characterization transition fixture; both transition cases now execute on Linux.
  • Characterized, not endorsed: skip the whole graphics-less scene/canvas/transition characterization executable on Windows via CTest exit code 77. Cargo-built Windows cores crashed intermittently during deferred source destruction in multiple cases, including with RUN_SERIAL. A one-case skip and serial execution were tried and reverted. All 13 cases and their assertions remain active on Linux. This is the explicit fallback accepted by test/cmocka: test_scene_canvas_characterization segfaults on Windows (scene_find_source_recursive) #2543; follow-up Restore Windows scene lookup characterization after Cargo-core teardown crash #2547 tracks diagnosing the cause and restoring Windows coverage.
  • Retain per-executable WER dump capture in the Windows validator for both Cargo cores to aid future diagnosis; no dump was produced on this runner in the failed runs, so the cdb rerun remains a fallback.

RED: Windows Tier 2 crashed on runs 40429363810 (Cargo Rust core), 40436320792 (Cargo C-reference), and 40439283995 (Cargo Rust core with RUN_SERIAL). GREEN: Linux Tier 2 passed 573/573 in both builds plus three focused repeats each; lint passed. Final Windows CTest skip result pending. Do not merge if Windows fails.

…indows crash stacks (#2543)

The fixture transition lacked audio_render, so obs_register_source refused
it and the transition cases always skipped. The Windows crash-stack step
ran a failed test once under cdb; the #2543 crash is intermittent and did
not recur there, so retry up to 20 times until cdb reports an exception.
The scene characterization crash happened in the Cargo-built core, but did not recur on any of 20 isolated cdb retries. Enable per-executable local dumps during that suite and analyze the faulting process rather than a rerun. Fall back to the existing cdb rerun if WER cannot write a dump.
@zackees

zackees commented Oct 27, 2026 •

Copy link
Copy Markdown
Member Author

Windows RED on the first PR run: Cargo-built obs.dll segfaulted during deferred destruction of char find inner after the scene lookup, while both CMake cores and the Cargo C-reference core passed. None of 20 isolated cdb reruns reproduced it, so commit a2e46ab captures a Windows Error Reporting dump from the original failing process and analyzes that with cdb. Linux Tier 2 completed in both builds: 573/573 each, plus three repeats of the characterization test in each build. Waiting for Windows to capture the original stack before deciding the root fix.

@zackees zackees changed the title test/cmocka: Register the scene canvas transition fixture; retry Windows crash stacks (#2543) test/cmocka: Register scene transition fixture and capture Windows crash dump (#2543) Oct 27, 2026
…fixture (#2543)

The graphics-less group fixture intermittently segfaults only in the Cargo-built Windows core during deferred source destruction. Both reference builds pass; 20 isolated debugger reruns failed to reproduce. Skip this one characterization on Windows per the issue fallback while preserving its Linux assertions and all other Windows cases.
@zackees zackees changed the title test/cmocka: Register scene transition fixture and capture Windows crash dump (#2543) test/cmocka: Fix transition fixture and characterize Windows scene skip (#2543) Oct 27, 2026
@zackees

zackees commented Oct 27, 2026

Copy link
Copy Markdown
Member Author

Follow-up #2547 tracks diagnosing the Cargo-core teardown crash and restoring the Windows-only characterization skipped in f184213. #2543 explicitly accepts this documented skip as the fallback; the PR retains all Linux assertions and the other Windows cases.

A second Windows crash occurred in scene_item_set_order despite skipping scene_find_source_recursive, this time in the Cargo C-reference core. Restore all assertions and run the graphics-less fixture serially, like other graphics-sensitive tests. Capture WER dumps during both Cargo suites if it still fails.
@zackees zackees changed the title test/cmocka: Fix transition fixture and characterize Windows scene skip (#2543) test/cmocka: Register transition fixture and isolate Windows scene test (#2543) Oct 27, 2026
)

Neither skipping one case nor RUN_SERIAL stopped the intermittent crash during deferred source destruction in Cargo-built Windows cores. The #2543 fallback permits a documented, characterized-not-endorsed Windows skip. Return CTest skip code 77 before starting OBS on Windows, retaining every assertion and case on Linux. #2547 tracks restoring Windows coverage.
@zackees zackees changed the title test/cmocka: Register transition fixture and isolate Windows scene test (#2543) test/cmocka: Fix transition fixture; characterize Windows skip (#2543) Oct 27, 2026
@zackees
zackees added this pull request to the merge queue Oct 27, 2026
Merged via the queue into master with commit bc3db16 Oct 27, 2026
36 checks passed
@zackees
zackees deleted the fix/2543-scene-canvas-windows branch October 27, 2026 03:49
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In review to Done in obs-rust Multiview Oct 27, 2026
@rdoupe

rdoupe commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

Merged as bc3db16 and closed the Windows crash issue (#2543). What fixed it: the transition fixture got its audio_render, so its cases run; the Windows crash in the scene/canvas characterization was held off by skipping that executable on Windows (CTest exit 77), with all 13 Linux cases kept.

What was left: the root cause and the Windows coverage. The follow-up issue for them (#2547) found the cause (a source moved into a canvas pointed at the canvas's name-list mutex, which the canvas freed before the source's deferred destroy ran) and fixed it in PR #2581.

Still open: the restored Windows run has not been seen yet, because the merge-queue run for #2581 skipped every Windows lane. The next nightly Windows Tier 2 run will show it, and the header cleanup in #2586 / PR #2587 tracks it.

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

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

test/cmocka: test_scene_canvas_characterization segfaults on Windows (scene_find_source_recursive)

2 participants