Bug 453425 - [wayland] latte does not show on startup
Summary: [wayland] latte does not show on startup
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: git (master)
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-05 15:16 UTC by thewitcher861
Modified: 2022-05-27 21:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Log from terminal (launched with -d) (20.62 KB, text/plain)
2022-05-05 15:16 UTC, thewitcher861
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thewitcher861 2022-05-05 15:16:07 UTC
Created attachment 148583 [details]
Log from terminal (launched with -d)

STEPS TO REPRODUCE
1. Log in to wayland plasma session
2. Start latte dock via krunner or terminal

OBSERVED RESULT
Dock is not displayed but its processes are visible in htop

EXPECTED RESULT
To see dock at desktop

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: ArchLinux x86_64
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Comment 1 Michail Vourlakos 2022-05-05 17:30:20 UTC
https://userbase.kde.org/LatteDock/HowToReportCrashes
Comment 2 thewitcher861 2022-05-05 21:04:56 UTC
(In reply to Michail Vourlakos from comment #1)
> https://userbase.kde.org/LatteDock/HowToReportCrashes

The problem is it doesn't actually crash (latte-dock processes are running in the background) but there is no gui. Running with --default-layout does not help.
Comment 3 thewitcher861 2022-05-05 21:07:48 UTC
Clearing qml cache does not help either
Comment 4 Ömer Fadıl USTA 2022-05-10 02:03:48 UTC
thewitcher861 : hello , are you using double display or single ? are you connected your output to your Displayport or your hdmi ?
maybe just maybe because of a bug it might send that gui into wrong output , have you ever tired other outputs to see if other one have gui or not ?
because in your logs its is showing 3 different output options : 
[Debug : 18:07:21.937937] - "org.kde.latte :: Known Screen -  \"10\"  :  \"HDMI-A-1\"  :  QRect(0,0 1920x1080)"
[Debug : 18:07:21.937937] - "org.kde.latte :: Known Screen -  \"11\"  :  \"DP-2\"  :  QRect(1920,0 1280x1024)"
[Debug : 18:07:21.937937] - "org.kde.latte :: Known Screen -  \"12\"  :  \"HDMI-0\"  :  QRect(0,0 1920x1080)"
Comment 5 Michail Vourlakos 2022-05-10 07:07:57 UTC
1. Try latest Latte git version that as of yesterday contains some wayland fixes
2. after you login in wayland, execute in cmd: "latte-dock -d --default-layout"

step 2 should give you a default latte layout that will be loaded
Comment 6 thewitcher861 2022-05-10 08:45:22 UTC
Updated latte, didn't help. As for monitors, I have 2: 1920x1080 at HDMI and 1280x1024 at DP. Unplugging the HDMI one helps. Dock starts normally. I guess the problem is the extra monitor that appears for some reason.
Comment 7 Bug Janitor Service 2022-05-25 04:35:54 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 dreamcat4 2022-05-27 16:05:41 UTC
(In reply to thewitcher861 from comment #6)
> Updated latte, didn't help. As for monitors, I have 2: 1920x1080 at HDMI and
> 1280x1024 at DP. Unplugging the HDMI one helps. Dock starts normally. I
> guess the problem is the extra monitor that appears for some reason.

Hello m'dears.

Currently experiencing the same bug here on wayland.... tried so many different things. But no luck. But unfortunately it didn't change anything. At no time does latte appear (after restarting latte on the cmdline and with the correct flags). I can attach the --debug log here but it's probably not going to help.

If it is any small clue, IDK. But when running latte from the cmdline it stops logging output and never prints anything after the screens / displays detection bit. And then if I try to interrupt latte-dock process by sending a ctrl+C on the keyboard (SIGINT). That is ignored. So then I have to ctrl+z and forcibly kill it off. So IDK if that means latte is actually hung and crashed process. Or if that is just normal correct running program behaviour of it to ignore ctrl+c....

Things I have tried

* Thoroughly updating my system, including re-installing the nvidia proprietary drivers AND libmesa ones (AND kernel). Check.
* Recompiled Latte using today's `./install.sh` from the git repo? Check.
* Try latte on gnome wayland instead of plasma? Check. (but it segfaults on gnome. So was no help)
* Unplug dual displays and reboot? On either monitor has no effect. Latte is still completely AFK. Check.
* Add environment var `QT_QPA_PLATFORM=wayland` ? Check. No difference.

Overall situation seems difficult to probe or get a better understand of, (for myself here). Because it might in fact not be latte itself, but some other bugs in either qt5 libraries, or in wayland (in kwin). Or in the nvidia proprietary drivers 510. Since there's certainly other things going on and causing other types of bugs within the wayland session. Even when Latte is not running.

And this is supposed to have been fixed recently? This specific bug?

My system configuration:

* Ubuntu 22.04 (upgraded from 21.10, 21.04, 20.04, etc etc)
* All of the qt5 and other libraries as per ubuntu 22.04 distro
* Plasma version `plasma-desktop/jammy,jammy,now 4:5.24.5-0ubuntu1~ubuntu22.04~ppa1 amd64 [installed]` (=5.24.5, from kde backports?)
* nvidia-driver-510 verison `nvidia/510.73.05`
* Kernel `5.17.11-xanmod1 #0~git20220525.9ffe6c5`
* Latte version: `lattedock 0.10.77`
* GPU = nvidia gt1030 Pascal generation (this prevents installing the new open source nvidia drivers)
* MESA = `mesa-vdpau-drivers/jammy,now 22.1.0+git2205261808.f8b312559ba~j~mesarc0`

Other main bug on wayland here: The plasma panels (not latte) are slow and unresponsive. Like you right click on the desktop and it's laggy / gets progressively less responsive. IDK if that would affect Latte Dock. However other regular applications are mostly not being affected. There is a suspicion of 'nvidia timers bug' existing on closed source nvidia drivers? However the problem there is that it's kernele non-GPL symbols (cannot be fixed by nvidia?). Since the nvidia open source driver does not support cards like mine (pascal), anything older than 2000 series nvidia gpus. Cannot try the open source driver to eliminate that.

Again, no idea if such other kde bug would affect Latte adversely in this way. And no idea why removing 2nd display works for other guy here. But not for myself. Or if it's indeed some seperate bug here in latte dock. Which maybe was not fully fixed?

Anyhow that's my report, all that's left is to attach the logfile now. (which isn't going to show anything the matter, it just stops outputting).
Comment 9 dreamcat4 2022-05-27 16:07:50 UTC
and heres a link to my logfile, https://gist.github.com/dreamcat4/09dda9074fed6b2270ef4273b9f73f0a
Comment 10 Michail Vourlakos 2022-05-27 20:58:41 UTC
(In reply to dreamcat4 from comment #9)
> and heres a link to my logfile,
> https://gist.github.com/dreamcat4/09dda9074fed6b2270ef4273b9f73f0a

Based on your log file your dock screen edge assignment is broken, no idea how that happened. You can close Latte totally and run from command line:

latte-dock -d --default-layout

it will load you the default provided layout and it should work.
Comment 11 Michail Vourlakos 2022-05-27 21:00:48 UTC
(In reply to dreamcat4 from comment #9)
> and heres a link to my logfile,
> https://gist.github.com/dreamcat4/09dda9074fed6b2270ef4273b9f73f0a

no my mistake your layout edge assignment is just fine... No idea what is broken in your system... Please open a new bug report, that is probably NVidia proprietary driver issue
Comment 12 dreamcat4 2022-05-27 21:08:49 UTC
(In reply to Michail Vourlakos from comment #11)
> broken in your system... Please open a new bug report, that is probably NVidia proprietary driver issue

agreed, and thanks for the reply.

new bug opened as:

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

(is just copied / pasted my existing previous comment, there was nothing new added to it)