Bug 473977

Summary: On a Wayland session, dragging and dropping an image from file manager into GIMP's Layers pane repeats the action a few times over
Product: [Plasma] kwin Reporter: honoomahoujutsushi
Component: Wayland drag-and-dropAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: xorport+kdebugtrack
Priority: NOR    
Version First Reported In: 5.27.7   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Reproduction of the bug as demonstrated in the video attached.
Plasma logs with WAYLAND_DEBUG=1

Description honoomahoujutsushi 2023-08-31 06:42:00 UTC
Created attachment 161296 [details]
Reproduction of the bug as demonstrated in the video attached.

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

On a Wayland session, when dragging an image and dropping it into the Layers panel from a file manager / outside GIMP, the "dropping image as new layer" action repeats itself for a few times, filling up system memory and (potentially) crashing the running DE/WM. Reproduction of the bug was attempted in an X11 session, unable to reproduce the bug. Also cannot be reproduced in GNOME.

Further details: KDE 5.27.7, KDE Frameworks 5.109.0

STEPS TO REPRODUCE
1. Open an image normally in GIMP.
2. Outside GIMP, drag another image and drop it on top of existing layers in the Layers pane.
3. Action repeats several times over in rapid succession, filling up system RAM and potentially crashing the running DE/WM.

OBSERVED RESULT
Action repeats several times over in rapid succession, filling up system RAM and potentially crashing the running DE/WM.

EXPECTED RESULT
Image dragged and dropped onto the Layers pane will open as a new layer once.

SOFTWARE/OS VERSIONS
Windows: -
macOS: -
Linux/KDE Plasma: OpenSUSE Tumbleweed (20230823), Linux 6.4.11
(available in About System)
KDE Plasma Version:  5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Reproduction of the bug as demonstrated in the video attached.
Comment 1 honoomahoujutsushi 2023-08-31 06:46:17 UTC
Also reported on GIMP's bugtracker for reference.
https://gitlab.gnome.org/GNOME/gimp/-/issues/9935#note_1832979
Comment 2 xorport+kdebugtrack 2024-05-19 15:08:31 UTC
I have a same problem on Ubuntu 23.10. Might be related that I installed and removed automation software right before: ydotool, PyAutoGUI
Comment 3 xorport+kdebugtrack 2024-05-19 16:17:52 UTC
Created attachment 169623 [details]
Plasma logs with WAYLAND_DEBUG=1
Comment 4 Vlad Zahorodnii 2024-09-30 12:08:19 UTC
The root cause is the same as in bug 482298.

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