Skip to content

frontend: Start the main window's hotkey IDs as invalid - #507

Merged
zackees merged 1 commit into
masterfrom
fix/hotkey-ids-uninit
Oct 13, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/hotkey-ids-uninit

Conversation

@zackees

@zackees zackees commented Oct 13, 2026

Copy link
Copy Markdown
Member

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.hpp declared streamingHotkeys, replayBufHotkeys, vcamHotkeys and the others with no initializer. Some pairs are only registered with their feature, but ClearHotkeys() unregisters all of them. The fix starts every one at OBS_INVALID_HOTKEY_PAIR_ID/OBS_INVALID_HOTKEY_ID, which unregister_hotkey(_pair) already ignore (id >= next_id). Upstream frontend code.

Labelled ci-full so the OBS app builds (release-gating since #506) compile this header change on every platform. I created the label: check-event already reads it, but it didn't exist. The local gate passed and is stamped.

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"}
@zackees zackees added the ci-full Run every CI job on this PR, including the release-gating OBS app builds and Flatpak label Oct 13, 2026
@zackees
zackees merged commit 7ea0db7 into master Oct 13, 2026
23 checks passed
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).
@zackees
zackees deleted the fix/hotkey-ids-uninit branch October 26, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-full Run every CI job on this PR, including the release-gating OBS app builds and Flatpak

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant