[GH-ISSUE #446] GUI Crashes after being unfocused for a while #282

Open
opened 2026-02-28 14:31:52 +03:00 by kerem · 2 comments
Owner

Originally created by @Xartos on GitHub (Nov 13, 2023).
Original GitHub issue: https://github.com/jpochyla/psst/issues/446

Describe the bug
A clear and concise description of what the bug is.

I'm using sway window manager and if I leave the workspace where psst is running unfocused for maybe 20 minutes and when I go back to that workspace, the GUI freezes and sometimes it starts working after a while but mostly it just crashes with the error message:

Gdk-Message: 14:41:08.571: Lost connection to Wayland compositor.

And running with --gtk-debug=all --gdk-debug=all, just before that it looks like it gets a bunch of these

Gdk-Message: 14:41:08.570: enter, seat 0x55a8f58d8040 surface 0x55a8f58bf440
Gdk-Message: 14:41:08.570: frame, seat 0x55a8f58d8040
Gdk-Message: 14:41:08.570: frame, seat 0x55a8f58d8040
Gdk-Message: 14:41:08.570: motion 106,089844 4,054688, seat 0x55a8f58d8040 state 0
Gdk-Message: 14:41:08.570: frame, seat 0x55a8f58d8040
Gdk-Message: 14:41:08.570: motion 109,289062 8,054688, seat 0x55a8f58d8040 state 0
Gdk-Message: 14:41:08.570: frame, seat 0x55a8f58d8040
Gdk-Message: 14:41:08.570: motion 111,691406 10,457031, seat 0x55a8f58d8040 state 0
Gdk-Message: 14:41:08.570: frame, seat 0x55a8f58d8040
Gdk-Message: 14:41:08.570: motion 112,488281 12,054688, seat 0x55a8f58d8040 state 0
.
.
.
Gdk-Message: 14:41:08.571: motion 583,691406 259,253906, seat 0x55a8f58d8040 state 0
Gdk-Message: 14:41:08.571: frame, seat 0x55a8f58d8040
Gdk-Message: 14:41:08.571: motion 585,289062 260,855469, seat 0x55a8f58d8040 state 0
Gdk-Message: 14:41:08.571: frame, seat 0x55a8f58d8040
Gdk-Message: 14:41:08.571: motion 586,890625 261,656250, seat 0x55a8f58d8040 state 0
Gdk-Message: 14:41:08.571: frame, seat 0x55a8f58d8040
Gdk-Message: 14:41:08.571: motion 588,488281 263,253906, seat 0x55a8f58d8040 state 0
Gdk-Message: 14:41:08.571: frame, seat 0x55a8f58d8040
Gdk-Message: 14:41:08.571: motion 590,089844 264,054688, seat 0x55a8f58d8040 state 0
Gdk-Message: 14:41:08.571: frame, seat 0x55a8f58d8040
Gdk-Message: 14:41:08.571: motion 591,691406 265,656250, seat 0x55a8f58d8040 state 0
Gdk-Message: 14:41:08.571: Lost connection to Wayland compositor.

Given that I have no idea what those messages actually mean and I see that it's more of them when it's working it might be expected logs.

To Reproduce
Steps to reproduce the behavior.

  1. Start gui
  2. Start playing (don't know if this is required)
  3. Unfocus the workspace (go to another workspace so the one where psst is running gets hidden)
  4. Wait for ~20 minutes
  5. Focus the workspace again.

Expected behavior
A clear and concise description of what you expected to happen.

The gui shouldn't crash

Screenshots
If applicable, add screenshots to help explain your problem.

Environment

Additional context
Add any other context about the problem here.

Originally created by @Xartos on GitHub (Nov 13, 2023). Original GitHub issue: https://github.com/jpochyla/psst/issues/446 **Describe the bug** A clear and concise description of what the bug is. I'm using [sway window manager](https://github.com/swaywm/sway) and if I leave the workspace where psst is running unfocused for maybe 20 minutes and when I go back to that workspace, the GUI freezes and sometimes it starts working after a while but mostly it just crashes with the error message: ``` Gdk-Message: 14:41:08.571: Lost connection to Wayland compositor. ``` And running with `--gtk-debug=all --gdk-debug=all`, just before that it looks like it gets a bunch of these ``` Gdk-Message: 14:41:08.570: enter, seat 0x55a8f58d8040 surface 0x55a8f58bf440 Gdk-Message: 14:41:08.570: frame, seat 0x55a8f58d8040 Gdk-Message: 14:41:08.570: frame, seat 0x55a8f58d8040 Gdk-Message: 14:41:08.570: motion 106,089844 4,054688, seat 0x55a8f58d8040 state 0 Gdk-Message: 14:41:08.570: frame, seat 0x55a8f58d8040 Gdk-Message: 14:41:08.570: motion 109,289062 8,054688, seat 0x55a8f58d8040 state 0 Gdk-Message: 14:41:08.570: frame, seat 0x55a8f58d8040 Gdk-Message: 14:41:08.570: motion 111,691406 10,457031, seat 0x55a8f58d8040 state 0 Gdk-Message: 14:41:08.570: frame, seat 0x55a8f58d8040 Gdk-Message: 14:41:08.570: motion 112,488281 12,054688, seat 0x55a8f58d8040 state 0 . . . Gdk-Message: 14:41:08.571: motion 583,691406 259,253906, seat 0x55a8f58d8040 state 0 Gdk-Message: 14:41:08.571: frame, seat 0x55a8f58d8040 Gdk-Message: 14:41:08.571: motion 585,289062 260,855469, seat 0x55a8f58d8040 state 0 Gdk-Message: 14:41:08.571: frame, seat 0x55a8f58d8040 Gdk-Message: 14:41:08.571: motion 586,890625 261,656250, seat 0x55a8f58d8040 state 0 Gdk-Message: 14:41:08.571: frame, seat 0x55a8f58d8040 Gdk-Message: 14:41:08.571: motion 588,488281 263,253906, seat 0x55a8f58d8040 state 0 Gdk-Message: 14:41:08.571: frame, seat 0x55a8f58d8040 Gdk-Message: 14:41:08.571: motion 590,089844 264,054688, seat 0x55a8f58d8040 state 0 Gdk-Message: 14:41:08.571: frame, seat 0x55a8f58d8040 Gdk-Message: 14:41:08.571: motion 591,691406 265,656250, seat 0x55a8f58d8040 state 0 Gdk-Message: 14:41:08.571: Lost connection to Wayland compositor. ``` Given that I have no idea what those messages actually mean and I see that it's more of them when it's working it might be expected logs. **To Reproduce** Steps to reproduce the behavior. 1. Start gui 1. Start playing (don't know if this is required) 1. Unfocus the workspace (go to another workspace so the one where psst is running gets hidden) 1. Wait for ~20 minutes 1. Focus the workspace again. **Expected behavior** A clear and concise description of what you expected to happen. The gui shouldn't crash **Screenshots** If applicable, add screenshots to help explain your problem. **Environment** - OS: Ubuntu 22.04 - Version: [commit a8922f6](https://github.com/jpochyla/psst/commit/a8922f61a72052f54b54e0fa0c64d8fd95003d83) **Additional context** Add any other context about the problem here.
Author
Owner

@TKone7 commented on GitHub (Jan 8, 2025):

Experience exactly the same issue on Hyprland (v0.46.0).

<!-- gh-comment-id:2577599368 --> @TKone7 commented on GitHub (Jan 8, 2025): Experience exactly the same issue on Hyprland (v0.46.0).
Author
Owner

@cuu508 commented on GitHub (Jan 30, 2025):

I see similar symptoms: UI freezes for ~10 seconds when Alt+tabbing back to psst and it's been in background for a while.

Ubuntu 24.04, standard GNOME desktop.

I installed psst from a deb package linked in the README, the package version shows as psst-gui 0.1.0.

<!-- gh-comment-id:2623961647 --> @cuu508 commented on GitHub (Jan 30, 2025): I see similar symptoms: UI freezes for ~10 seconds when Alt+tabbing back to psst and it's been in background for a while. Ubuntu 24.04, standard GNOME desktop. I installed psst from a deb package linked in the README, the package version shows as psst-gui 0.1.0.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/psst#282
No description provided.