Bug 450320 - Plasma crashes in QGuiApplicationPrivate::createPlatformIntegration() after quick re-login to Wayland
Summary: Plasma crashes in QGuiApplicationPrivate::createPlatformIntegration() after q...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-crash (show other bugs)
Version: 5.24.1
Platform: Arch Linux Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: wayland
: 454695 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-02-15 16:59 UTC by Patrick Silva
Modified: 2023-10-30 16:06 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2022-02-15 16:59:58 UTC
STEPS TO REPRODUCE
1. login to Wayland
2. logout
3. login to Wayland quickly

OBSERVED RESULT
plasma crash

EXPECTED RESULT
no crash

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.24.1
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Graphics Platform: Wayland


Thread 1 (Thread 0x7f171a02ca80 (LWP 1657)):
#0  0x00007f171e71434c in __pthread_kill_implementation () from /usr/lib/libc.so.6
#1  0x00007f171e6c74b8 in raise () from /usr/lib/libc.so.6
#2  0x00007f171e6b1534 in abort () from /usr/lib/libc.so.6
#3  0x00007f171eb54ee4 in qt_message_fatal (message=<synthetic pointer>..., context=...) at global/qlogging.cpp:1914
#4  QMessageLogger::fatal (this=this@entry=0x7ffffb568a50, msg=msg@entry=0x7f171f574f89 "%s") at global/qlogging.cpp:893
#5  0x00007f171f10f9f5 in init_platform (argv=<optimized out>, argc=@0x7ffffb568a40: 787744320, platformThemeName=..., platformPluginPath=..., pluginNamesWithArguments=...) at kernel/qguiapplication.cpp:1254
#6  QGuiApplicationPrivate::createPlatformIntegration (this=0x555f2ef3f140) at kernel/qguiapplication.cpp:1481
#7  0x00007f171f110019 in QGuiApplicationPrivate::createEventDispatcher (this=<optimized out>) at kernel/qguiapplication.cpp:1498
#8  0x00007f171ed46c4b in QCoreApplicationPrivate::init (this=this@entry=0x555f2ef3f140) at kernel/qcoreapplication.cpp:835
#9  0x00007f171f1100d7 in QGuiApplicationPrivate::init (this=this@entry=0x555f2ef3f140) at kernel/qguiapplication.cpp:1527
#10 0x00007f171f98d37e in QApplicationPrivate::init (this=0x555f2ef3f140) at kernel/qapplication.cpp:513
#11 0x00007f171f98d4a4 in QApplication::QApplication (this=<optimized out>, argc=<optimized out>, argv=<optimized out>, _internal=<optimized out>, this=<optimized out>, argc=<optimized out>, argv=<optimized out>, _internal=<optimized out>) at kernel/qapplication.cpp:501
#12 0x0000555f2da09338 in main (argc=<optimized out>, argv=0x7ffffb568f98) at /usr/src/debug/plasma-workspace-5.24.1/shell/main.cpp:82
Comment 1 Nate Graham 2022-02-15 21:41:16 UTC
See also Bug 429426 and Bug 441234.
Comment 2 David Edmundson 2022-05-05 14:28:27 UTC
Can you confirm if this is still an issue after a61b3faecb1e13c8100084f14e6646721c6e48bb in plasma-workspace (5.25 onwards)
Comment 3 Patrick Silva 2022-05-20 00:52:43 UTC
plasmashell and other process are still crashing on Plasma 5.25 beta.

Operating System: Arch Linux
KDE Plasma Version: 5.24.90
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4
Graphics Platform: Wayland


Thu 2022-05-19 21:45:21 -03   2125 1003 1003 SIGABRT present  /usr/lib/xdg-desktop-portal-kde                 >
Thu 2022-05-19 21:45:21 -03   1992 1003 1003 SIGABRT present  /usr/bin/plasmashell                            >
Thu 2022-05-19 21:45:20 -03   2139 1003 1003 SIGABRT present  /usr/bin/gmenudbusmenuproxy                     >
Thu 2022-05-19 21:45:20 -03   2148 1003 1003 SIGABRT present  /usr/bin/xembedsniproxy                         >
Thu 2022-05-19 21:45:18 -03   2095 1003 1003 SIGABRT present  /usr/lib/org_kde_powerdevil                     >
Thu 2022-05-19 21:45:17 -03   2084 1003 1003 SIGABRT present  /usr/lib/org_kde_powerdevil                     >
Thu 2022-05-19 21:45:16 -03   2071 1003 1003 SIGABRT present  /usr/lib/org_kde_powerdevil                     >
Thu 2022-05-19 21:45:15 -03   2059 1003 1003 SIGABRT present  /usr/lib/org_kde_powerdevil                     >
Thu 2022-05-19 21:45:14 -03   1994 1003 1003 SIGABRT present  /usr/lib/org_kde_powerdevil
Comment 4 Nate Graham 2022-06-01 18:24:32 UTC
*** Bug 454695 has been marked as a duplicate of this bug. ***
Comment 5 Patrick Silva 2022-06-15 13:44:46 UTC
Coredumps persist after update to Plasma 5.25. Sometimes I even get a black screen with cursor after login to X11.
Comment 6 Patrick Silva 2022-09-15 19:24:55 UTC
Still several coredumps after the provided steps on Plasma 5.26 beta.

Thu 2022-09-15 16:16:49 -03   2517 1003 1003 SIGABRT present  /usr/bin/plasmashell                    >
Thu 2022-09-15 16:16:49 -03   2518 1003 1003 SIGABRT present  /usr/lib/org_kde_powerdevil             >
Thu 2022-09-15 16:16:48 -03   2498 1003 1003 SIGABRT present  /usr/bin/plasmashell                    >
Thu 2022-09-15 16:16:48 -03   2499 1003 1003 SIGABRT present  /usr/lib/org_kde_powerdevil             >
Thu 2022-09-15 16:16:47 -03   2478 1003 1003 SIGABRT present  /usr/bin/plasmashell                    >
Thu 2022-09-15 16:16:46 -03   2479 1003 1003 SIGABRT present  /usr/lib/org_kde_powerdevil             >
Thu 2022-09-15 16:16:45 -03   2401 1003 1003 SIGABRT present  /usr/bin/plasmashell                    >
Thu 2022-09-15 16:16:45 -03   2402 1003 1003 SIGABRT present  /usr/lib/org_kde_powerdevil             >
Thu 2022-09-15 16:16:43 -03   2365 1003 1003 SIGABRT present  /usr/lib/org_kde_powerdevil             >
Thu 2022-09-15 16:16:43 -03   2377 1003 1003 SIGABRT present  /usr/bin/plasmashell
Comment 7 Nate Graham 2023-03-10 15:11:44 UTC
I can reproduce this issue in Fedora 37 with Plasma 5.27.2 after switching SDDM to be run in Wayland Native mode with KWin as its compositor.
Comment 8 David Edmundson 2023-09-29 14:31:50 UTC
Git commit 6ce8f434139f47e6a71bf0b68beae92be8845ce4 by David Edmundson.
Committed on 29/09/2023 at 16:31.
Pushed by davidedmundson into branch 'master'.

Use systemd to handle more of the shutdown

Previously we killed kwin manually, then tried to exit the session.
This is racey as kwin will close all connections, before systemd has
realised that the session is ending this can cause all apps to restart.

Also closing plasma-workspace-wayland.target is ineffective, closing the
graphical-session implicitly brings down the session more explicitly.
It'll close the other targets and services.
Related: bug 473824, bug 409088, bug 450531, bug 451939, bug 434403

Tested by looking at `coredumpctl list` after a logout and seeing it go from 10 entries of silly aborts restarting without a display server to 3, with different unrelated causes.

M  +12   -4    startkde/plasma-shutdown/shutdown.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/6ce8f434139f47e6a71bf0b68beae92be8845ce4
Comment 9 Patrick Silva 2023-10-30 16:06:13 UTC
Unfortunately crashes in a row, including Plasma crash, are still happening after quick re-login to Wayland session on neon unsatable.
I got a black screen with mouse pointer after the following crashes:

$ coredumpctl
Mon 2023-10-30 12:52:46 -03  6232 1000 1000 SIGSEGV present      /usr/lib/x86_64-linux-gnu/libexec/kf6/kioworker            2.9M
Mon 2023-10-30 12:52:48 -03  6328 1000 1000 SIGABRT present      /usr/lib/x86_64-linux-gnu/libexec/org_kde_powerdevil     843.7K
Mon 2023-10-30 12:52:50 -03  6364 1000 1000 SIGABRT present      /usr/bin/plasmashell                                     944.4K
Mon 2023-10-30 12:52:51 -03  6464 1000 1000 SIGABRT present      /usr/lib/x86_64-linux-gnu/libexec/org_kde_powerdevil     842.6K
Mon 2023-10-30 12:52:51 -03  6448 1000 1000 SIGABRT present      /usr/lib/x86_64-linux-gnu/libexec/xdg-desktop-portal-kde 899.7K
Mon 2023-10-30 12:52:53 -03  6489 1000 1000 SIGABRT present      /usr/bin/plasmashell                                     944.0K
Mon 2023-10-30 12:52:53 -03  6504 1000 1000 SIGABRT present      /usr/lib/x86_64-linux-gnu/libexec/org_kde_powerdevil     841.3K
Mon 2023-10-30 12:52:55 -03  6533 1000 1000 SIGABRT present      /usr/lib/x86_64-linux-gnu/libexec/org_kde_powerdevil     844.2K
Mon 2023-10-30 12:53:00 -03  6615 1000 1000 SIGABRT present      /usr/bin/gmenudbusmenuproxy                              410.3K
Mon 2023-10-30 12:53:00 -03  6623 1000 1000 SIGABRT present      /usr/bin/xembedsniproxy                                  403.4K
Mon 2023-10-30 12:53:00 -03  6610 1000 1000 SIGABRT present      /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd            706.0K
Mon 2023-10-30 12:53:01 -03  6625 1000 1000 SIGABRT present      /usr/bin/kaccess                                         527.7K