pop-os / cosmic-epoch

Next generation Cosmic desktop environment
2.8k stars 78 forks source link

Stuck in infinite loop after drag-and-dropping a window to a new workspace #493

Open sgued opened 1 month ago

sgued commented 1 month ago

Hi,

After drag and dropping a window to a new workspace the session appeared to be stuck in an infinite loop. Mouse cursor is still responsive, but applets aren't. In a couple of seconds I have 200MB of the following logs:

2024-08-08T10:18:47.997585Z  WARN cosmic-workspaces: cosmic_session: [2024-08-08T10:18:47Z TRACE calloop::loop_logic] [calloop] Dispatching events for source #0
2024-08-08T10:18:47.997593Z  WARN cosmic-workspaces: cosmic_session: [2024-08-08T10:18:47Z TRACE calloop::sources] [calloop] Processing events for source type calloop_wayland_source::WaylandSource<cosmic_workspaces::backend::wayland::AppData>
2024-08-08T10:18:47.997642Z  WARN cosmic-workspaces: cosmic_session: [2024-08-08T10:18:47Z TRACE calloop::loop_logic] [calloop] Dispatching events for source #0
2024-08-08T10:18:47.997649Z  WARN cosmic-workspaces: cosmic_session: [2024-08-08T10:18:47Z TRACE calloop::sources] [calloop] Processing events for source type calloop_wayland_source::WaylandSource<cosmic_workspaces::backend::wayland::AppData>
2024-08-08T10:18:47.997687Z  WARN cosmic-workspaces: cosmic_session: [2024-08-08T10:18:47Z TRACE calloop::loop_logic] [calloop] Dispatching events for source #0
2024-08-08T10:18:47.997696Z  WARN cosmic-workspaces: cosmic_session: [2024-08-08T10:18:47Z TRACE calloop::sources] [calloop] Processing events for source type calloop_wayland_source::WaylandSource<cosmic_workspaces::backend::wayland::AppData>
2024-08-08T10:18:47.997732Z  WARN cosmic-workspaces: cosmic_session: [2024-08-08T10:18:47Z TRACE calloop::loop_logic] [calloop] Dispatching events for source #0
2024-08-08T10:18:47.997740Z  WARN cosmic-workspaces: cosmic_session: [2024-08-08T10:18:47Z TRACE calloop::sources] [calloop] Processing events for source type calloop_wayland_source::WaylandSource<cosmic_workspaces::backend::wayland::AppData>

I have a dual-gpu setup (lenovo Legion 16, with Ryzen 5800H with integrated CPU, and Radeon 6600). I think the drag-and-drop works for the built-in display, but I cannot re-test that for now due to https://github.com/pop-os/cosmic-epoch/issues/492

Testing on Arch Linux.

sgued commented 1 month ago

Actually just clicking on a new workspace leads to this. No need to drag-and-drop a window.

ids1024 commented 1 month ago

Odd, I haven't seen an issue like this.

As for the logs, it shouldn't normally be logging TRACE messages, unless configured to be env var...

sgued commented 1 month ago

Yes, I configured the trace logs manually to get an idea of what was happening with RUST_LOG=trace.