Skip to content

bug: frontend-tools: Output Timer still shows Stop after its timer stopped the output while the dialog was closed (upstream obsproject/obs-studio#10900) #600

Closed

Description

@rdoupe

Upstream OBS bug, reported by ShaMAD in obsproject/obs-studio#10900 (OBS 30.1.2): when Tools > Output Timer is closed while its timer runs, the timer still stops the recording, but the dialog keeps showing "Stop". Opened again, it offers Stop for a recording that is not running, and clicking it starts a new recording. ShaMAD also pointed out the same code in the streaming timer. Still present upstream and in this fork; upstream PR obsproject/obs-studio#10937 (Sugam-Chand-M) found the cause but is not merged.

Location

  • plugins/frontend-tools/output-timer.cpp RecordTimerStop() (line 151) and StreamTimerStop() (line 129) return early when the dialog is hidden and the timer is no longer running. That is exactly the state after the timer itself stopped the output (it is single-shot), so the button keeps "Stop" (checked) and the countdown timer keeps running.
  • RecordingTimerButton() (line 57) starts a recording when none is active, so clicking the stale "Stop" starts one.

Class

Wrong UI state, and a button that does the opposite of its label (no crash).

How it is reached

Tools > Output Timer: set a recording (or streaming) time, check "Enable recording timer every time", close the dialog, start a recording. The timer stops it on time. Open Output Timer again: the button says "Stop"; click it and a new recording starts. Pausing a recording with "Pause timer when recording is paused" and stopping it while the dialog is closed leaves the same state.

Reproduced in the current release

AppImage 33.0.0-beta6-799, headless under a private Xvfb, with a small test module that sets a 2 s recording timer with "Enable recording timer every time" checked and reads the dialog's widgets:

Step Recording Dialog button
dialog closed, recording started on Stop
5 s later (timer stopped it) off Stop (checked)
dialog opened, button clicked on (log: "Starting recording due to OutputTimer")
control: same with the dialog open, 5 s later off Start

Proposed fix and failing test

Fix: RecordTimerStop() and StreamTimerStop() always reset the button and the countdown when the output stops; none of that depends on the dialog being visible. (Upstream #10937 instead flips the condition to return when the timer is still running; that keeps a timer running after a recording stopped by hand while the dialog is closed, which then stops the next recording.)

RED test (cmocka, test_output_timer): builds the real dialog (output-timer.cpp and its .ui) on Qt's offscreen platform against stubs of the frontend API, with a 1 s timer:

  • recording timer ends while the dialog is closed: button must be Start;
  • streaming timer, the same;
  • guard: the dialog open;
  • guard: a recording stopped by hand while the dialog is closed cancels the timer (it does not fire later).

The first two fail today in both libobs lanes, every run.

Activity

  1. rdoupe commented on Oct 13, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: this issue.

    1. RED: test_output_timer (4 cases) builds the real Output Timer dialog on Qt's offscreen platform: when the recording or streaming timer ends while the dialog is closed, the button still says Stop; guards check the dialog open and a recording stopped by hand. 2 of 4 fail today.
    2. GREEN: the Output Timer resets its button and countdown whenever the output stops, whether the dialog is open or not.
      PR today.
  2. rdoupe commented on Oct 13, 2026

    @rdoupe
    CollaboratorAuthor

    @ShaMAD you reported this in obsproject/obs-studio#10900 (with Tools > Output Timer closed while its timer runs, the timer still stops the recording, but the dialog keeps showing "Stop", and clicking it starts a new recording), so a heads-up: it's fixed here in obs-rust by #601, with a regression test.

    Cause: when the output stopped, RecordTimerStop() returned early if the dialog was hidden and the timer was running, so the button and the countdown were never reset. The streaming timer had the same code, as you pointed out (StreamTimerStop()). Both now always reset the button and the countdown when their output stops, whether the dialog is open or not. In the obs-rust release the reopened dialog said "Stop" after the timer had ended the recording; a build with the fix shows "Start" after the recording timer ends, and the regression test covers the streaming timer too.

    Workaround on stock OBS: keep the Output Timer dialog open while the timer runs.

    It will be in the next obs-rust daily release after 0.1.0-beta.20261012: https://github.com/obs-rust/obs-studio/releases (Windows, macOS and Linux builds; on Arch it's obs-studio-rust-git in the AUR). obs-rust is an AI-assisted fork of OBS.

    If you get a chance to try it, a reply here on whether the timer resets for you would really help.

  3. added a commit that references this issue on Oct 13, 2026
    45ace2c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions