Repository navigation
Description
Summary
When the Settings dialog or the auto-configuration wizard is open, the frontend disables all outputs (EnableOutputs(false)). A start request for streaming, recording, the replay buffer or the virtual camera is then dropped without any trace: no log line, no event, no error. Through obs-websocket, StartRecord (and the other start requests) reply success, because the frontend API start calls only queue the start for the UI thread.
That the start requests are asynchronous is by design: the real result arrives as RecordStateChanged and similar events, and this issue does not propose to change the protocol. But when the start is refused, no event comes, and the log shows nothing. On a headless or unattended host, where nobody sees the open dialog (see #815), this is very hard to diagnose.
Location
The four guards return without logging:
frontend/widgets/OBSBasic_Streaming.cppOBSBasic::StartStreaming()frontend/widgets/OBSBasic_Recording.cppOBSBasic::StartRecording()frontend/widgets/OBSBasic_ReplayBuffer.cppOBSBasic::StartReplayBuffer()frontend/widgets/OBSBasic_VirtualCam.cppOBSBasic::StartVirtualCam()
if (disableOutputsRef) {
return;
}disableOutputsRef is raised only by OBSBasicSettings and AutoConfig (main->EnableOutputs(false)).
Class
Missing diagnostic: a refused user action leaves no trace.
How it is reached
Master build (aaed86f), Debian 13, headless: with the auto-configuration wizard open (hidden on the X display, see #815), a websocket StartRecord replies success. GetRecordStatus stays inactive, no RecordStateChanged event arrives, and the log has no line about the refused start.
Proposed fix and failing test
Fix: before each of the four returns, log a warning, 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 small helper, frontend/utility/output-start-log.hpp (LogOutputStartRefused()), so it can be tested without a display. No behaviour change apart from the log line; no protocol change.
RED test (cmocka, test_output_start_log): installs a log handler (base_set_log_handler), calls the helper for "Recording" and checks that a LOG_WARNING naming the output and the reason is logged. Fails today, because nothing is logged.
GREEN: the helper logs the warning.
If reporting the refusal to websocket clients is wanted (an error status or an event), that is a protocol change and better discussed separately.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
vpacher commentedon Oct 15, 2026
Claiming: this issue.
frontend/utility/output-start-log.hpp(LogOutputStartRefused(), logs nothing yet), call it at the fourdisableOutputsRefguards, and addtest_output_start_log(cmocka, log handler). The test fails: no warning is logged.PR today.
frontend: Log output starts refused while disabled
frontend: Route refused output starts to a helper
frontend: Log output starts refused while disabled
frontend: Route refused output starts to a helper
frontend: Log output starts refused while disabled
frontend: Log output starts refused while outputs are disabled (obs-r…
infra: Claim bot labels and assigns claimants, expires stale claims (o…