Bug 482754

Summary: plasmashell exits with Wayland protocol error ("Tried to add event to destroyed queue") when randomly hovering or clicking on tray icons
Product: [Plasma] plasmashell Reporter: Bogomil Vasilev <smirky>
Component: System TrayAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED UPSTREAM    
Severity: crash CC: b.j.c.goncalves, blu.merlot, cattysteve89265, dannkunt, hotlionfox, kde, kdedev, materka, nate, roger, sl1pkn07, spacetech326, tsweet64, wrought.iron364
Priority: VHI Keywords: drkonqi, qt6
Version: 6.0.1   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
plasma 6.1.5 crash backtrace

Description Bogomil Vasilev 2024-03-07 18:23:21 UTC
Application: plasmashell (6.0.1)

Qt Version: 6.6.2
Frameworks Version: 6.0.0
Operating System: Linux 6.7.8-arch1-1 x86_64
Windowing System: Wayland
Distribution: "Arch Linux"
DrKonqi: 6.0.1 [CoredumpBackend]

-- Information about the crash:
Using Plasma 6.0.1.
When clicking on tray icons, plasmashell crashes and restarts.

The crash can be reproduced every time.

-- Backtrace (Reduced):
#5  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#6  0x000077913aeab393 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#7  0x000077913ae5a6c8 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#8  0x000077913ae424b8 in __GI_abort () at abort.c:79
#9  0x000077913dd004f2 in wl_abort (fmt=fmt@entry=0x77913dd056d8 "Tried to add event to destroyed queue\n") at ../wayland-1.22.0/src/wayland-util.c:462


Reported using DrKonqi
Comment 1 Bogomil Vasilev 2024-03-07 18:23:22 UTC
Created attachment 166621 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Nate Graham 2024-03-07 22:37:25 UTC
#9  0x000077913dd004f2 in wl_abort (fmt=fmt@entry=0x77913dd056d8 "Tried to add event to destroyed queue\n") at ../wayland-1.22.0/src/wayland-util.c:462
#10 0x000077913dd027e2 in queue_event (len=<optimized out>, display=0x5bf8d1654bb0) at ../wayland-1.22.0/src/wayland-client.c:1575
#11 read_events (display=0x5bf8d1654bb0) at ../wayland-1.22.0/src/wayland-client.c:1670
#12 wl_display_read_events (display=0x5bf8d1654bb0) at ../wayland-1.22.0/src/wayland-client.c:1753


Do you have any custom widgets or apps with system tray icons? If so, does the issue go away when you temporarily remove or disable all of them?
Comment 3 Bogomil Vasilev 2024-03-08 06:51:16 UTC
(In reply to Nate Graham from comment #2)
> #9  0x000077913dd004f2 in wl_abort (fmt=fmt@entry=0x77913dd056d8 "Tried to
> add event to destroyed queue\n") at ../wayland-1.22.0/src/wayland-util.c:462
> #10 0x000077913dd027e2 in queue_event (len=<optimized out>,
> display=0x5bf8d1654bb0) at ../wayland-1.22.0/src/wayland-client.c:1575
> #11 read_events (display=0x5bf8d1654bb0) at
> ../wayland-1.22.0/src/wayland-client.c:1670
> #12 wl_display_read_events (display=0x5bf8d1654bb0) at
> ../wayland-1.22.0/src/wayland-client.c:1753
> 
> 
> Do you have any custom widgets or apps with system tray icons? If so, does
> the issue go away when you temporarily remove or disable all of them?

Not really. This happens on a fresh user too, without any additional apps, besides the default tray icons.
Comment 4 David Redondo 2024-03-08 09:59:34 UTC
I see you are using Vulkan rendering. (QRHIVulkan in backtrace)
It has known issues in Qt. https://bugreports.qt.io/browse/QTBUG-116329?
Did you enable it in the hidden kcm? There's a reason it comes with a warning.
OpenGL should not crash
Comment 5 David Redondo 2024-03-08 10:00:44 UTC
*** Bug 482769 has been marked as a duplicate of this bug. ***
Comment 6 Bogomil Vasilev 2024-03-08 13:35:42 UTC
Good catch! Will check it once I'm back on the specific PC. I did forget about that env variable in /etc/environment for quite some time.
Comment 7 Bogomil Vasilev 2024-03-08 15:59:41 UTC
Yup, I removed the `QSG_RHI_BACKEND=vulkan` from /etc/environment and now krunner and plasmashell don't crash. I've been using that in Plasma 5 and it was fine for many releases though.
Comment 8 Nate Graham 2024-04-11 19:37:09 UTC
*** Bug 485271 has been marked as a duplicate of this bug. ***
Comment 9 Nate Graham 2024-07-30 21:29:41 UTC
*** Bug 485160 has been marked as a duplicate of this bug. ***
Comment 10 Nate Graham 2024-07-30 21:30:57 UTC
*** Bug 484413 has been marked as a duplicate of this bug. ***
Comment 11 Nate Graham 2024-08-02 02:03:01 UTC
*** Bug 491149 has been marked as a duplicate of this bug. ***
Comment 12 cwo 2024-08-03 13:32:59 UTC
*** Bug 491195 has been marked as a duplicate of this bug. ***
Comment 13 cwo 2024-08-08 23:37:23 UTC
*** Bug 491458 has been marked as a duplicate of this bug. ***
Comment 14 spacetech326 2024-09-28 17:57:41 UTC
Created attachment 174174 [details]
plasma 6.1.5 crash backtrace

This still occurs on plasma 6.1.5. Attaching a backtrace in case it helps.
Comment 15 Nicolas Fella 2024-10-08 23:52:46 UTC
*** Bug 494300 has been marked as a duplicate of this bug. ***
Comment 16 Nate Graham 2024-10-31 17:19:58 UTC
*** Bug 495590 has been marked as a duplicate of this bug. ***
Comment 17 Nate Graham 2024-11-01 14:44:54 UTC
*** Bug 495660 has been marked as a duplicate of this bug. ***
Comment 18 tsweet64 2024-11-01 19:55:08 UTC
Where can I find this hidden KCM with the Qt Vulkan option? I haven't found anything by googling or digging through the settings, but I might be missing something
Comment 19 tsweet64 2024-11-02 01:39:32 UTC
Found it. For anyone else looking, type "Plasma Renderer" in krunner. Switching to opengl fixed it for me, thanks everyone!