fredcw / Cinnamenu

Menu applet for Cinnamon desktop
GNU General Public License v3.0
0 stars 0 forks source link

search/open delay #2

Open fredcw opened 2 days ago

fredcw commented 2 days ago

@Danhicsuntdracones

I am having the same issue on LM 21.3, even YT videos freeze for that split second. I use a low-end laptop so I thought it could be a resource thing, but could be worth checking it.

@chrikro-at

Hi,

I have the same problem and it started around the same time as fredcw. It got worse and worse over time. It all started when the PC froze for a few seconds when I entered a search term. It took longer and longer for the computer to become operable again. You can't do anything for 10 or 20 seconds. While it only occurred sporadically at the beginning, it now occurs all the time. When I reinstalled the applet, it got even worse. Suddenly, not only the search function was affected, but the PC froze even if you just clicked on the menu button. It is currently impossible for me to use the applet. I miss it :(

I'm using Linux Mint 22, but the problem also occurred with 21.3. It also makes no difference if I switch off all toggles in the Cinnamenu settings.

The normal Linux Mint menu is not affected.

Hi, could you try something to help me narrow down the cause? Could you replace ~/.local/share/cinnamon/applets/Cinnamenu@json/5.8/applet.js with the following file

applet.js.txt

rename the file from applet.js.txt to applet.js, restart cinnamon (Ctrl-Alt-Esc), open and close cinnamenu and then find the debug info at the end of ~/.xsession-errors

For instance, mine looks like this:

Gjs-Message: 10:40:31.873: JS LOG: cinamenu debug: tweak: 0
Gjs-Message: 10:40:31.886: JS LOG: cinamenu debug: categories: 13
Gjs-Message: 10:40:31.902: JS LOG: cinamenu debug: sidebar: 29
Gjs-Message: 10:40:31.905: JS LOG: cinamenu debug: scroll: 32
Gjs-Message: 10:40:31.915: JS LOG: cinamenu debug: focus: 42
Gjs-Message: 10:40:31.916: JS LOG: cinamenu debug: size: 43
Gjs-Message: 10:40:31.959: JS LOG: cinamenu debug: set: 86
chrikro-at commented 2 days ago

Do you know what's funny? As I said, reinstalling does not bring any improvement. However, I did not restart the computer after the reinstallation. Today I saw that the problem has disappeared (probably because the PC has now been restarted) It is therefore possible that the problem can be 'solved' by reinstalling the applet and then restarting the PC.

But maybe it was just a coincidence. I will continue to monitor whether the problem reappears. Maybe I'll discover a pattern. If the bug reappears, I will do what you wrote and help you find the error :) Thanks!

Danhicsuntdracones commented 1 day ago

Just followed the process, this is what .xsession-errors shows:

(cinnamon:294807): GLib-GObject-CRITICAL **: 10:36:27.643: value "-36,000000" of type 'gfloat' is invalid or out of range for property 'margin-bottom' of type 'gfloat'
Gjs-Message: 10:36:29.046: JS LOG: [LookingGlass/info] GPU offload supported: false
Window manager warning: overlay-key-24 - Overwriting existing binding of keysym ffeb with keysym ffeb (keycode 85).
Window manager warning: overlay-key-24 - Overwriting existing binding of keysym ffec with keysym ffec (keycode 86).
Gjs-Message: 10:37:15.835: JS LOG: cinamenu debug: tweak: 1
Gjs-Message: 10:37:15.908: JS LOG: cinamenu debug: categories: 74
Gjs-Message: 10:37:15.921: JS LOG: cinamenu debug: sidebar: 87
Gjs-Message: 10:37:15.937: JS LOG: cinamenu debug: scroll: 103
Gjs-Message: 10:37:15.942: JS LOG: cinamenu debug: focus: 108
Gjs-Message: 10:37:15.943: JS LOG: cinamenu debug: size: 109
Gjs-Message: 10:37:16.732: JS LOG: cinamenu debug: set: 898
fredcw commented 14 hours ago

@Danhicsuntdracones From the timings, this appears to be just a performance issue. I've had another look at the relevant code but tbh, I can't really think of anything I can do to speed things up. Almost 1 second to open the menu is very slow though.