Repository navigation
frontend: Start the main window's hotkey IDs as invalid - #507
Merged
Merged
Conversation
Several hotkey pairs (replay buffer, virtual camera, ...) are registered only with their feature, but ClearHotkeys() unregisters all of them, so on shutdown it passed uninitialised IDs to obs_hotkey_pair_unregister (valgrind: use of uninitialised value in unregister_hotkey_pair, obs-hotkey.c:882). The IDs now start as OBS_INVALID_HOTKEY_*_ID, which unregister ignores. Refs #448 Local-Gate: v1 tree=b28a4507decbbc184980160a968fb80acaadb0db secs=352 lanes=lint:run,rust-test:run,tier2-linux:run Ci-Attestation: {"at":1791880505,"gate":"rust/all/fmt","host":"linux-x86_64","key":"ff7b386352c71128702e244f6e0a44cfd14cfe6c8db869d76a8737791c8d6938","lane":"lint","parents":["558f8b809b2dc5f38443482efac1e17f88d7e49c"],"secs":39,"stamp":"52febcbe3f5a243bffc30f304ac1d855","tree":"b28a4507decbbc184980160a968fb80acaadb0db","v":1,"via":"run"} Ci-Attestation: {"at":1791880505,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"ff7b386352c71128702e244f6e0a44cfd14cfe6c8db869d76a8737791c8d6938","lane":"lint","parents":["558f8b809b2dc5f38443482efac1e17f88d7e49c"],"secs":39,"stamp":"fb989f989f303191b88722ead5007909","tree":"b28a4507decbbc184980160a968fb80acaadb0db","v":1,"via":"run"} Ci-Attestation: {"at":1791880505,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"6f89d32b60eddc8ff061ca1744b71b7269f7a0e63844471d921486944fde2b62","lane":"rust-test","parents":["558f8b809b2dc5f38443482efac1e17f88d7e49c"],"secs":211,"stamp":"572e743d61297d5bedb96ce3b2f20f9f","tree":"b28a4507decbbc184980160a968fb80acaadb0db","v":1,"via":"run"} Ci-Attestation: {"at":1791880505,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"9caa03f2e95678230ae116912ab2ba911b1a46ae0ea8f75ced25268d249d7be1","lane":"tier2-linux","parents":["558f8b809b2dc5f38443482efac1e17f88d7e49c"],"secs":102,"stamp":"4cb0a589d8e4b14ca9bdb2ab51fb2449","tree":"b28a4507decbbc184980160a968fb80acaadb0db","v":1,"via":"run"}
This was referenced Oct 16, 2026
zackees
added a commit
that referenced
this pull request
Oct 16, 2026
…969) (#979) * test: Target-adding CI jobs must not use the soldr toolchain cache (RED, Refs #969) * ci: Install the toolchain fresh in jobs that add Rust targets (GREEN, Fixes #969) setup-soldr's solo-toolchain-cache keys on declared targets only (tnone) and saves rustup's records from after the build with the file list from before it (forge-ci/setup-soldr#507). The lint, rust-test and cross lanes add targets mid-job, so the saved entry claimed x86_64-pc-windows-gnu was installed without its std; every later run failed with E0463. Turn the cache off in those two jobs until #507 is fixed (costs a few seconds of rustup install).
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.
Part of #448. valgrind's clean-shutdown run (sanitizers run 38360696761) reports use of uninitialised value in
unregister_hotkey_pair(libobs/obs-hotkey.c:882) ←obs_hotkey_pair_unregister←OBSBasic::ClearHotkeys()←applicationShutdown().OBSBasic.hppdeclaredstreamingHotkeys,replayBufHotkeys,vcamHotkeysand the others with no initializer. Some pairs are only registered with their feature, butClearHotkeys()unregisters all of them. The fix starts every one atOBS_INVALID_HOTKEY_PAIR_ID/OBS_INVALID_HOTKEY_ID, whichunregister_hotkey(_pair)already ignore (id >= next_id). Upstream frontend code.Labelled
ci-fullso the OBS app builds (release-gating since #506) compile this header change on every platform. I created the label:check-eventalready reads it, but it didn't exist. The local gate passed and is stamped.