Bug 473204

Summary: Plasmashell crashes randomly in ShellCorona::restorePreviousWindow() when clearing clipboard
Product: [Plasma] plasmashell Reporter: the_archer_xz
Component: PanelAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kde, nate, niccolo.venerandi, qydwhotmail
Priority: NOR Keywords: drkonqi, wayland
Version: 5.27.7   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description the_archer_xz 2023-08-09 12:16:38 UTC
Application: plasmashell (5.27.7)

Qt Version: 5.15.10
Frameworks Version: 5.108.0
Operating System: Linux 6.2.0-26-generic x86_64
Windowing System: Wayland
Distribution: KDE neon 5.27
DrKonqi: 5.27.7 [CoredumpBackend]

-- Information about the crash:
It seems to occur rather frequently with plasmashell crashing when attempting to clear the clipboard. But other random crashes occured as well when doing various things. But the clearing of the clipboard causing plasmashell to crash is a typical issue with this version of KDE Plasma it seems. And I don't know if this is specific to Wayland only.

The crash can be reproduced every time.

-- Backtrace (Reduced):
#6  0x00007f1514012dff in wl_proxy_marshal_flags () at /lib/x86_64-linux-gnu/libwayland-client.so.0
#7  0x00007f15140e7664 in KWayland::Client::PlasmaWindow::requestActivate() () at /lib/x86_64-linux-gnu/libKF5WaylandClient.so.5
#8  0x000055e847b224da in ShellCorona::restorePreviousWindow() (this=0x55e8494b1150) at ./shell/shellcorona.cpp:1229
#9  ShellCorona::restorePreviousWindow() (this=0x55e8494b1150) at ./shell/shellcorona.cpp:1217
#10 0x000055e847b1045c in PanelView::refreshStatus(Plasma::Types::ItemStatus) (this=0x55e84ad7dec0, status=<optimized out>) at ./shell/panelview.cpp:1429


Reported using DrKonqi
Comment 1 the_archer_xz 2023-08-09 12:16:40 UTC
Created attachment 160859 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Nate Graham 2023-08-09 20:02:24 UTC
I strongly suspect that this bug is no longer possible to experience in the upcoming Plasma 6 due to changes in the code that's crashing here.
Comment 3 the_archer_xz 2023-08-09 20:07:36 UTC
Well, I have no idea on how to code. So, I am leaving this to the experts. 
Hopefully the bugs will be fixed in Plasma 6 regarding plasmashell crashing 
though.

I finally managed to make drkonqi generate a backtrace. Before, it was failing 
to do that for some reason whenever plasmashell crashed.
Comment 4 Fushan Wen 2023-08-10 06:39:30 UTC

*** This bug has been marked as a duplicate of bug 473054 ***