Bug 440899 - Latte is not working properly after desktop startup
Summary: Latte is not working properly after desktop startup
Status: RESOLVED UPSTREAM
Alias: None
Product: lattedock
Classification: Unmaintained
Component: application (other bugs)
Version First Reported In: 0.10.0
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-12 16:08 UTC by Jeff Hodd
Modified: 2021-08-14 18:14 UTC (History)
0 users

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


Attachments
Screenshot of desktop on startup with latte autostart (574.21 KB, image/png)
2021-08-12 16:08 UTC, Jeff Hodd
Details
Screenshot of systemsettings->Startup and Shutdown->Autostart (126.45 KB, image/png)
2021-08-12 16:32 UTC, Jeff Hodd
Details
Screenshot of systemsettings->Startup and Shutdown->Desktop Session (150.73 KB, image/png)
2021-08-12 16:33 UTC, Jeff Hodd
Details
Screenshot of restarted dock with latte spacer (896.17 KB, image/png)
2021-08-12 17:18 UTC, Jeff Hodd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Hodd 2021-08-12 16:08:57 UTC
Created attachment 140666 [details]
Screenshot of desktop on startup with latte autostart

SUMMARY
The latest version, v0.10.0, is not functioning properly when started via KDE/Plasma Autostart. On login, the bottom half of the screen is blacked out and blocks any desktop functionality from mid-screen down. If you open a terminal and kill the latte-dock process, all desktop functionality returns. You can then start latte-dock from the system menu, and it starts and functions as expected. I have tried clearing the qmlcache, rebuilding the package in my build environment, building the master version from github, autostarting from xdg and attempted to start it from session restore. None of these approaches fix the problem. It does not appear that the latte-dock process has crashed, it's simply interfering with the normal desktop startup. I have checked the logs for any sign of crashes - none exist.

STEPS TO REPRODUCE
1. Install v0.10.0 of latte-dock
2. Install latte autostart
3. Reboot system
4. Log in to Plasma desktop

OBSERVED RESULT
The bottom half of the screen is either non-functional or blacked out. Latte-dock is inaccessible. Parts of graphical apps running below the halfway mark are also inaccessible.

EXPECTED RESULT
Should have full desktop functionality and see the dock at the bottom of the screen.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux: 5.13.9
(available in About System)
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
After the desktop is started up, if you kill the latte process, full desktop functionality is returned. If latte is then restarted via the system menu, it starts as expected. This issue reminds me of a plasma bug that was fixed several months ago, where plasma components/widgets were being created too early - before the corona was fully instantiated (that bug produced a black screen with latte dock running at the bottom).
Comment 1 Michail Vourlakos 2021-08-12 16:24:10 UTC
you can follow discussion and solution at: https://forum.endeavouros.com/t/latte-dock-settings-window/16483/18

1. add latte-dock to be ignored from plasma restore session as shown in screenshots
2. add latte-dock to be started properly through autostart processes
Comment 2 Jeff Hodd 2021-08-12 16:29:55 UTC
I already add latte-dock to the ignore list, Michail.

From ksmserverrc:

excludeApps=latte-dock,octopi-notifier,thunderbird

I can also provide a screenshot of systemsettings->Startup and Shutdown->Desktop Session if you want, but those settings are stored in ksmserverrc, as above.

Same for systemsettings->Startup and Shutdown->Autostart. Latte is setup there correctly.
Comment 3 Michail Vourlakos 2021-08-12 16:31:09 UTC
3. use Latte default layout in order to check out that this is not an issue created by specific applet
Comment 4 Jeff Hodd 2021-08-12 16:32:26 UTC
Created attachment 140667 [details]
Screenshot of systemsettings->Startup and Shutdown->Autostart
Comment 5 Jeff Hodd 2021-08-12 16:33:25 UTC
Created attachment 140668 [details]
Screenshot of systemsettings->Startup and Shutdown->Desktop Session
Comment 6 Michail Vourlakos 2021-08-12 16:34:06 UTC
4. Show me also the contents of the applied desktop file
Comment 7 Michail Vourlakos 2021-08-12 16:34:56 UTC
(In reply to Jeff Hodd from comment #5)
> Created attachment 140668 [details]
> Screenshot of systemsettings->Startup and Shutdown->Desktop Session

5. are you sure that comma is the way to separate multiple application records in there?
Comment 8 Jeff Hodd 2021-08-12 16:36:06 UTC
[root@bslxenvy64 latte]# cat Bluestar.layout.latte 
[ActionPlugins][1]
RightButton;NoModifier=org.kde.latte.contextmenu

[Containments][1]
activityId=
byPassWM=false
enableKWinEdges=true
formfactor=2
immutability=1
isPreferredForShortcuts=false
lastScreen=-1
location=4
name=
onPrimary=true
plugin=org.kde.latte.containment
raiseOnActivityChange=false
raiseOnDesktopChange=false
settingsComplexity=4
timerHide=700
timerShow=200
viewType=0
visibility=2
wallpaperplugin=org.kde.image

[Containments][1][Applets][2]
immutability=1
plugin=org.kde.latte.plasmoid

[Containments][1][Applets][2][Configuration]
PreloadWeight=0

[Containments][1][Applets][2][Configuration][General]
isInLatteDock=true
launchers59=file:///usr/share/applications/org.kde.dolphin.desktop,file:///usr/share/applications/org.kde.konsole.desktop,file:///usr/share/applications/gimp.desktop,file:///usr/share/applications/vlc.desktop,applications:libreoffice-writer.desktop,applications:virtualbox.desktop,file:///usr/share/applications/filezilla.desktop,file:///usr/share/applications/thunderbird.desktop,file:///usr/share/applications/firefox.desktop,file:///usr/share/applications/chromium.desktop,applications:google-chrome.desktop,file:///usr/share/applications/pidgin.desktop,file:///usr/share/applications/transmission-qt.desktop,applications:gucharmap.desktop,file:///usr/share/applications/systemsettings.desktop

[Containments][1][Applets][3]
immutability=1
plugin=org.kde.plasma.lock_logout

[Containments][1][Applets][3][Configuration]
PreloadWeight=0

[Containments][1][Applets][3][Configuration][ConfigDialog]
DialogHeight=540
DialogWidth=720

[Containments][1][Applets][3][Configuration][General]
show_lockScreen=false

[Containments][1][Applets][4]
immutability=1
plugin=org.kde.plasma.pager

[Containments][1][Applets][4][Configuration]
PreloadWeight=0

[Containments][1][Applets][4][Configuration][General]
showWindowIcons=true

[Containments][1][Applets][6]
immutability=1
plugin=org.kde.plasma.panelspacer

[Containments][1][Applets][6][Configuration]
PreloadWeight=0

[Containments][1][Applets][6][Configuration][General]
expanding=false

[Containments][1][Applets][7]
immutability=1
plugin=org.kde.plasma.panelspacer

[Containments][1][Applets][7][Configuration]
PreloadWeight=0

[Containments][1][Applets][7][Configuration][General]
expanding=false

[Containments][1][Applets][8]
immutability=1
plugin=org.kde.plasma.showdesktop

[Containments][1][Applets][8][Configuration]
PreloadWeight=0

[Containments][1][Applets][9]
immutability=1
plugin=org.kde.plasma.trash

[Containments][1][Applets][9][Configuration]
PreloadWeight=0

[Containments][1][ConfigDialog]
DialogHeight=658
DialogWidth=539

[Containments][1][Configuration]
PreloadWeight=0

[Containments][1][General]
advanced=true
alignmentUpgraded=true
appletOrder=8;4;7;2;6;3;9
durationTime=x1
iconSize=32
shadowsUpgraded=true
shrinkThickMargins=true
tasksUpgraded=true
threeColorsWindows=true
titleTooltips=true
zoomLevel=16

[Containments][1][Indicator]
customType=
enabled=true
enabledForApplets=true
padding=0.07999999821186066
type=org.kde.latte.default

[LayoutSettings]
activities=
background=
backgroundStyle=0
color=blue
customBackground=
customTextColor=
disableBordersForMaximizedWindows=false
icon=
lastUsedActivity=6014f639-5a00-4ab1-8d37-cc778272db68
launchers=
popUpMargin=-1
preferredForShortcutsTouched=false
schemeFile=
sharedLayout=
showInMenu=true
textColor=fcfcfc
version=2
Comment 9 Jeff Hodd 2021-08-12 16:36:30 UTC
(In reply to Michail Vourlakos from comment #7)
> (In reply to Jeff Hodd from comment #5)
> > Created attachment 140668 [details]
> > Screenshot of systemsettings->Startup and Shutdown->Desktop Session
> 
> 5. are you sure that comma is the way to separate multiple application
> records in there?

Yes
Comment 10 Michail Vourlakos 2021-08-12 16:37:19 UTC
to check default layout you can use: latte-dock -d --default-layout
Comment 11 Jeff Hodd 2021-08-12 16:37:47 UTC
I want to reiterate that I am *not* seeing multiple instances of a latte-dock process.
Comment 12 Michail Vourlakos 2021-08-12 16:40:50 UTC
7. in your distro layout you are using "plugin=org.kde.plasma.panelspacer" this should not be possible. These are only plasma panels specific spacers, there is a chance that they can create abnormal behavior for you layout. For spacers in Latte it is suggested to use: https://store.kde.org/p/1287102/
Comment 13 Michail Vourlakos 2021-08-12 16:41:59 UTC
(In reply to Jeff Hodd from comment #11)
> I want to reiterate that I am *not* seeing multiple instances of a
> latte-dock process.

it shouldnt be possible to see multiple instances of latte because latte prevents that. What we are trying to confirm is that Latte is not started to early in the process and that is achieved by the new provided desktop file.
Comment 14 Jeff Hodd 2021-08-12 16:50:51 UTC
Ok. The default layout works. Is there anything in my layout file that you can see that might be questionable?
Comment 15 Jeff Hodd 2021-08-12 16:52:49 UTC
Sorry. Just saw your comment on panelspacer. let me look into that.
Comment 16 Michail Vourlakos 2021-08-12 16:55:48 UTC
(In reply to Jeff Hodd from comment #14)
> Ok. The default layout works. Is there anything in my layout file that you
> can see that might be questionable?

one of the applets is probably be the fault here:

1. drop the plasma panel spacers because they are not meant to be used with Latte and this is why they are not shown is Plasma Widgets Explorer
2. if you dropped panels spacers and the problem persists check one by one the following:
 - pager
 - lock/logout
 - show desktop
 - trashcan

my guess is that [1] is the issue or the pager one
Comment 17 Jeff Hodd 2021-08-12 16:58:56 UTC
The interesting thing is that once the bad instance is killed and the desktop restored, you can start latte from the system menu without any problems...

Anyway, I've built and installed the plasma5-applets-latte-spacer package and made the related change to the layout file. I'll let you know if that works.
Comment 18 Jeff Hodd 2021-08-12 17:15:48 UTC
Ok. It came up with the default layout, so I changed the layout to my modified one. Same issue. The bottom of the screen became inaccessible. I opened a terminal and killed the latte process and restarted it via the system menu. It came up no problem, as I'd already described in the bug description.

Any ideas?

Also, I do want a pager in the dock. This is part of my distro and I consider the pager to be an important component. I've been using latte since your very first release (0.1.0) and everything has worked fine right through 0.9.12. What's changed?
Comment 19 Jeff Hodd 2021-08-12 17:16:47 UTC
Also, the latte spacer doesn't appear to actually provide a space...
Comment 20 Jeff Hodd 2021-08-12 17:18:11 UTC
Created attachment 140669 [details]
Screenshot of restarted dock with latte spacer
Comment 21 Michail Vourlakos 2021-08-12 17:20:14 UTC
(In reply to Jeff Hodd from comment #20)
> Created attachment 140669 [details]
> Screenshot of restarted dock with latte spacer

Did you add the latte spacer as a regular user would do by drag n drop?
Comment 22 Michail Vourlakos 2021-08-12 17:21:56 UTC
Btw latte spacer is like a regular applet and provides its settings window in order to specify its length.
Comment 23 Jeff Hodd 2021-08-12 17:51:09 UTC
yeah. figured out the spacer. about to restart, again...
Comment 24 Jeff Hodd 2021-08-12 18:04:44 UTC
well, it's not the spacers. same issue. i'll start replacing the other pieces.
Comment 25 Jeff Hodd 2021-08-12 19:34:43 UTC
ends up it's the Lock/Logout widget. wouldn;t have guessed that one. i'm going to try the plasma spacers again, since it appears they weren;t the issue.
Comment 26 Jeff Hodd 2021-08-12 19:49:28 UTC
the standard kde panelspacers work just fine, Michail. for now i'll stick with those and work the latte spacers in to future releases. the lock/logout widget was the issue.
Comment 27 Jeff Hodd 2021-08-14 17:50:08 UTC
i know you've changed the status to resolved, but i was wondering if you could clarify something. the lock/logout widget is pretty innocuous - it does nothing really on startup - and was working in the dock without any problems as of v0.9.12. what changed in 0.10.0 that might have impacted its inclusion in the dock? it's a pretty standard widget...
Comment 28 Michail Vourlakos 2021-08-14 18:06:18 UTC
(In reply to Jeff Hodd from comment #27)
> i know you've changed the status to resolved, but i was wondering if you
> could clarify something. the lock/logout widget is pretty innocuous - it
> does nothing really on startup - and was working in the dock without any
> problems as of v0.9.12. what changed in 0.10.0 that might have impacted its
> inclusion in the dock? it's a pretty standard widget...

no idea 2200 commits... v0.10 has changed plenty of things... I wouldnt be surprised if the applet has layout issues...
Comment 29 Jeff Hodd 2021-08-14 18:14:00 UTC
ok. thanks Michail. that was the only thing i thought might have impacted it too.