Bug 506028

Summary: Dolphin crashes when dragging and dropping files in the same directory
Product: [Applications] dolphin Reporter: trmdi
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: crash CC: kfm-devel, ripper
Priority: NOR    
Version First Reported In: 25.04.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: backtrace

Description trmdi 2025-06-23 09:21:16 UTC
Reproduce:
1. Go to the System Settings > General Behavior > Change the Drag and Drop to "Move if on the same device"
2. Open Dolphin and drag and drop a file in the same directory.
3. Dolphin crashes.
Comment 1 trmdi 2025-06-23 09:37:59 UTC
Actually the destination process crashes.
If you drop a file to the desktop, plasmashell crashes too.
Comment 2 Martin Riethmayer 2025-06-25 09:26:16 UTC
Can't reproduce on KDE Neon User Edition, neither on 6.4.0 nor on 6.4.1 with Dolphin 25.04.2.

I changed the settings to "Move if on same device" and tested:

If I drag'n'drop in the same directory, a pop-up is shown (asking for copy, move etc. as if I didn't change the DnD behaviour, I guess that's intended and it does make sense for me). There's no crash.
This is true for
a) doing this simply in the same window
b) doing this in the same window, but with split panes
c) doing this with two Dolphin windows 

If I drag'n'drop to a different directory, the file is moved immediately (as intended, works in a, b and c).

Other system info:
Frameworks 6.15.0
Qt 6.9.0
Wayland

Are you using different versions or are you on X11?
Comment 3 trmdi 2025-06-25 10:43:37 UTC
Ah it only crashes when I boot openSUSE Tumbleweed/KDE Neon ISO with Ventoy and drag&drop file on ~/.
Not crash on files in other partitons.
I'm not saying that it only happens with Ventoy, it just means that I'm using it to boot ISOs.
This is probably a bug in kio? It shouldn't crash in any cases.
Comment 4 trmdi 2025-06-25 15:15:09 UTC
Created attachment 182656 [details]
backtrace

Update Steps to reproduce the bug:

1. Boot KDE Neon ISO in VirtualBox or using a Ventoy USB.
2. Go to the System Settings > General Behavior > Change the Drag and Drop to "Move if on the same device"
3. Open Dolphin and create a new file in $HOME, then drag&drop that file right into the same directory or to the desktop
3. Dolphin/Plasmashell crashes.
Comment 5 Martin Riethmayer 2025-06-25 20:17:36 UTC
I did my experiment with /home/test/Readme.md (or .txt, not at the same PC right now) and it worked. There must be something else going on, but a crashlog is hopefully helping the developers to find out, what it is.

Am I understanding correctly that this happened on a Live System (i.e. you did not install Neon, you simply created a new Virtual Machine in VirtualBox, loaded the ISO and started the Virtual Machine)? I did not test that, I actually installed the system to do my tests.
Comment 6 trmdi 2025-06-25 23:54:48 UTC
> Am I understanding correctly that this happened on a Live System

Yes, that's it.
Comment 7 Martin Riethmayer 2025-06-26 07:45:17 UTC
OK, can confirm on a LIVE system.

Steps to reproduce from https://bugs.kde.org/show_bug.cgi?id=506028#c4 exhibit the bug

My guess: might have something to do with the way live-systems work with tmpfs and similar. I'm just guessing right now, though.