Skip to content

[BUG] Windows become blank and cannot be closed after rapidly opening multiple windows #128

Closed

Description

@samukhin

Title:
[BUG] Windows become blank and cannot be closed after rapidly opening multiple windows

Describe the bug
(SOMETIMES!) When opening multiple windows in rapid succession, they eventually get stuck, fail to close, and remain visible as empty/blank windows. They stay frozen in this state until the Wayland compositor is restarted.

To Reproduce
Steps to reproduce the behavior:

  1. Open many windows or applications in quick succession.
  2. Try to close the opened windows.
  3. Observe that they do not close and display a blank screen.
  4. Note that they remain stuck until restarting the Wayland compositor.

Expected behavior
All windows should open and close normally without freezing or turning blank, regardless of how fast they are opened, and without requiring a compositor restart.

Screenshots

Veshell.Recording.2026-10-13.22-30-34.886.webm
Image

Additional context
The issue seems directly tied to the Wayland compositor, as a full restart of the compositor is the only way to clear the frozen empty windows.

Activity

  1. samukhin commented on Oct 13, 2026

    @samukhin
    Author

    Updated, and now it is harder to reproduce. However, I was able to replicate it by opening and closing Firefox repeatedly

    Image
  2. samukhin commented on Oct 13, 2026

    @samukhin
    Author

    The error occurs 100% of the time if you quickly open Firefox and Zen Browser simultaneously.

  3. samukhin commented on Oct 13, 2026

    @samukhin
    Author
    2026-10-14-02-30-19.webm
  4. PapyElGringo commented on Oct 14, 2026

    @PapyElGringo
    Contributor

    This is actually unrelated but a bug nonetheless.
    Form what I can see from the video:

    • Zen is started first then Firefox in a quick succession.
    • Firefox open an Application window ans is correctly assigned to the Tile
    • Zen open not one but two Application windows and the first one is correctly assigned to it's tile but the second is assigned as a Dialog of Firefox.
    • Then Firefox is closed using the tile close button which close both Firefox Window and the Zen assigned dialog which cascade and also close or impact the other Zen window which is then left in a unresponsive state.
  5. PapyElGringo commented on Oct 14, 2026

    @PapyElGringo
    Contributor

    Ok you can try latest commit

  6. samukhin commented on Oct 14, 2026

    @samukhin
    Author

    The behavior has improved slightly, but I was still able to reproduce it on the third try.
    Maybe we could add an option to force-close the tab via the UI (for example, when holding down the close button
    )? I think this is going to be an annoying bug

  7. samukhin commented on Oct 14, 2026

    @samukhin
    Author

    Just tried to reproduce it again for the recording... It's really tough, no luck so far.
    Anyway, the thing is, when you switch tabs quickly, there's a chance you'll be prompted to open the app again. And after launching and switching quickly — again and again. At some point, the bug happens again

  8. samukhin commented on Oct 14, 2026

    @samukhin
    Author

    Unfortunately, I didn't have the patience to finish this video. But it does show what "open the app again" means.

    2026-10-14.16-12-32.mp4
  9. samukhin commented on Oct 14, 2026

    @samukhin
    Author

    RUST_LOG=warn,veshell=debug,smithay=debug RUST_BACKTRACE=1 veshell &>> veshell.log

    veshell.log.zip

  10. samukhin commented on Oct 14, 2026

    @samukhin
    Author

    RUST_LOG=warn,veshell=debug,smithay=debug RUST_BACKTRACE=1 cargo run &>> veshell.log

    veshell.log (2).txt

  11. samukhin commented on Oct 14, 2026

    @samukhin
    Author

    NO!

    Image
  12. samukhin commented on Oct 14, 2026

    @samukhin
    Author
  13. samukhin commented on Oct 15, 2026

    @samukhin
    Author
    2026-10-15.02-56-27.webm
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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions