Bug 500381

Summary: Triggering a notification from Dolphin logs errors to the journal for qt.qpa.wayland
Product: [Applications] dolphin Reporter: hbr <nepnep>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: akselmo, christoph, kfm-devel
Priority: NOR    
Version First Reported In: 24.12.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description hbr 2025-02-19 08:28:22 UTC
SUMMARY
Triggering a notification from dolphin (e.g. by compressing something with Ark) logs the following errors to the journal:

19.02.25 09:20	dolphin	qt.qpa.wayland: Creating a popup with a parent, QWidgetWindow(0x60e075e8e8a0, name="Dolphin#1Window") which does not match the current topmost grabbing popup, QWidgetWindow(0x60e076bba5f0, name="DolphinContextMenuClassWindow") With some shell surface protocols, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly. Please fix the transient parent of the popup.

19.02.25 09:20	kwin_wayland	kwin_core: Cannot grant a token to KWin::ClientConnection(0x644f09e601e0)


STEPS TO REPRODUCE
1. Compress some files from Dolphin using the context menu
2. A notifcation pops up stating that the task was finished and times out
3. Check the journal

OBSERVED RESULT
The above error messages appear in the journal.

EXPECTED RESULT
No error happens / error messages get logged.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.3.1
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7800X3D 8-Core Processor
Memory: 30,9 GiB of RAM
Graphics Processor: AMD Radeon RX 7900 XTX
Manufacturer: ASRock
Product Name: X670E Steel Legend
Comment 1 Akseli Lahtinen 2025-02-21 14:00:01 UTC
Can confirm this warning, here's how I can repro it 

1. open dolphin in terminal, then open hamburger menu
2. go to create new and wait for the context menu to appear
3. right click the folder view
4. go to create new again

warning pops up

If you do steps 3 and 4 after restarting dolphin (and dont do 1,2)
the warning does not popup.

Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.12.15-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600
Comment 2 Christoph Cullmann 2025-06-19 16:25:57 UTC
One variant of that is now fixed with

https://invent.kde.org/frameworks/kxmlgui/-/merge_requests/284

For more I think we need a Qt fix

https://bugreports.qt.io/browse/QTBUG-137467

This is now fixed in Qt and will release with 6.9.2 and 6.10.