trayscale icon indicating copy to clipboard operation
trayscale copied to clipboard

Freezes randomly / does not respond after time

Open lgoette opened this issue 7 months ago • 8 comments

I got the Problem that it is freezing at some random point. When having it running, it does not response after time. Nothing happens when clicking the trayicon and takes a few seconds to open the rightclick menu (somtimes it does not open at all).

Also the terminal does not react on ctrl+c at that point.

I am using Nixos + KDE Plasma 6.

Did someone had the same Issue?

lgoette avatar Aug 01 '25 14:08 lgoette

Some questions to help clarify the situation:

  • Is anything logged to stdout/stderr, especially with TRAY_DEBUG=1 set in the environment?
  • Is this the Flatpak?

DeedleFake avatar Aug 01 '25 15:08 DeedleFake

Its not flatpak. I installed it with the nix package manager. When I click the tray Icon, 2025/08/06 13:16:36 INFO item method TRAY_DEBUG=1 name=Activate x=1569 y=1045 appears in the log but nothing happens. When I rightclick, 2025/08/06 13:17:40 INFO menu method TRAY_DEBUG=1 name=AboutToShow id=0 2025/08/06 13:17:40 INFO menu method TRAY_DEBUG=1 name=Event id=0 eventID=opened data="\"\"" timestamp=0 appears and the menu shows up with a 10sec delay. When I click it multiple times in that duration, it shows eventID=opened again and again. When I rightclick when the menu is finally open, it shows 2025/08/06 13:19:26 INFO menu method TRAY_DEBUG=1 name=Event id=0 eventID=closed data="\"\"" timestamp=0 and the menu closes as expected.

Unfortunately there are no errors displayed :/

lgoette avatar Aug 06 '25 11:08 lgoette

Hmmm... You're just using the regular KDE 6 tray? Is this X11 or Wayland? I'll log into KDE and see if I can replicate it.

Also, SIGINT is trapped, so it won't close it if it's frozen. You can use Ctrl+\ to really kill it, and it'll even give you a stacktrace.

DeedleFake avatar Aug 06 '25 14:08 DeedleFake

Ah I noticed that it was trapped but thought it was connected with the issue. The weird thing is: initially, it works great. But after some time, the issue occurs. I am using Wayland. Here is my Systeminfo: Operating System: NixOS 25.11 KDE Plasma Version: 6.4.2 KDE Frameworks Version: 6.15.0 Qt Version: 6.9.0 Kernel Version: 6.12.36 (64-bit) Graphics Platform: Wayland

lgoette avatar Aug 06 '25 14:08 lgoette

It's probably a bug in deedles.dev/tray. I did testing with it on KDE, but I didn't run it for an extended period. There might be something building up over time. How long is "after some time", approximately?

DeedleFake avatar Aug 06 '25 14:08 DeedleFake

Usually a few hours I think. Ill try to test it and get more specific. Also 2025/08/06 17:04:43 INFO menu method TRAY_DEBUG=1 name=GetLayout parentID=0 propertyNames=[] is getting logged every second. That stops too if the issue occurs. I am also not sure if the problem only occurs if the System was in standby for an hour or something like that. When it is asleep for just a short amount of time, it still works.

Thanks for the help :)

lgoette avatar Aug 06 '25 15:08 lgoette

I tested it again and the Problem occurred after a little bit more than 2h :) Standby changed nothing (In this Test the machine did not enter sleepmode)

lgoette avatar Aug 06 '25 19:08 lgoette

Hmmm... You're just using the regular KDE 6 tray? Is this X11 or Wayland? I'll log into KDE and see if I can replicate it.

Also, SIGINT is trapped, so it won't close it if it's frozen. You can use Ctrl+\ to really kill it, and it'll even give you a stacktrace.

Did you find anything or were you able to reproduce this?

lgoette avatar Aug 08 '25 12:08 lgoette