Bug 473977 - On a Wayland session, dragging and dropping an image from file manager into GIMP's Layers pane repeats the action a few times over
Summary: On a Wayland session, dragging and dropping an image from file manager into G...
Status: RESOLVED DUPLICATE of bug 482298
Alias: None
Product: kwin
Classification: Plasma
Component: Wayland drag-and-drop (show other bugs)
Version: 5.27.7
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-31 06:42 UTC by honoomahoujutsushi
Modified: 2024-09-30 12:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Reproduction of the bug as demonstrated in the video attached. (1.26 MB, video/mp4)
2023-08-31 06:42 UTC, honoomahoujutsushi
Details
Plasma logs with WAYLAND_DEBUG=1 (2.21 MB, text/x-log)
2024-05-19 16:17 UTC, xorport+kdebugtrack
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***