jpochyla / psst

Fast and multi-platform Spotify client with native GUI
MIT License
8.56k stars 219 forks source link

GUI Crashes after being unfocused for a while #446

Open Xartos opened 1 year ago

Xartos commented 1 year ago

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.