Skip to content

Eframe application window does not close #6757

Open
@tye-exe

Description

@tye-exe

Describe the bug
There is bug with eframe where the application window remains open and cannot be closed while the program is running. If the previous window is left in this state for too long, the program is reported as not responding, even though code execution that does not involve the GUI still continues.

The application window is removed when the entire program exits.
Alternatively, calling the "run_native" method replaces the previous window with a new one.

To Reproduce
Steps to reproduce the behavior:

  1. Clone the repository that demonstrates the issue: https://github.com/tye-exe/egui_no_close .
  2. Run the application with cargo run.
  3. Attempt to close the window by clicking the "x" button.
  4. The window will remain open.

(The example program must be stopped via "Ctrl+C")

Expected behavior
There should be no eframe window open after it is closed.

Video Example
See here (window is replaced via calling "run_native").

Desktop:

  • OS: NixOS 24.11 (to reproduce entire system see my config)
  • Browser N/A
  • Version N/A

Additional context
Attempting to update to winit master branch (currently https://github.com/rust-windowing/winit/tree/cdbdd974fbf79b82b3fb1a4bc84ed717312a3bd2) did not resolve this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions