Repository navigation
frontend: Clean up failed video initialization and log EGL diagnostics - #655
Conversation
|
CI identified the existing #649 shutdown race: macOS test_preview_audio_sources segfaults during scene/group teardown, with Double destroy errors. The failure is in the test restored by #620, and is covered by PR #653. That PR has passed Linux/macOS/Windows tests and is waiting for its Flatpak build. I will rebase this PR onto the fix after it lands, restamp the local gate, and rerun CI. The #633 focused tests and ASan/LSan failed-startup regression remain green. |
|
Validation audit for #635: both failed Tier 2 jobs in run 38482065088 fail on test_preview_audio_sources with a segmentation fault (Windows test 82; macOS test 87). Both logs report the double-destroy symptom described by #649/#653. PR #653 is the existing claimed fix for that shutdown chain. Once it is validated and merged, this PR needs a rebase and another Tier 2 run; these failures are not a passing validation result. |
…lure (#633 GREEN) Local-Gate: v1 tree=1f211cdc2cfe8a6d312036c6d6d4c38801df2786 secs=385 lanes=lint:run,rust-test:run,cross:run,tier2-linux:run Ci-Attestation: {"at":1791934070,"gate":"rust/all/fmt","host":"linux-x86_64","key":"72779efdc141003ba17f178a48fc8306b665d811d964472be5e6dfda5f6974ac","lane":"lint","parents":["68184856d5b289d1bdc51928f64a50363c419e16"],"secs":66,"stamp":"68a0d51c6debab9537932f0da7794649","tree":"1f211cdc2cfe8a6d312036c6d6d4c38801df2786","v":1,"via":"run"} Ci-Attestation: {"at":1791934070,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"72779efdc141003ba17f178a48fc8306b665d811d964472be5e6dfda5f6974ac","lane":"lint","parents":["68184856d5b289d1bdc51928f64a50363c419e16"],"secs":66,"stamp":"f7b95562f9230ca56b301c20b2db8cae","tree":"1f211cdc2cfe8a6d312036c6d6d4c38801df2786","v":1,"via":"run"} Ci-Attestation: {"at":1791934070,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"eb8cdfa9a2ec844d69c3bc62168fe9dfc4c55dc26f42d4bd2cbf8355ef202569","lane":"rust-test","parents":["68184856d5b289d1bdc51928f64a50363c419e16"],"secs":99,"stamp":"9bce54216ea6c1411c6dbeb29b4bb9f4","tree":"1f211cdc2cfe8a6d312036c6d6d4c38801df2786","v":1,"via":"run"} Ci-Attestation: {"at":1791934070,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"6b40f4afdb9f3e8ecd32d55c45e176eaf3fe08cefd9514dcbf3e699e3ee44415","lane":"cross","parents":["68184856d5b289d1bdc51928f64a50363c419e16"],"secs":82,"stamp":"0de2c6b163e642a9049da1e2954be328","tree":"1f211cdc2cfe8a6d312036c6d6d4c38801df2786","v":1,"via":"run"} Ci-Attestation: {"at":1791934070,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"6b40f4afdb9f3e8ecd32d55c45e176eaf3fe08cefd9514dcbf3e699e3ee44415","lane":"cross","parents":["68184856d5b289d1bdc51928f64a50363c419e16"],"secs":82,"stamp":"8ff8ee2623bc904a8403d383d3ec98ee","tree":"1f211cdc2cfe8a6d312036c6d6d4c38801df2786","v":1,"via":"run"} Ci-Attestation: {"at":1791934070,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"6b40f4afdb9f3e8ecd32d55c45e176eaf3fe08cefd9514dcbf3e699e3ee44415","lane":"cross","parents":["68184856d5b289d1bdc51928f64a50363c419e16"],"secs":82,"stamp":"a0aa3b5994a06e362e1b5b0b1ff01609","tree":"1f211cdc2cfe8a6d312036c6d6d4c38801df2786","v":1,"via":"run"} Ci-Attestation: {"at":1791934070,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"6b40f4afdb9f3e8ecd32d55c45e176eaf3fe08cefd9514dcbf3e699e3ee44415","lane":"cross","parents":["68184856d5b289d1bdc51928f64a50363c419e16"],"secs":82,"stamp":"c19e9590eaa692da5d91121270fe99b9","tree":"1f211cdc2cfe8a6d312036c6d6d4c38801df2786","v":1,"via":"run"} Ci-Attestation: {"at":1791934070,"gate":"rust/x86_64-apple-darwin/clippy","host":"linux-x86_64","key":"6b40f4afdb9f3e8ecd32d55c45e176eaf3fe08cefd9514dcbf3e699e3ee44415","lane":"cross","parents":["68184856d5b289d1bdc51928f64a50363c419e16"],"secs":82,"stamp":"ea18c140419f22aca7b16964ac67229e","tree":"1f211cdc2cfe8a6d312036c6d6d4c38801df2786","v":1,"via":"run"} Ci-Attestation: {"at":1791934070,"gate":"rust/x86_64-apple-darwin/dylint","host":"linux-x86_64","key":"6b40f4afdb9f3e8ecd32d55c45e176eaf3fe08cefd9514dcbf3e699e3ee44415","lane":"cross","parents":["68184856d5b289d1bdc51928f64a50363c419e16"],"secs":82,"stamp":"770b3dc71b9f53bff1d30800b37412ef","tree":"1f211cdc2cfe8a6d312036c6d6d4c38801df2786","v":1,"via":"run"} Ci-Attestation: {"at":1791934070,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"7215798904a825dc401ea8d7f1cb3e179c3389eb9b01d8849ee4c8e85b932f71","lane":"tier2-linux","parents":["68184856d5b289d1bdc51928f64a50363c419e16"],"secs":138,"stamp":"4d604c6e7506ccb45c5d786227daa08a","tree":"1f211cdc2cfe8a6d312036c6d6d4c38801df2786","v":1,"via":"run"}
cf66830 to
5a94e7c
Compare
|
Rebased on #653 head 2747512, replacing PR head cf66830. All four #633 patches are unchanged (range-diff), and the same reviewer confirmed clean integration. The fresh gate passed lint, Rust, cross and 190 C tests per OFF/ON build with identical exports. The rebuilt ASan/LSan app also passes the forced-EGL failure regression with zero OBS allocations. This PR waits for #653 to land before merge. |
Failed video initialization now destroys the partially initialized main window, detaches its frontend callbacks, and releases the CPU sampler and shortcut event filter. Normal shutdown clears the sampler pointer so the destructor cannot free it twice.
Wayland EGL display/initialization failures log the EGL error code,
EGL_PLATFORM, andWAYLAND_DISPLAY. Distribution logging reads exact os-release keys, removes quoting, and usesBUILD_IDorrollingwhen a known distribution has noVERSION_ID.Fixes #633.
Validation:
92a24b2aa: four distribution tests and two EGL tests fail against the old behavior. All six pass with the fix.68184856d: after the window is destroyed, forced EGL failure leaves one OBS allocation. LSan identifies a 64-byte allocation atos_cpu_usage_info_startcalled byOBSBasic::OBSBasic, plus the shortcut filter.5a94e7ce110e:test/video-init-failure.shagainst a full ASan/LSan app build forces EGL failure, dismisses the error, and verifies zero OBS allocations and no frontend startup leak. The rebuilt app passes on libobs: Wait for the whole destroy chain in obs_shutdown (UAF, Windows crash) #653's fix as well. Fontconfig still reports its own external allocations.866aa8b0a, treefd5b7dd00850): lint, Rust tests, cross validation, and 190 C tests in each OFF/ON configuration; exported libobs symbols are identical.