Latte-dock freezing randomly

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.

Well I would suggest switching and trying different version, but you might also delete your latte folder before installing, located in /home/(username)/.config/latte . Start fresh as the mountain breeze. :wind_face:

2 Likes

IMPORTANT: I fixed the startup freezes issue in v0.10.x with : plasmadesk:fix startup freezes from QDbusInterface (912f2f1c) · Commits · Plasma / Latte Dock · GitLab

as it appears no applet was the faulter. Latte just had to NOT BLOCK DBus Interface at all during startup. I believe that the fix should work at all cases. The turning point was when a user reported that the last message was observing was related to PLASMA STRUTS MANAGER...

thanks all for the help and please update as soon as possible.

The fix is part of v0.10.x and master version.

The bug report to report back your findings after testing the fix can be found at: 444739 – startup and occasional freezes from plasma default applets

6 Likes

Did that, freezes still occur when using more than one dock/one screen.

I wasn't particularly affected by startup freezes - very rarely did it happen, maybe two or three times total. So far I haven't had any startup freezes after updating to the master branch's version.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.