Skip to content

UI forgetting dock sizes on every restart #3740

Closed

Description

@alerque

The UI is back to forgetting dock allowances. I reported before that screen resizing would blow away carefully positioned docks. That got fixed, but now every time the app closes and opens (even at the same size) many of the dock sizes are gone. This is extra noticeable given the crash rate. I've had to resize the whole dock layout 20 times today just to get audio meters on screen.

Originally posted by @alerque in #3710

These screen shots are not from the laptop I was using on scene, but this replicates pretty easily on my desktop at home.

This is Hyprland (a tiling windows manager) and OBS is the only app running full screen. I adjust the docks to make the main controls narrower and give me more room for audio meters (and on my production system PTZ controls, etc). Lets say I configure it to look like this:

Image

I would hope that closing and re-opening (let alone crashing and re-opening) would bring back the same UI, but it does not. Quit and re-open and it looks like this:

Image

Notice both the dock height has reset itself to some smaller size and the controls/scenes/sources docks have all taken up more width than they were left with.

Activity

  1. alerque commented on Nov 6, 2026

    @alerque
    Author

    Additionally I'll note that this was working correctly at some point in OBS-Rust, and specially I tested this after my issue report #2225 was fixed, which had to do with loosing dock size information when the window was resized smaller and then bigger again. This is a regression since then. In fact the sizes it keeps reverting me back to look like something I used previously, but it has since stopped allowing any updates and is frozen in time with whatever dock arrangement it got stuck with from a week or two ago.

  2. zackees commented on Nov 7, 2026

    @zackees
    Member

    Claiming: investigation of dock sizes reverting on restart (pool slot obs-studio3). 1. Trace frontend save/restore and Rust-backed config against upstream and the #2225 fixes. 2. Reproduce through the real Qt save/restore path under Xvfb and commit a RED regression. 3. Fix, validate, and open a draft PR once RED exists; first PR expected this session. I will leave #3560 and its branch untouched.

  3. added
    needs-investigation
    on Nov 7, 2026
  4. zackees commented on Nov 7, 2026

    @zackees
    Member

    Investigation: the config setter/save code accepts the DockState base64 string; the frontend instead chooses an older snapshot whenever any dock is at its minimum width. This was introduced by #2727/#2743 as clamp protection for #2225. A deliberately narrow Controls/Scenes dock can therefore freeze saving unrelated dock widths and heights. I am reproducing this through Qt resize, the production save helper and config_save_safe/reopen, while retaining the existing narrow-window tests. /ready

  5. zackees commented on Nov 7, 2026

    @zackees
    Member

    /ready

    The save helper can reject intentional dock resizing whenever a dock reaches its minimum. The bounded implementation target is to retain clamp protection on window shrinking while allowing changed separator layouts to replace the saved state, with a real Qt + config save/reopen regression.

  6. added
    ready
    and removed
    needs-investigation
    on Nov 7, 2026
  7. zackees commented on Nov 7, 2026

    @zackees
    Member

    Continuing accepted claim for implementation now that #3740 is Ready. No overlapping open dock/layout PR found; #3560 is closed with its branch preserved. The new Qt test uses the actual separator and config C API, including close/reopen of user.ini, rather than asserting a mocked cache decision.

  8. zackees commented on Nov 7, 2026

    @zackees
    Member

    Fixed on master by #3796. The frontend clamp-safe snapshot was treating a deliberately minimum-width dock as a squeezed window and saving an older arrangement. Completed separator edits now replace that snapshot; automatic window clamping and no-op clicks retain the protection from #2225.

    The RED regression reproduced lost width and height through the production Qt helper and config safe-save/reopen path. After the fix, all three new cases and nine unchanged proportion cases pass. The real hybrid frontend also passed three fresh processes under Xvfb: Controls narrowed 478→206 px, bottom docks grew 216→366 px, and all five dock sizes restored exactly after normal quit/restart. Hosted PR and merge-queue checks passed. This was checked on Linux/X11 under Xvfb; Hyprland/Wayland and third-party docks were not directly exercised.

  9. 16 remaining items

  10. vpacher commented on Nov 13, 2026

    @vpacher
    Member

    Claiming: #3740 (the tiling window manager case, continuing my takeover comment above). PR: #4841, now in the merge queue. A fix for anything the retest finds follows in a new PR.

  11. vpacher commented on Nov 13, 2026

    @vpacher
    Member

    The fix is now on master (#4841, 1d8b65e): when the window grows after the start, as it does under a tiling window manager, OBS restores the saved dock layout again. Could you check it with the next obs-studio-rust-git build? If a dock still loses its size after a restart, a fix for that follows in a new PR. If it works, I will close this issue.

  12. zackees commented on Nov 18, 2026

    @zackees
    Member

    Landed on master in #4841 (1d8b65e); verified the merge is an ancestor of origin/master and frontend/utility/dock-proportions.hpp exists there.

  13. alerque commented on Nov 19, 2026

    @alerque
    Author

    Closing human reported issues based on LLM testing is something you should configure your agents to STOP DOING.

    I just rebuilt and updated to check this situation prior to an event tonight, and the issue has seriously regressed. I'm going to open a new issue, this is just a pointer for anybody landing here.

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

    ready

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions