Bug 452269 - (SIGABRT) xdg-desktop-portal-kde crashes on logout on Wayland, resulting in a black screen
Summary: (SIGABRT) xdg-desktop-portal-kde crashes on logout on Wayland, resulting in a...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (show other bugs)
Version: 5.24.3
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2022-04-04 18:14 UTC by postix
Modified: 2022-09-20 21:37 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
journalctl log (124.11 KB, text/plain)
2022-04-04 18:14 UTC, postix
Details
bt full (8.54 KB, text/plain)
2022-04-04 18:15 UTC, postix
Details
kwin wayland support informationen (6.23 KB, text/plain)
2022-04-04 18:16 UTC, postix
Details
journalctl output (121.01 KB, text/plain)
2022-09-01 17:39 UTC, kinghat
Details

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2022-04-04 18:14:03 UTC
Created attachment 147960 [details]
journalctl log

SUMMARY

I have two users on the system: userA (1000) and userB (1001). When I logout from userB often I get only a black screen and the monitors goes into stand by. Switching to tty3 let the monitor go on again. Then switching back to tty2 only gives me a black screen but now with a working mouse cursor.

In order to make the system functional again, I have to login as a super user in tty3 and execute `systemctl restart sddm`.


STACKTRACE

```
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007f0267c9c8f3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2  0x00007f0267c4f6a6 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3  0x00007f0267c397d3 in __GI_abort () at abort.c:79
#4  0x00007f02680e744b in qt_message_fatal (message=<synthetic pointer>..., context=...) at global/qlogging.cpp:1914
#5  QMessageLogger::fatal (this=this@entry=0x7ffca48dcef0, msg=msg@entry=0x7f0269307f45 "%s") at global/qlogging.cpp:893
#6  0x00007f0268f0e41c in init_platform (argv=<optimized out>, argc=@0x7ffca48dd13c: 1, platformThemeName=..., platformPluginPath=..., pluginNamesWithArguments=...) at kernel/qguiapplication.cpp:1254
#7  QGuiApplicationPrivate::createPlatformIntegration (this=0x563e13fe1b20) at kernel/qguiapplication.cpp:1474
#8  0x00007f0268f0e8a8 in QGuiApplicationPrivate::createEventDispatcher (this=<optimized out>) at kernel/qguiapplication.cpp:1491
#9  0x00007f02682e3493 in QCoreApplicationPrivate::init (this=this@entry=0x563e13fe1b20) at kernel/qcoreapplication.cpp:835
#10 0x00007f0268f10ca0 in QGuiApplicationPrivate::init (this=this@entry=0x563e13fe1b20) at kernel/qguiapplication.cpp:1520
#11 0x00007f0269b039fd in QApplicationPrivate::init (this=0x563e13fe1b20) at kernel/qapplication.cpp:513
#12 0x0000563e135f541e in main (argc=<optimized out>, argv=0x7ffca48dd328) at /usr/src/debug/xdg-desktop-portal-kde-5.24.3-2.fc35.x86_64/src/xdg-desktop-portal-kde.cpp:25
```

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 35
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.16.18-200.fc35.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700G with Radeon Graphics
Memory: 13.6 GiB of RAM
Graphics Processor: AMD RENOIR
Comment 1 postix 2022-04-04 18:15:29 UTC
Created attachment 147961 [details]
bt full
Comment 2 postix 2022-04-04 18:16:02 UTC
Created attachment 147962 [details]
kwin wayland support informationen
Comment 3 Nicolas Fella 2022-04-04 23:49:19 UTC
> systemd[1981]: Starting Xdg Desktop Portal For KDE...
> Apr 04 16:34:21 HostName xdg-desktop-portal-kde[28786]: qt.qpa.xcb: could not connect to display
> Apr 04 16:34:21 HostName xdg-desktop-portal-kde[28786]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it >was found.
> Apr 04 16:34:21 HostName xdg-desktop-portal-kde[28786]: This application failed to start because no Qt platform plugin could be initialized. > Reinstalling the application may fix this problem.

xdg-desktop-portal-kde is starting up (during logout!) and crashing because it cannot connect to X11 (in a Wayland session!)
Comment 4 Harald Sitter 2022-04-05 11:35:50 UTC
Is it still a wayland session when there's no wayland compositor anymore? (:

Probably related to Bug #450531

Also, almost everything goes belly up so surely something else is wrong with session shutdown.

Apr 04 16:33:15 HostName kwalletd5[1999]: The Wayland connection broke. Did the Wayland compositor die?
...
Comment 5 kinghat 2022-09-01 17:38:59 UTC
i am on fedora as well and have tried many fresh installs and its reproducible 100% of the time. adding journalctl output.

system info:
Operating System: Fedora Linux 36
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5
Kernel Version: 5.19.4-200.fc36.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i7-5600U CPU @ 2.60GHz
Memory: 11.6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 5500
Manufacturer: LENOVO
Product Name: 20BX001FUS
System Version: ThinkPad T450s
Comment 6 kinghat 2022-09-01 17:39:48 UTC
Created attachment 151769 [details]
journalctl output
Comment 7 kinghat 2022-09-20 21:11:53 UTC
i no longer have this issue on:

Operating System: Fedora Linux 36
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5
Kernel Version: 5.19.9-200.fc36.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i7-5600U CPU @ 2.60GHz
Memory: 11.6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 5500
Manufacturer: LENOVO
Product Name: 20BX001FUS
System Version: ThinkPad T450s