Bug 352311 - Different misbehavior when moving files
Summary: Different misbehavior when moving files
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-05 16:24 UTC by Soukyuu
Modified: 2018-08-31 22:00 UTC (History)
3 users (show)

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


Attachments
Kcrash log after such a message (4.85 KB, text/plain)
2015-09-05 16:26 UTC, Soukyuu
Details
kcrash report with dolphin-debug + kio-debug (3.42 KB, text/plain)
2015-09-08 19:14 UTC, Soukyuu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Soukyuu 2015-09-05 16:24:57 UTC
Ever since I updated to 15.08/plasma 5.4, dolphin randomly displays different error messages when moving files. The variations include:
- Access denied to <src path of file> 
- Could not change permissions on <src path of file>
- Folder expected but <folder> is a file

After that, dolphin usually crashes. Re-opening shows that all files were correctly moved and are not corrupted.

Reproducible: Sometimes

Steps to Reproduce:
1. move a set of files across partitions

Actual Results:  
One of the error messages pops up at the end of the process

Expected Results:  
No error messages

It feels as if there is a bug where it tries to change permissions at the source path instead of the destination, or something. Happened on several filesystems in both directions, including: ext4, btrfs, ntfs, sshfs (ext4 remotely).

The issue wasn't present with 15.04. Since dolphin uses kio, it might also be a kio issue instead, but I'm not sure how to test that.
Comment 1 Soukyuu 2015-09-05 16:26:39 UTC
Created attachment 94413 [details]
Kcrash log after such a message

KCrash said it's probably not useful (as it does in like, 99.9% of cases?).
This one happened after "Access denied to <src path>" -> retry -> "file <src path> doesn't exist" -> cancel -> crash
Comment 2 Frank Reininghaus 2015-09-07 21:03:58 UTC
Thanks for the bug report. This is probably related to KIO (unless these operations work reliably for you if you use Folder View?).

(In reply to Soukyuu from comment #1)
> KCrash said it's probably not useful (as it does in like, 99.9% of cases?).

If you want to make your backtraces more useful, have a look at https://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports

Often, a Valgrind log is also helpful if you can get one, see https://community.kde.org/Dolphin/FAQ/Crashes

But please do not report more than one bug per report. The error messages and the crash probably have different causes.
Comment 3 Soukyuu 2015-09-07 22:14:34 UTC
Sorry, what is Folder View? Also, making sure, I'll have to rebuild dolphin with debug symbols to get a usable trace, or kio as well?
Comment 4 Soukyuu 2015-09-08 19:14:45 UTC
Created attachment 94479 [details]
kcrash report with dolphin-debug + kio-debug

KCrash says it's not useful again. This is WITH debug symbols for dolphin and kio, so I guess the crash is outside of those two components?
Comment 5 Frank Reininghaus 2015-09-10 21:16:45 UTC
(In reply to Soukyuu from comment #3)
> Sorry, what is Folder View? 

It's Plasma's file management widget. You can have one or more on the desktop and then do much of the same stuff that you can do with Dolphin. This can help to find out if a bug is really a Dolphin bug, or somewhere else, like in KIO, Qt or another library that is shared.

> Also, making sure, I'll have to rebuild dolphin
> with debug symbols to get a usable trace, or kio as well?

Ideally, you would install debug symbols for Qt and all of KDE Frameworks.

(In reply to Soukyuu from comment #4)
> KCrash says it's not useful again. This is WITH debug symbols for dolphin
> and kio, so I guess the crash is outside of those two components?

This backtrace contains only frames from Qt and kjobwidgets.
Comment 6 Soukyuu 2015-09-11 00:17:39 UTC
> This backtrace contains only frames from Qt and kjobwidgets.
Well, I followed the link you posted to the arch linux way of adding "debug" and changing "strip"  to "!strip" in PKGBUILD, then built the package and installed it, so I'm not sure what went wrong. I've also put -DCMAKE_BUILD_TYPE=Debug instead of Release, so it should have built it with debug symbols.
Comment 7 Nate Graham 2018-08-22 19:45:15 UTC
Are any of the issues described here still reproducible with KDE Frameworks 5.47 and Dolphin 18.08.x?
Comment 8 Soukyuu 2018-08-23 20:28:50 UTC
The only scenario it still happens is when you copy files to a folder monitored by another program (for example qbittorrent watching for new torrents), which loads and deletes the file before dolphin/kio finishes setting the permissions.
Comment 9 Nate Graham 2018-08-31 22:00:13 UTC
(In reply to Soukyuu from comment #8)
> The only scenario it still happens is when you copy files to a folder
> monitored by another program (for example qbittorrent watching for new
> torrents), which loads and deletes the file before dolphin/kio finishes
> setting the permissions.

Thanks for following up. Could you file a new bug to track just that? This one is pretty convoluted at this point and I'm worried that the remaining issue will get lost in the noise. Thanks!