Bug 462892

Summary: Crashes under X
Product: [Applications] Plasma Mobile Dialer Reporter: genghiskhan
Component: GeneralAssignee: Alexey Andreyev <aa13q>
Status: CONFIRMED ---    
Severity: crash CC: fella
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description genghiskhan 2022-12-11 08:19:39 UTC
Is this a bug or is this program exclusive to Wayland?
There are distros using X, which I use because of some programs I need, and it would be nice to make calls from desktop.

Tested on Alpine Linux.
Comment 1 Alexey Andreyev 2022-12-11 08:58:24 UTC
(In reply to genghiskhan from comment #0)
> Is this a bug or is this program exclusive to Wayland?
> There are distros using X, which I use because of some programs I need, and
> it would be nice to make calls from desktop.
> 
> Tested on Alpine Linux.

Hi!

Yeah, unfortunately for X11, the default build uses Wayland-specific feature, kde_lockscreen_overlay_v1 (https://invent.kde.org/plasma-mobile/plasma-dialer/-/blob/d59dc52006707d7f94d93142d94ac19c03cea954/plasma-dialer/org.kde.phone.dialer.desktop#L82). This feature provides dialer UI on top of the lockscreen and is not implemented for X11.

Currently it's even kwin and plasma-wayland-protocols specific (see also: https://invent.kde.org/libraries/plasma-wayland-protocols/-/merge_requests/41 and https://invent.kde.org/plasma/kwin/-/merge_requests/2385)

There's CMakeLists DIALER_BUILD_SHELL_OVERLAY option for it: https://invent.kde.org/plasma-mobile/plasma-dialer/-/blob/d59dc52006707d7f94d93142d94ac19c03cea954/CMakeLists.txt#L10

Turning it off at built time should prevent the crash at X11 environment.

Not sure is it makes sense to try to detect it at runtime, but ready to think about better implementations.
Comment 2 genghiskhan 2022-12-11 10:43:01 UTC
My current state is this:
Plasma shell disappears (crashes) from time to time on Wayland.
Plasma X11 is more stable.

Because it's my grandmother computer I'm setting up here, I hope a loop script to load plasma_session in case pidof plasma_session is empty, is a good solutionuntile Plasma Wayland becomes as stable as Plasma X11.

I'll try to build it the way you described.
Thank you for the explanation, Alexey.