Latte-dock freezing randomly

  1. For Latte freezes, the blamer I had fall upon is clipboard in the systray, try to disable it and see how it goes.
  2. For PLASMA_USE_QT_SCALING under X11 non responsiveness I have uploaded today patches that are part of upcoming 0.10.3

Most of freezes come from problematic applets e.g. something in the systray, deprecated virtual desktop bar etc.

4 Likes

I forgot to mention window buttons applet that could be also the faulter. Finally the bugs in Breeze and Oxygen decorations were fixed and will be part of Plasma 5.23.2. Afterwards a new window buttons 0.10.1 will be released that will be much much more lightweight from memory, cpu and hard disk usage.

2 Likes

I've now removed it from both of my latte top bars, but as soon as I reboot/change layouts it comes back. Is there any way to permanently disable an applet? I haven't found anything in the latte doc other than what I already did.

For now nothing seems to be freezing, will see how it goes during the day. Thanks!

I have had the exact same problem with latte and 2 monitors. Freeze, restart, freeze again, finally killing latte, turn off autostart, and quit using. And in my attempts at fixing the issue, I did find that my addition of a SECOND panel or dock in my 2nd monitor was the culprit. I did get some benefit from going through every part of my .config and .local folders, and trashing latte and monitor settings. But any "fiddling" in latte on my part usually caused a disaster again!

The choices I arrived at are (1) use 1 monitor + latte. or (2) use 2 monitors, no latte, and put an application launcher widget on the desktop. NOT IDEAL, but it works.

@RodneyCK I AGREE 1000%. I want to rip my eyeballs out of their sockets anytime I'm confronted with a typical Ubuntu install because of G-nome. I use Tails from time to time, and I need xanax after 60 mins of working in stark white gnome clicking 100x more than necessary. :cry:

Yeah unfortunately even when the clipboard applet is removed from each panel, latte still freezes when I add it to my second monitor. I'm not sure if that's because the applet is still running in the background or if something else causes it to freeze. I don't think the applet is truly removed or disabled as it reappears every time I restart latte/the computer or change the layout - and I can't find anything about permanently disabling it.

It's not so much the dock that I need on every screen but the panel with the window controls. An application launcher widget wouldn't solve that unfortunately.


Finally figured out how to disable the clipboard applet entirely...

  • Right click the system tray
  • Edit panel
  • Rearrange and configure your widgets
  • Hover system tray
  • Configure applet
  • In Entries, look for "Clipboard" in "System Services". In the dropdown menu, set it to disabled

I created also a bug report in case a developer can help with this.. I found one more applet creating freezes for Latte under Plasma 5.23 . This is the printmanager that on specific latte layouts may create startup freezes.

https://bugs.kde.org/show_bug.cgi?id=444739

2 Likes

Har har har har! Har har har har!
:rofl:

P.S. I wonder if we'll hear from @mandog?

3 Likes

I guess it makes sense given that in my first post I pointed to a CUPS error:

I've disabled it just like the clipboard, will see if it still freezes. For what it's worth even after disabling the clipboard freezes still occurred.

I can't edit my message anymore but I can confirm that it still freezes.
What's odd is that I still get CUPS errors despite the printer applet being disabled:

[Debug : 10:25:45.983983] - "CUPS-Get-Printers last error: 1282 Bad file descriptor"
[Debug : 10:26:10.133133] - " PLASMA SCREEN GEOMETRIES, LAST AVAILABLE SCREEN RECTS ::  QHash()"
[Debug : 10:26:10.133133] - " PLASMA SCREEN GEOMETRIES, SCREEN ::  12  -  \"DP1-1\""
[Debug : 10:26:16.048048] - "Get-Jobs last error: 1282 Bad file descriptor"
[Debug : 10:26:35.136136] - " PLASMA SCREEN GEOMETRIES, AVAILABLE RECT ::  \"DP1-1\"  :  QRect(1920,34 1920x977)"
[Debug : 10:26:46.118118] - "Get-Jobs last error: 1282 Bad file descriptor"
[Debug : 10:27:00.131131] - " PLASMA SCREEN GEOMETRIES, AVAILABLE REGION ::  \"DP1-1\"  :  QRegion(size=2, bounds=(1920,34 1920x1046) - [(1920,34 1920x976), (3839,1010 1x70)])"
[Debug : 10:27:00.131131] - " PLASMA SCREEN GEOMETRIES, SCREEN ::  10  -  \"eDP1\""
[Debug : 10:27:16.174174] - "Create-Printer-Subscriptions last error: 1282 Bad file descriptor"
[Debug : 10:27:16.174174] - "Request failed 1282 -1"
[Debug : 10:27:25.153153] - " PLASMA SCREEN GEOMETRIES, AVAILABLE RECT ::  \"eDP1\"  :  QRect(3840,34 1536x830)"
[Debug : 10:27:50.1313] - " PLASMA SCREEN GEOMETRIES, AVAILABLE REGION ::  \"eDP1\"  :  QRegion(size=2, bounds=(3840,0 1536x864) - [(5375,0 1x34), (3840,34 1536x830)])"
[Debug : 10:27:50.1313] - " PLASMA SCREEN GEOMETRIES, SCREEN ::  13  -  \"DP1-2\""
[Debug : 10:28:15.139139] - " PLASMA SCREEN GEOMETRIES, AVAILABLE RECT ::  \"DP1-2\"  :  QRect(70,36 1850x1044)"
[Debug : 10:28:40.153153] - " PLASMA SCREEN GEOMETRIES, AVAILABLE REGION ::  \"DP1-2\"  :  QRegion(size=3, bounds=(0,0 1920x1080) - [(1919,0 1x36), (70,36 1850x1043), (0,1079 1920x1)])"

The last line in the log corresponds to the moment I killed my VPN, which allowed latte-dock to recover. Is it possible that the printer applet loads before my settings causing latte to freeze anyway?

the printers applet is inside all systrays, so you need to disable it from all systrays even those that are out of screens. To check out you docks panels you can do the following:
right click dock -> Layouts -> Edit layouts... -> Choose your layout -> click at: Docks, Panels...

with Plasma 5.23.2 the printers applet freezing during startup I can not reproduce it.

3 Likes

I already disabled it from all systrays. I don't get freezes at startup but they do still occur later. My system has been booted for 10 minutes and I just got the first freeze. It also takes a very long time (over 4 minutes) for latte-dock to become responsive again when I kill it and restart it.


Barely two minutes since it became responsive, it froze again. Here's the log from when I last saw it responsive to the frozen state:

[Debug : 9:51:39.199199] - "reconsiderScreen() called..."
[Debug : 9:51:39.199199] - "  Delayer  "
[Debug : 9:51:39.199199] - "      D, found screen:  \"DP1-1\""
[Debug : 9:51:39.199199] - "      D, found screen:  \"eDP1\""
[Debug : 9:51:39.199199] - "      D, found screen:  \"DP1-2\""
[Debug : 9:51:39.199199] - "dock screen exists  :::  true"
[Debug : 9:51:39.199199] - "reached case 2: updating the explicit screen for dock..."
[Debug : 9:51:39.199199] - "syncGeometry() called..."
[Debug : 9:51:39.199199] - "reconsiderScreen() ended..."
[Debug : 9:51:39.199199] - "reconsiderScreen() called..."
[Debug : 9:51:39.199199] - "  Delayer  "
[Debug : 9:51:39.199199] - "      D, found screen:  \"DP1-1\""
[Debug : 9:51:39.199199] - "      D, found screen:  \"eDP1\""
[Debug : 9:51:39.199199] - "      D, found screen:  \"DP1-2\""
[Debug : 9:51:39.199199] - "dock screen exists  :::  true"
[Debug : 9:51:39.199199] - "reached case 2: updating the explicit screen for dock..."
[Debug : 9:51:39.199199] - "syncGeometry() called..."
[Debug : 9:51:39.199199] - "reconsiderScreen() ended..."
[Debug : 9:51:39.199199] - " -> Frame Extents ::  Plasma::Types::BottomEdge  __   extents ::  QMargins(0, 55, 0, 0)"
[Debug : 9:51:39.199199] - " -> Frame Extents ::  Plasma::Types::LeftEdge  __   extents ::  QMargins(0, 0, 55, 0)"
[Debug : 9:51:39.202202] - "Loading visibility mode: Latte::Types::DodgeActive  on startup..."
[Debug : 9:51:39.209209] - "syncGeometry() called..."
[Debug : 9:51:39.209209] - "Loading visibility mode: Latte::Types::DodgeActive  on startup..."
[Debug : 9:51:39.696696] - "immediateSyncGeometry() called..."
[Debug : 9:51:39.696696] - "syncGeometry() calculations for screen:  \"DP1-2\"  _  QRect(0,0 1920x1080)"
[Debug : 9:51:39.696696] - "syncGeometry() calculations for edge:  Plasma::Types::LeftEdge"
[Debug : 9:51:39.696696] - "syncGeometry() ended..."
[Debug : 9:51:39.696696] - "immediateSyncGeometry() called..."
[Debug : 9:51:39.697697] - "syncGeometry() called..."
[Debug : 9:51:39.697697] - "syncGeometry() calculations for screen:  \"DP1-1\"  _  QRect(1920,0 1920x1080)"
[Debug : 9:51:39.697697] - "syncGeometry() calculations for edge:  Plasma::Types::BottomEdge"
[Debug : 9:51:39.697697] - "syncGeometry() ended..."
[Debug : 9:51:39.716716] - "syncGeometry() called..."
[Debug : 9:51:39.733733] - "syncGeometry() called..."
[Debug : 9:51:39.854854] - "immediateSyncGeometry() called..."
[Debug : 9:51:39.854854] - "syncGeometry() calculations for screen:  \"DP1-2\"  _  QRect(0,0 1920x1080)"
[Debug : 9:51:39.854854] - "syncGeometry() calculations for edge:  Plasma::Types::LeftEdge"
[Debug : 9:51:39.854854] - "syncGeometry() ended..."
[Debug : 9:51:39.874874] - "immediateSyncGeometry() called..."
[Debug : 9:51:39.875875] - "syncGeometry() called..."
[Debug : 9:51:39.875875] - "syncGeometry() calculations for screen:  \"DP1-1\"  _  QRect(1920,0 1920x1080)"
[Debug : 9:51:39.875875] - "syncGeometry() calculations for edge:  Plasma::Types::BottomEdge"
[Debug : 9:51:39.875875] - "syncGeometry() ended..."
[Debug : 9:51:40.031031] - "immediateSyncGeometry() called..."
[Debug : 9:51:40.031031] - "syncGeometry() calculations for screen:  \"DP1-2\"  _  QRect(0,0 1920x1080)"
[Debug : 9:51:40.031031] - "syncGeometry() calculations for edge:  Plasma::Types::LeftEdge"
[Debug : 9:51:40.031031] - "syncGeometry() ended..."
[Debug : 9:52:06.206206] - " PLASMA SCREEN GEOMETRIES, LAST AVAILABLE SCREEN RECTS ::  QHash((\"DP1-1\", QRect(1920,34 1920x1046))(\"eDP1\", QRect(3840,34 1536x830))(\"DP1-2\", QRect(0,36 1920x1044)))"
[Debug : 9:52:06.206206] - " PLASMA SCREEN GEOMETRIES, SCREEN ::  12  -  \"DP1-1\""
[Debug : 9:52:31.205205] - " PLASMA SCREEN GEOMETRIES, AVAILABLE RECT ::  \"DP1-1\"  :  QRect(1920,34 1920x977)"
[Debug : 9:52:56.206206] - " PLASMA SCREEN GEOMETRIES, AVAILABLE REGION ::  \"DP1-1\"  :  QRegion(size=2, bounds=(1920,34 1920x1046) - [(1920,34 1920x976), (3839,1010 1x70)])"
[Debug : 9:52:56.206206] - " PLASMA SCREEN GEOMETRIES, SCREEN ::  10  -  \"eDP1\""
[Debug : 9:52:56.206206] - " PLASMA SCREEN GEOMETRIES, SCREEN ::  13  -  \"DP1-2\""
[Debug : 9:53:21.205205] - " PLASMA SCREEN GEOMETRIES, AVAILABLE RECT ::  \"DP1-2\"  :  QRect(70,36 1850x1044)"
[Debug : 9:53:46.187187] - " PLASMA SCREEN GEOMETRIES, AVAILABLE REGION ::  \"DP1-2\"  :  QRegion(size=3, bounds=(0,0 1920x1080) - [(1919,0 1x36), (70,36 1850x1043), (0,1079 1920x1)])"

Every time I restart latte-dock, the last messages from the former log also appear before it becomes responsive. As you can see, there's definitely some delay when each screen geometry is determined:

[Debug : 9:52:06.206206] - " PLASMA SCREEN GEOMETRIES, LAST AVAILABLE SCREEN RECTS ::  QHash((\"DP1-1\", QRect(1920,34 1920x1046))(\"eDP1\", QRect(3840,34 1536x830))(\"DP1-2\", QRect(0,36 1920x1044)))"
[Debug : 9:52:06.206206] - " PLASMA SCREEN GEOMETRIES, SCREEN ::  12  -  \"DP1-1\""
[Debug : 9:52:31.205205] - " PLASMA SCREEN GEOMETRIES, AVAILABLE RECT ::  \"DP1-1\"  :  QRect(1920,34 1920x977)"
[Debug : 9:52:56.206206] - " PLASMA SCREEN GEOMETRIES, AVAILABLE REGION ::  \"DP1-1\"  :  QRegion(size=2, bounds=(1920,34 1920x1046) - [(1920,34 1920x976), (3839,1010 1x70)])"
[Debug : 9:52:56.206206] - " PLASMA SCREEN GEOMETRIES, SCREEN ::  10  -  \"eDP1\""
[Debug : 9:52:56.206206] - " PLASMA SCREEN GEOMETRIES, SCREEN ::  13  -  \"DP1-2\""
[Debug : 9:53:21.205205] - " PLASMA SCREEN GEOMETRIES, AVAILABLE RECT ::  \"DP1-2\"  :  QRect(70,36 1850x1044)"
[Debug : 9:53:46.187187] - " PLASMA SCREEN GEOMETRIES, AVAILABLE REGION ::  \"DP1-2\"  :  QRegion(size=3, bounds=(0,0 1920x1080) - [(1919,0 1x36), (70,36 1850x1043), (0,1079 1920x1)])"

After many more freezes I finally gave up and reverted to a layout with only one dock and one systray on one screen, and a default resolution without any randr scaling. Seems to be more stable right now.

Have you tried my solution on this thread?

1 Like

Thanks for the answer! Unfortunately yes I already have tried that. The problem was never isolated to just at startup though. It happens any time, even after being killed and restarted way after the system has booted. It really seems to be a problem with multiple layouts and/or odd resolutions due to randr scaling. Haven't had a freeze since changing the things I mentioned earlier.

1 Like

right click Latte -> Configure Latte... -> Preferences -> (disable) Inform Plasma Desktop for available desktop

does it help?

3 Likes

Since I upgraded to Plasma 5.23.2 I get random freezes for Latte and the strange thing is that I didnt have such issue at Plasma 5.23.0 . My guess is that this is an upstream Plasma issue but I can not be sure.

4 Likes

Disabled that, switched to my "problematic" layout and it immediately froze.

so which one is the problematic applet in your problematic layout?

3 Likes

Out of the three ones you mentioned - Printer, Clipboard and Window buttons - the only one I still have enabled is the latter. I don't have any custom applet installed. I don't think my freezes come from applets anymore though. In fact, my systray is identical in both layouts but only the one with multiple docks/systrays is freezing.

Which latte version are you running, the 'git' version from Chaotic-aur or the standard community version? Maybe try switching?

I used to run the stable version before I encountered the first freezes. After those, I switched to latte-dock-git from chaotic-aur and right now I'm running 0.10.75.