Bug 413212 - lattedock is unstable on wayland
Summary: lattedock is unstable on wayland
Status: RESOLVED UPSTREAM
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: 0.9.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-19 22:33 UTC by Rainer Finke
Modified: 2019-10-27 16:10 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Finke 2019-10-19 22:33:35 UTC
I use lattedock instead of the plasma panel as it decouples the panel from plasmashell and on Wayland my desktop is more stable thanks to this. However lattedock is crashing from time to time, usually it can restart but not always. I'm not sure what exactly is the root cause (sometimes it might be an xwayland application, copying network files or even network changes). But there is no trace back. I've tried to use lattedock from git, but there was no real difference.

STEPS TO REPRODUCE
1. Use lattedock on Wayland
2. It will crash after starting some apps

OBSERVED RESULT
lattedock will crash from time to time

EXPECTED RESULT
lattedock is not crashing

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.17.0
KDE Frameworks Version: 5.63.0
Qt Version: 5.14.0
Kernel Version: 5.3.7-arch1-1-ARCH
lattedock 0.9.3
Comment 1 Michail Vourlakos 2019-10-20 05:27:53 UTC
Crash report?
Comment 2 Michail Vourlakos 2019-10-20 10:56:25 UTC
too generic title... more info are needed
Comment 3 Rainer Finke 2019-10-20 17:52:37 UTC
Thanks, I wish I could provide more details, but the following is the only output I got when starting latte-dock from the terminal:

$ latte-dock 
Warning: QT_AUTO_SCREEN_SCALE_FACTOR is deprecated. Instead use:
   QT_ENABLE_HIGHDPI_SCALING to enable platform plugin controlled per-screen factors.
Icon theme "gnome" not found.
This plugin supports grabbing the mouse only for popup windows
This plugin supports grabbing the mouse only for popup windows
KCrash: Attempting to start /usr/bin/latte-dock directly
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = latte-dock path = /usr/bin pid = 20054
KCrash: Arguments: /usr/bin/latte-dock 
KCrash: Attempting to start /usr/lib/drkonqi directly
Warning: QT_AUTO_SCREEN_SCALE_FACTOR is deprecated. Instead use:
   QT_ENABLE_HIGHDPI_SCALING to enable platform plugin controlled per-screen factors.
Warning: QT_AUTO_SCREEN_SCALE_FACTOR is deprecated. Instead use:
   QT_ENABLE_HIGHDPI_SCALING to enable platform plugin controlled per-screen factors.
Icon theme "gnome" not found.
Icon theme "gnome" not found.
[1]   Beendet                 latte-dock   ###translation: closed

[2]+  Angehalten              latte-dock   ###translation: stopped

These logs do not tell anything useful to me. I use lattedock on 2 different systems and on both it is crashing and restarting from time to time. If you tell me that it is working absolutely stable for you on Wayland, I might have a special config or it is Arch Linux related... or could it be that plasmashell will take latte down?
Comment 4 Michail Vourlakos 2019-10-20 18:50:08 UTC
(In reply to Rainer Finke from comment #3)
> Thanks, I wish I could provide more details, but the following is the only
> output I got when starting latte-dock from the terminal:
> 
> $ latte-dock 
> Warning: QT_AUTO_SCREEN_SCALE_FACTOR is deprecated. Instead use:
>    QT_ENABLE_HIGHDPI_SCALING to enable platform plugin controlled per-screen
> factors.
> Icon theme "gnome" not found.
> This plugin supports grabbing the mouse only for popup windows
> This plugin supports grabbing the mouse only for popup windows
> KCrash: Attempting to start /usr/bin/latte-dock directly
> KCrash: crashing... crashRecursionCounter = 2
> KCrash: Application Name = latte-dock path = /usr/bin pid = 20054
> KCrash: Arguments: /usr/bin/latte-dock 
> KCrash: Attempting to start /usr/lib/drkonqi directly
> Warning: QT_AUTO_SCREEN_SCALE_FACTOR is deprecated. Instead use:
>    QT_ENABLE_HIGHDPI_SCALING to enable platform plugin controlled per-screen
> factors.
> Warning: QT_AUTO_SCREEN_SCALE_FACTOR is deprecated. Instead use:
>    QT_ENABLE_HIGHDPI_SCALING to enable platform plugin controlled per-screen
> factors.
> Icon theme "gnome" not found.
> Icon theme "gnome" not found.
> [1]   Beendet                 latte-dock   ###translation: closed
> 
> [2]+  Angehalten              latte-dock   ###translation: stopped
> 
> These logs do not tell anything useful to me. I use lattedock on 2 different
> systems and on both it is crashing and restarting from time to time. If you
> tell me that it is working absolutely stable for you on Wayland, I might
> have a special config or it is Arch Linux related... or could it be that
> plasmashell will take latte down?

unfortunately this does not help. Wayland is general is unstable in general with Plasma,
it is considered in Beta state even for Plasma. Close Latte and use Plasma panels with the
same applets you are using with Latte, after a while you will probably get the same crashes.
Qt libraries still contain many wayland issues even with upcoming Qt 5.14 . My approach is
the following for the Crash report found from KCrash in the systray when Latte is crashing,
if the crash points Latte code then I am trying to fix it as possible. But if the crash report
points to Qt/graphic drivers or Plasma  then I am not trying to fix or workaround anything
any more... When the Qt/Plasma stack is considered stable in the future then I will try
to improve things for Latte implementation in wayland. In my system I dont use wayland...
too many issues with Plasma/KWin and Activities are also not working at all which is based
my main workflow, so I wait...
Comment 5 Rainer Finke 2019-10-27 16:10:37 UTC
I will close this bug. I had some random crashes again and as suggested they point to Qt, the graphic driver or to Wayland. In general lattedock is great, it works really well for me and it is more stable than the plasmashell panel. So I will continue to use it on Wayland too. Thank you