Bug 427291 - Latte Dock crashes after the external display disconnected
Summary: Latte Dock crashes after the external display disconnected
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: 0.9.11
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-03 13:31 UTC by Peifeng Yu
Modified: 2020-10-03 13:41 UTC (History)
0 users

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


Attachments
My layout in use (29.49 KB, text/plain)
2020-10-03 13:31 UTC, Peifeng Yu
Details
Crash log (89.64 KB, text/x-log)
2020-10-03 13:31 UTC, Peifeng Yu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peifeng Yu 2020-10-03 13:31:17 UTC
Created attachment 132090 [details]
My layout in use

SUMMARY
Latte Dock crashes when the external display removed. I use an external display with my laptop's built-in display. The layout I'm using was adapted from the "Topbar and Dock" layout but with some changes:

* The top bar appears on both displays. The one on external is set to onPrimary, and the one on built-in is set to on eDP-1
* The dock appears on both displays with similar settings
* Plasmoids are changed

This setup works well when the external display is connected. However, when it is disconnected, latte-dock crashes. Then, the crash is consistent while the built-int display is the only screen.


STEPS TO REPRODUCE
1. Import my layout file
2. latte-dock -r -d --layout XPS

OBSERVED RESULT

latte-dock crashes.


EXPECTED RESULT

latte-dock doesn't crash and shows panels correctly.


SOFTWARE/OS VERSIONS 

Operating System: Arch Linux
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1

ADDITIONAL INFORMATION

The default layout indeed works fine. So my guess is my settings with the onPrimary/on eDP-1 caused the crash.

I then edited the layout to remove the panels set on eDP-1, and latte-dock starts fine.
Comment 1 Peifeng Yu 2020-10-03 13:31:43 UTC
Created attachment 132091 [details]
Crash log
Comment 2 Peifeng Yu 2020-10-03 13:41:37 UTC
I just tried the debug build of the latest git version, and it no longer crashes. So this is probably fixed already.