Bug 489259 - Spamming Meta+V causes Plasma to exit with a Wayland protocol error (error 3: no xdg_popup parent surface has been specified)
Summary: Spamming Meta+V causes Plasma to exit with a Wayland protocol error (error 3:...
Status: REPORTED
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-crash (show other bugs)
Version: 6.1.1
Platform: Manjaro Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-26 21:24 UTC by medin
Modified: 2024-07-03 10:33 UTC (History)
14 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
This is the core dump I get from the clipboard (8.00 KB, text/plain)
2024-06-29 00:34 UTC, Kevin Schier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description medin 2024-06-26 21:24:51 UTC
Fast clicking on Meta+V causes the whole Plasma workspace to restart, nothing is reported by coredumpctl, journald logs the following information:

 6/26/24 10:14 PM	kwin_wayland	kf.windowsystem: static bool KX11Extras::mapViewport() may only be used on X11
6/26/24 10:14 PM	kwin_wayland	kwin_core: Failed to focus 0x1800011 (error 8)
6/26/24 10:14 PM	kwin_wayland	kf.windowsystem: static bool KX11Extras::mapViewport() may only be used on X11
6/26/24 10:14 PM	kwin_wayland_wrapper	error in client communication (pid 1916)
6/26/24 10:14 PM	kwin_wayland	qt.core.qobject.connect: QObject::disconnect: Unexpected nullptr parameter
6/26/24 10:14 PM	plasmashell	xdg_wm_base#3: error 3: no xdg_popup parent surface has been specified
6/26/24 10:14 PM	plasmashell	The Wayland connection broke. Did the Wayland compositor die?
6/26/24 10:14 PM	systemd	plasma-plasmashell.service: Main process exited, code=exited, status=255/EXCEPTION
6/26/24 10:14 PM	systemd	plasma-plasmashell.service: Failed with result 'exit-code'.
6/26/24 10:14 PM	systemd	plasma-plasmashell.service: Scheduled restart job, restart counter is at 2.
6/26/24 10:14 PM	systemd	Starting KDE Plasma Workspace...
6/26/24 10:14 PM	systemd	Started KDE Plasma Workspace.
Comment 1 cwo 2024-06-26 21:53:02 UTC
I tried to replicate this but can't, whether manually pressing the shortcut or keeping it pressed. I tried it with several images in the clipboard, I tried it with 31 megabytes of Lorem Ipsum plain text. I tried it with an empty clipboard. The only thing I got was fast flickering from the popup opening and closing so often.

Do you have an idea about specific circumstances that may have caused this? Does it happen reliably for you?
Comment 2 medin 2024-06-26 22:10:56 UTC
(In reply to cwo from comment #1)

> Do you have an idea about specific circumstances that may have caused this?
> Does it happen reliably for you?

It happens at random frequency, sometimes first hit, sometimes 1 miss 1 hit, sometimes 2 or more miss then it occurs.

The only customized thing I have is setting 700 items as history for Klipper.

Is there any way apart from coredumpctl to retrieve the crash?
Comment 3 Akseli Lahtinen 2024-06-27 10:47:47 UTC
Can you share more information of your system?

System Settings -> About this system -> click copy details and paste them here
Comment 4 medin 2024-06-27 14:02:51 UTC
(In reply to Akseli Lahtinen from comment #3)
> Can you share more information of your system?


This was not present on 6.1.0, it happened after upgrading to 6.1.1, the problem is more aggressive on two laptops:

Operating System: Manjaro Linux 
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.6-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i3-5005U CPU @ 2.00GHz
Memory: 5.6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 5500


Operating System: Manjaro Linux 
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.6-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 2 × Pentium® Dual-Core CPU T4400 @ 2.20GHz
Memory: 5.6 GiB of RAM
Graphics Processor: Mesa Mobile Intel® GM45 Express Chipset
Manufacturer: Acer
Product Name: T
Comment 5 jmanninen161 2024-06-27 16:39:33 UTC
I have this same problem on my desktop. I don't know how else to debug it, but journalctl show me there errors after workspace crashing due to klipper:

kesä 27 19:33:59 cachyos-x8664 kwin_wayland_wrapper[870]: error in client communication (pid 1008)
kesä 27 19:33:59 cachyos-x8664 plasmashell[1008]: xdg_wm_base#3: error 3: no xdg_popup parent surface has been specified
kesä 27 19:34:00 cachyos-x8664 plasmashell[2885]: error getting max keyboard brightness via dbus QDBusError("org.freedesktop.DBus.Error.UnknownObject", "No such object path '/org/kde/Solid/PowerManagement/Actions/KeyboardBrightnessControl'")

Operating System: CachyOS Linux 
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.10.0-rc5-2-cachyos-rc-lto (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 7600 6-Core Processor
Memory: 30,8 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4070 Ti SUPER/PCIe/SSE2
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B650M DS3H
Comment 6 Nate Graham 2024-06-27 19:20:09 UTC
Looks like the same issue as Bug 488515, but applied to this popup too.

FWIW I also cannot reproduce the issue by spamming Meta+V, albeit with my puny 20 item history.
Comment 7 Nate Graham 2024-06-27 19:20:58 UTC
Or maybe the fix for that issue happened to fix this one too? I see that that issue is only fixed for Plasma 6.2.
Comment 8 devminer 2024-06-28 09:43:10 UTC
I also have this issue after updating to Plasma 6.1.1. I can get it to fail 50% of the time after having copied an image into the clipboard and then trying to press Meta+V three times.

journalctl:
Jun 28 11:34:24 desktop plasmashell[8117]: org.kde.plasma.keyboardindicator: Unknown key Qt::Key_Alt
Jun 28 11:34:24 desktop plasmashell[8117]: org.kde.plasma.keyboardindicator: Unknown key Qt::Key_Alt
Jun 28 11:34:35 desktop plasmashell[8117]: xdg_wm_base#3: error 3: no xdg_popup parent surface has been specified
Jun 28 11:34:35 desktop plasmashell[8117]: The Wayland connection experienced a fatal error: Protocol error
Jun 28 11:34:36 desktop systemd[1407]: plasma-plasmashell.service: Main process exited, code=exited, status=255/EXCEPTION
Jun 28 11:34:36 desktop systemd[1407]: plasma-plasmashell.service: Failed with result 'exit-code'.
Jun 28 11:34:36 desktop systemd[1407]: plasma-plasmashell.service: Scheduled restart job, restart counter is at 5.
Jun 28 11:34:36 desktop systemd[1407]: Starting KDE Plasma Workspace..

Operating System: EndeavourOS 
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.6-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 9 Vlad Zahorodnii 2024-06-28 09:47:20 UTC
I cannot reproduce it. What window is active and where is the cursor when you press Meta+V?
Comment 10 medin 2024-06-28 10:04:30 UTC
(In reply to Vlad Zahorodnii from comment #9)
> I cannot reproduce it. What window is active and where is the cursor when
> you press Meta+V?

It happens everywhere, with Firefox, Kate... even with desktop visible and no app opened.
Comment 11 Paul Meier 2024-06-28 13:08:44 UTC
I have the same issue. I first thought it was because of the large amount of history I had set, which was 512 entries. But even after reducing the amount I still have this crash.

KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.6-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Comment 12 Kevin Schier 2024-06-29 00:32:38 UTC
I also have this issue. I also get crashes when opening the debug console via "qdbus6 org.kde.KWin /KWin org.kde.KWin.showDebugConsole
" with the same error "QDBusError("org.freedesktop.DBus.Error.UnknownObject", "No such object path". General instability and freezes after upgrading to 6.1.1
Comment 13 Kevin Schier 2024-06-29 00:34:00 UTC
Created attachment 171157 [details]
This is the core dump I get from the clipboard
Comment 14 JD 2024-07-01 09:28:11 UTC
I'm also seeing this on Arch.

Steps to Replicate (For me):
- Press Meta+V to open clipboard selection list modal.
- Press Meta+V again while the paste modal is still visible

Caveats (For me):
- Plasmashell does not seem to crash if Meta+V is pressed and the clipboard popup modal is not focused.
  (This can be achieved by pressing Meta, keeping it held down until the Application Launcher to shows up, and then pressing V, so you can unfocus the popup/modal without dismissing it)

Uninformed Musings / Speculation as to cause (I am not a *KDE* developer):
I heard that keybinds only involving the Meta key were added recently, maybe it's related to that?
Another thought is that it might have do with Wayland and the concept of focus somehow (?).

Closing Thoughts:
I've seen other people in this thread that can cause this crash through a single press of Meta+V, I think I've experienced the crash when Meta+V is pressed, but I can't intentionally replicate this.
Comment 15 StavrosL 2024-07-03 10:21:19 UTC
I can reproduce this reliably by :
- Pressing Meta+V 
- Clicking on the Search Bar on the modal 
- Pressing Meta+V 

Operating System: Garuda Linux 
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.7-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Comment 16 Jérôme Lécuyer 2024-07-03 10:33:29 UTC
I am able to reproduce consistently.
1. Press Meta+V
2. **Release Meta and V**
3. Press Meta+V
If using a 3-key shortcut, releasing only 2 of them cause the issue.
e.g. Maj+Alt+V ⇒ Release Maj+Alt ⇒ Press Maj+Alt

I am also able to reproduce the single press crash
1. Meta (open the Application Launcher)
2. Meta (close it), or open an application by using the keyboard or the mouse
3. (... Do whatever you want: nothing, wait, write, Alt+Tab, Meta+C; except explicit focus to a panel by clicking on it, or going to the/another desktop ...)
4. Press Meta+V

Summary: Meta+V try to open a dialog on closed/closing dialog

As a workaround, switch to the desktop/another virtual desktop before using Meta+V.
e.g. Meta+D+D, **Release all**, Meta+V
(Meta, Meta, Meta+D+D+V will crash)

---

Output of plasmashell when crashing
xdg_wm_base#3: error 3: no xdg_popup parent surface has been specified
The Wayland connection experienced a fatal error: Protocol error

Operating System: EndeavourOS 
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.7-zen1-1-zen (64-bit)
Graphics Platform: Wayland