Skip to content

fix: avoid frontend shutdown crash before output setup - #432

Merged
zackees merged 2 commits into
masterfrom
fix/127-frontend-shutdown-null-handler
Oct 13, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/127-frontend-shutdown-null-handler

Conversation

@zackees

@zackees zackees commented Oct 13, 2026

Copy link
Copy Markdown
Member

Fixes #127.

The frontend can receive aboutToQuit before video initialization creates an output handler. closeWindow() now checks for that handler before querying or stopping the virtual camera.

RED: 7daa01b41 adds a focused shutdown test. Running it with UBSan fails with member call on null pointer in VirtualCamShutdown.hpp.

GREEN: 80cc83962 guards the handler and uses the tested helper in closeWindow(). The focused UBSan test passes. The rest of closeWindow() has no direct output-handler dereference.

Validation: ./lint and ./unittest passed. The latter passed Rust tests and Tier 2 C tests in both OFF and ON configurations; exported symbol sets were identical (1766 symbols). The local gate stamped HEAD as 80cc83962.

Local-Gate: v1 tree=baef75f53849700e8d990023a8dbb0af76a83c3b secs=146 lanes=lint:run,rust-test:run,tier2-linux:run
Ci-Attestation: {"at":1791859201,"gate":"rust/all/fmt","host":"linux-x86_64","key":"f199ea3d90e49f3a7358356bf015d463a583f2b14a11b35b79b096e50ddb4a8d","lane":"lint","parents":["7daa01b4114697e63ee7bb257ba22efac756641a"],"secs":14,"stamp":"29c7b60cfb2593d4c81a0b54865c6266","tree":"baef75f53849700e8d990023a8dbb0af76a83c3b","v":1,"via":"run"}
Ci-Attestation: {"at":1791859201,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"f199ea3d90e49f3a7358356bf015d463a583f2b14a11b35b79b096e50ddb4a8d","lane":"lint","parents":["7daa01b4114697e63ee7bb257ba22efac756641a"],"secs":14,"stamp":"3189976b42db0694257cd0d584f590c9","tree":"baef75f53849700e8d990023a8dbb0af76a83c3b","v":1,"via":"run"}
Ci-Attestation: {"at":1791859201,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"36020e7b8d0a772a3620b859c4b6c162ba5c76593de09f0ddd085d5b8a5e576b","lane":"rust-test","parents":["7daa01b4114697e63ee7bb257ba22efac756641a"],"secs":41,"stamp":"b26a07cc2dc12e9fdfcc372ffaa8cea6","tree":"baef75f53849700e8d990023a8dbb0af76a83c3b","v":1,"via":"run"}
Ci-Attestation: {"at":1791859201,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"97aae61becc841c4c861eaf84796e7d94d92e494a3dcb63bbd8d07315e89acf9","lane":"tier2-linux","parents":["7daa01b4114697e63ee7bb257ba22efac756641a"],"secs":91,"stamp":"2af44a8600d8b1d41818423f5af27f2b","tree":"baef75f53849700e8d990023a8dbb0af76a83c3b","v":1,"via":"run"}
@zackees
zackees merged commit 3504531 into master Oct 13, 2026
10 checks passed
@zackees
zackees deleted the fix/127-frontend-shutdown-null-handler branch October 13, 2026 02:42
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.

ASan/UBSan: NULL outputHandler deref in OBSBasic::closeWindow when quitting after failed video init

1 participant