Skip to content

frontend: Log output starts refused while outputs are disabled - #818

Merged
zackees merged 2 commits into
obs-rust:masterfrom
vpacher:fix/output-start-log
Oct 15, 2026
Merged

zackees merged 2 commits into
obs-rust:masterfrom
vpacher:fix/output-start-log

Conversation

@vpacher

@vpacher vpacher commented Oct 15, 2026

Copy link
Copy Markdown
Member

Fixes #817

What and why

While the Settings dialog or the auto-configuration wizard is open, the frontend disables the outputs, and StartStreaming(), StartRecording(), StartReplayBuffer() and StartVirtualCam() return without doing anything. Nothing showed this: obs-websocket replies success to the start request (the frontend API only queues the start), and no event or log line followed. On an unattended host, where nobody sees the dialog (#815), this is very hard to diagnose.

This PR logs a warning at the four early returns, for example:

Recording not started: outputs are disabled while the Settings dialog or the Auto-Configuration Wizard is open

The message is built in a new Qt-free header, frontend/utility/output-start-log.hpp (LogOutputStartRefused()). No other change in behaviour; no protocol change. Reporting the refusal to websocket clients (an error status or an event) would be a protocol change and is not part of this PR.

RED → GREEN

  • RED commit: e637387. test_output_start_log installs a log handler and calls the helper: 2 of 2 fail (no warning is logged).
  • GREEN: cb6c799. 2 of 2 pass.

End-to-end check (not part of CI), on Debian 13, headless: with the Settings dialog open, a websocket StartRecord replies success, nothing is recorded, and the log now has the warning above. After the dialog is closed, StartRecord records.

Checklist

  • Base is master (or the description starts with a Stacked: note)
  • I claimed the issue, or no one else has an open PR for it
  • Characterization test (if the unit had none), then RED, then GREEN commits
  • (Optional) Local gate passed and the pushed head is stamped; otherwise PR CI runs the full suite
  • Warning or flag changes (-W..., ratchets): none
  • Intentional differences from C listed in the parity test header and rust/README.md (ports): not a port

Notes:

🤖 Generated with Claude Code

@vpacher
vpacher requested a review from zackees as a code owner October 15, 2026 08:21
@zackees zackees added the ci-full Run every CI job on this PR, including the release-gating OBS app builds and Flatpak label Oct 15, 2026
@zackees

zackees commented Oct 15, 2026

Copy link
Copy Markdown
Member

Rebased onto master, set ci-full (frontend change), and ran the stamped local gate. Your RED (e637387: 2 of 2 fail, no warning logged) / GREEN (cb6c799: 2/2) evidence stands.

  • Rebased on master, local gate passed; pushed as 555b3e3.

@zackees
zackees force-pushed the fix/output-start-log branch from cb6c799 to 555b3e3 Compare October 15, 2026 09:07
@zackees
zackees enabled auto-merge October 15, 2026 09:07
@zackees
zackees added this pull request to the merge queue Oct 15, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 15, 2026
@zackees

zackees commented Oct 15, 2026

Copy link
Copy Markdown
Member

Rebased onto master again (it conflicted after #816/#810 touched the same frontend files), resolved by keeping both sides, and re-stamped the local gate; re-queued.

  • Rebasing onto master conflicted in frontend/cmake/ui-utility.cmake (another PR added helper sources on the same lines); I kept both entries.
  • Rebased on master, local gate passed; pushed as 8bd2da0.

@zackees
zackees force-pushed the fix/output-start-log branch from 555b3e3 to 8bd2da0 Compare October 15, 2026 12:05
@zackees
zackees enabled auto-merge October 15, 2026 12:05
@zackees
zackees added this pull request to the merge queue Oct 15, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 15, 2026
vpacher and others added 2 commits October 15, 2026 06:20
Call LogOutputStartRefused() (frontend/utility/output-start-log.hpp,
free of Qt) where StartStreaming, StartRecording, StartReplayBuffer
and StartVirtualCam return because the outputs are disabled, and add
test_output_start_log. The helper does nothing yet: no change in
behaviour.

RED for obs-rust#817: both cases fail, because no warning is logged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
While the Settings dialog or the auto-configuration wizard is open, the
frontend disables the outputs and drops a start of streaming,
recording, the replay buffer or the virtual camera. Nothing showed
this: obs-websocket replies success to the start request, and no event
or log line followed.

Log a warning that names the output and the reason. No other change in
behaviour; no protocol change.

GREEN for obs-rust#817.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Local-Gate: v1 tree=2c0e9844d584a1b90dc379d608517d1ba790fce3 secs=1376 lanes=lint:run,rust-test:reused@b439b6bb8e93,cross:reused@ab678a7180dc,tier2-linux:run
Ci-Attestation: {"at":1792071803,"gate":"rust/all/fmt","host":"linux-x86_64","key":"b014377a6fc7588c9d40d0b09b4a1ee2330e1e3722b57d4408867b1ad78486ee","lane":"lint","parents":["501ee59d0fc08d6917a1caad7a39f36aa4e4ad75"],"secs":58,"stamp":"5b3ca3a9f3d345e1736126999deb1c00","tree":"2c0e9844d584a1b90dc379d608517d1ba790fce3","v":1,"via":"run"}
Ci-Attestation: {"at":1792071803,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"b014377a6fc7588c9d40d0b09b4a1ee2330e1e3722b57d4408867b1ad78486ee","lane":"lint","parents":["501ee59d0fc08d6917a1caad7a39f36aa4e4ad75"],"secs":58,"stamp":"759717afe40fd37a173a7e585e4047c8","tree":"2c0e9844d584a1b90dc379d608517d1ba790fce3","v":1,"via":"run"}
Ci-Attestation: {"at":1792067595,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"b439b6bb8e93d470e14a03d649bc23f7eaf68584c1ca2d2ea0ae5f94c9c3850e","lane":"rust-test","parents":["501ee59d0fc08d6917a1caad7a39f36aa4e4ad75"],"secs":null,"stamp":"110f78cbf432d7ab96ea2841984d54e5","tree":"2c0e9844d584a1b90dc379d608517d1ba790fce3","v":1,"via":"reused"}
Ci-Attestation: {"at":1792067595,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"ab678a7180dcb94814b99979da516000b7c5ef3a99bec31bcafe71005b209895","lane":"cross","parents":["501ee59d0fc08d6917a1caad7a39f36aa4e4ad75"],"secs":null,"stamp":"f13a28eb6292b69e1784801b66fc1416","tree":"2c0e9844d584a1b90dc379d608517d1ba790fce3","v":1,"via":"reused"}
Ci-Attestation: {"at":1792067595,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"ab678a7180dcb94814b99979da516000b7c5ef3a99bec31bcafe71005b209895","lane":"cross","parents":["501ee59d0fc08d6917a1caad7a39f36aa4e4ad75"],"secs":null,"stamp":"1176876a6c8205a0a5cd6b78e439f163","tree":"2c0e9844d584a1b90dc379d608517d1ba790fce3","v":1,"via":"reused"}
Ci-Attestation: {"at":1792067595,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"ab678a7180dcb94814b99979da516000b7c5ef3a99bec31bcafe71005b209895","lane":"cross","parents":["501ee59d0fc08d6917a1caad7a39f36aa4e4ad75"],"secs":null,"stamp":"c34da226b8daf4194f022917b5647652","tree":"2c0e9844d584a1b90dc379d608517d1ba790fce3","v":1,"via":"reused"}
Ci-Attestation: {"at":1792067595,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"ab678a7180dcb94814b99979da516000b7c5ef3a99bec31bcafe71005b209895","lane":"cross","parents":["501ee59d0fc08d6917a1caad7a39f36aa4e4ad75"],"secs":null,"stamp":"0e3bafc75493a41da3981730dca1996b","tree":"2c0e9844d584a1b90dc379d608517d1ba790fce3","v":1,"via":"reused"}
Ci-Attestation: {"at":1792067595,"gate":"rust/x86_64-apple-darwin/clippy","host":"linux-x86_64","key":"ab678a7180dcb94814b99979da516000b7c5ef3a99bec31bcafe71005b209895","lane":"cross","parents":["501ee59d0fc08d6917a1caad7a39f36aa4e4ad75"],"secs":null,"stamp":"4d4cfea47dfc96773ccfc0a3bdfeb79a","tree":"2c0e9844d584a1b90dc379d608517d1ba790fce3","v":1,"via":"reused"}
Ci-Attestation: {"at":1792067595,"gate":"rust/x86_64-apple-darwin/dylint","host":"linux-x86_64","key":"ab678a7180dcb94814b99979da516000b7c5ef3a99bec31bcafe71005b209895","lane":"cross","parents":["501ee59d0fc08d6917a1caad7a39f36aa4e4ad75"],"secs":null,"stamp":"a4f068112b3fbd01ba9b99064a6ce86c","tree":"2c0e9844d584a1b90dc379d608517d1ba790fce3","v":1,"via":"reused"}
Ci-Attestation: {"at":1792071803,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"f0c54ba4565245327267eaba0a768b20601831c889707a36d6e6fdc06e7a0c33","lane":"tier2-linux","parents":["501ee59d0fc08d6917a1caad7a39f36aa4e4ad75"],"secs":1317,"stamp":"6be84453cce5cc8e84aa1622d1719ef6","tree":"2c0e9844d584a1b90dc379d608517d1ba790fce3","v":1,"via":"run"}
@zackees

zackees commented Oct 15, 2026

Copy link
Copy Markdown
Member

Rebased onto master again: #810 merged and touched the same frontend files, so this conflicted and left the merge queue. Resolved by keeping both sides; local gate re-stamped; re-queued.

  • Rebasing onto master conflicted in frontend/cmake/ui-utility.cmake (another PR added helper sources on the same lines); I kept both entries.
  • Rebased on master, local gate passed; pushed as 91b6f23.

@zackees
zackees force-pushed the fix/output-start-log branch from 8bd2da0 to 91b6f23 Compare October 15, 2026 13:43
@zackees
zackees enabled auto-merge October 15, 2026 13:43
@zackees
zackees added this pull request to the merge queue Oct 15, 2026
Merged via the queue into obs-rust:master with commit edfeb4a Oct 15, 2026
26 checks passed
@vpacher
vpacher deleted the fix/output-start-log branch October 15, 2026 14:49
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.

bug: frontend: a start refused while outputs are disabled leaves no trace (no log, no event)

2 participants