Bug 419812

Summary: Latte crashes when trying to use "Window Buttons" applet with multiple monitors
Product: [Unmaintained] lattedock Reporter: Jonathan Chun <unmonitored>
Component: applicationAssignee: Michail Vourlakos <mvourlakos>
Status: RESOLVED DOWNSTREAM    
Severity: normal    
Priority: NOR    
Version First Reported In: git (master)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Reference Screenshot
Reference Screenshot 2
kcrash1
kcrash2

Description Jonathan Chun 2020-04-07 19:16:13 UTC
Created attachment 127365 [details]
Reference Screenshot

SUMMARY
I'm unfortunately not able to reproduce this consistently, but it seems to happen after usage of my computer for a while and active switching between windows.

STEPS TO REPRODUCE
1. Set up 2 monitors
2. Set up a latte panel at the top
3. Add "Windows Buttons" applet to top panel
4. In Latte Dock Settings, enable "support borderless maximized windows in different layouts"
5. Do random activity here (unsure of what I did)
6. While having a window maximized on my second monitor (the one without the latte panel), try and use either the windows buttons applet OR just clicking/dragging to move the window with empty space feature
7. Get crash. View attached screenshot.
8. After a few reboots I'm actually no longer able to reproduce this, but I will report it anyways because there was clearly a problem at some point.


SOFTWARE/OS VERSIONS
KDE Neon 5.18
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.1


ADDITIONAL INFORMATION
Both were built from source today:
https://github.com/KDE/latte-dock
https://github.com/psifidotos/applet-window-buttons
Comment 1 Jonathan Chun 2020-04-07 19:17:22 UTC
Created attachment 127366 [details]
Reference Screenshot 2

This is a second screenshot showing some terminal output I was getting when I tried to restart latte-dock from the terminal before rebooting.
Comment 2 Michail Vourlakos 2020-04-07 19:27:15 UTC
https://userbase.kde.org/LatteDock/HowToReportCrashes
Comment 3 Jonathan Chun 2020-04-07 19:28:40 UTC
Thank you. I've bookmarked and will report back if it happens again.
Comment 4 Jonathan Chun 2020-04-07 20:17:02 UTC
Created attachment 127368 [details]
kcrash1

It just happened again, but unfortunately everything crashed including Kwin and things got really weird. Not sure I fully follow what you , what I did manage to do is get 3 new pieces of information.

1. I think that what might be related is that I restarted plasma with the following commands:
kwin --replace &
plasmashell --replace &

I've found from various sources that those commands are the "right way" the restart plasma without a full restart of the computer. If this is incorrect, please let me know. I've noticed that the above commands can help fix screen tearing/other glitches with my desktop that happen occasionally.

2. I tried clearing the cache and restarting as recommended in the link, but that doesn't seem to help. Once latte-dock gets into this state, it seems to constantly crash if I try to interact with the "Window Buttons" applet until I restart my computer fully.

3. Attached 2 kcrash dumps that I managed to pull before reboot.
Comment 5 Jonathan Chun 2020-04-07 20:18:06 UTC
Created attachment 127369 [details]
kcrash2
Comment 6 Michail Vourlakos 2020-04-07 20:22:10 UTC
(In reply to Jonathan Chun from comment #5)
> Created attachment 127369 [details]
> kcrash2

1. Try to use Breeze as decoration style. The crash points to your Hello decoration buttons. 
2. If it still occurs you need to build applet window buttons by yourself in order to be sure that was built correctly.

This crash has nothing to do with Latte
Comment 7 Jonathan Chun 2020-04-07 20:27:13 UTC
Thank you again. I'll start figuring out the correct location to report things eventually. I tested the same procedure multiple times on breeze/other decorations and was not able to reproduce. Will open this ticket against the correct repo.
Comment 8 Michail Vourlakos 2020-04-07 21:14:38 UTC
(In reply to Jonathan Chun from comment #7)
> Thank you again. I'll start figuring out the correct location to report
> things eventually. I tested the same procedure multiple times on
> breeze/other decorations and was not able to reproduce. Will open this
> ticket against the correct repo.

Don't worry, unfortunately I think Hello decoration is not developed/maintained any more