Repository navigation
Description
Upstream OBS bug, reported by norihiro in obsproject/obs-studio#10628 (Fedora 39, OBS from git, still open), with exact steps and a log of what the undo stack receives. Add a Crop/Pad filter, set Left = 1 and Top = 2 within 500 ms, close and reopen the Filters dialog, press Undo twice and Redo once: the filter ends at Left = 1, Top = 2 instead of Left = 1, Top = 0. Still present upstream and in this fork.
Location
shared/properties-view/properties-view.cppWidgetInfo::ControlChanged()(line 2037): each field of a properties view coalesces its changes for 500 ms (line 2119) with its own timer and its own copy of the old settings, then calls the update callback with that copy and the view's whole current settings (line 2108). When a second field changes within those 500 ms, the first field's callback already contains the second field's change as its new settings.frontend/dialogs/OBSBasicFilters.cppFilterChangeUndoRedo()(line 181) turns each callback into one undo entry (undo = old settings, redo = new settings), so the first entry redoes both changes. It is the only update callback a properties view has in OBS today.
Class
Wrong result for a user action: Undo/Redo restores settings that never existed in that order. No crash, no data loss beyond the wrong state.
How it is reached
Filters dialog of any source, a filter with several fields (Crop/Pad, Color Correction, ...). Change one field and then another within half a second (typing, or Tab and type), then use Undo and Redo.
Reproduced in the current release
AppImage v0.1.0-beta.20261014, headless (private Xvfb, private HOME, dbus-run-session, --multi), with a small test module that adds a Color Source with a Crop/Pad filter, opens its Filters dialog, sets Left = 1 and then Top = 2 in the filter's properties, closes and reopens the dialog, and presses Edit > Undo twice and Edit > Redo once:
| Step | Changes 100 ms apart | Changes 800 ms apart (control) |
|---|---|---|
| After setting both | Left 1, Top 2 | Left 1, Top 2 |
| Undo | Left 1, Top 0 | Left 1, Top 0 |
| Undo | Left 0, Top 0 | Left 0, Top 0 |
| Redo | Left 1, Top 2 (bug) | Left 1, Top 0 |
Proposed fix and failing test
Fix: when a field starts a new change, the properties view first reports any other field's change that is still waiting for its 500 ms timer (CommitPendingUpdates()), so every callback, and every undo entry, holds exactly the settings before and after its own change. Changes to one field within 500 ms are still one entry.
RED test (cmocka + Qt Test, test_properties_undo_coalesce, Linux, Qt's offscreen platform, no display): builds the real OBSPropertiesView with two integer fields like Crop/Pad's and records every update callback. 2 of 4 cases fail today in both libobs lanes: Left then Top within 500 ms (the first entry's new settings are {left 1, top 2}), and Left, Top, Left within 500 ms. The controls pass: one field changed twice within 500 ms is one entry, and two fields 700 ms apart are two correct entries.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
rdoupe commentedon Oct 14, 2026
Claiming: this issue.
test_properties_undo_coalescebuilds the realOBSPropertiesViewwith two integer fields on the offscreen platform and records every update callback (one undo entry each in the Filters dialog). 2 of 4 cases fail: with Left and Top changed within 500 ms, Left's entry already contains Top's change.PR today.
shared/properties-view: Report a field's change before another field's
rdoupe commentedon Oct 14, 2026
@norihiro you reported this in obsproject/obs-studio#10628 (two filter properties changed within 500 ms give wrong undo/redo entries), so a heads-up: it's fixed here in obs-rust by #766, merged today with a regression test.
Cause: the properties view holds a field's change for up to 500 ms so that typing in one field becomes one undo entry. When a second field changed inside that window, the first field's entry was recorded with the second field's change already applied, so Undo and Redo restored the wrong values. Now, when a field starts a new change, any other field's pending change is reported first, so each entry holds only its own change. Typing quickly in one field is still one entry.
Workaround on stock OBS: wait a moment between changing two different fields.
It will be in the next obs-rust daily release after 0.1.0-beta.20261014: https://github.com/obs-rust/obs-studio/releases (Windows, macOS and Linux builds; on Arch it's
obs-studio-rust-gitin the AUR). obs-rust is an AI-assisted fork of OBS.If you get a chance to try it, a reply here on whether undo/redo now restores each field correctly would really help.
shared/properties-view: Report a field's change before another field's (