Repository navigation
fix: avoid frontend shutdown crash before output setup - #432
Merged
Merged
Conversation
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"}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #127.
The frontend can receive
aboutToQuitbefore video initialization creates an output handler.closeWindow()now checks for that handler before querying or stopping the virtual camera.RED:
7daa01b41adds a focused shutdown test. Running it with UBSan fails withmember call on null pointerinVirtualCamShutdown.hpp.GREEN:
80cc83962guards the handler and uses the tested helper incloseWindow(). The focused UBSan test passes. The rest ofcloseWindow()has no direct output-handler dereference.Validation:
./lintand./unittestpassed. 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 as80cc83962.