Bug 357023 - Move to Trash freeze
Summary: Move to Trash freeze
Status: RESOLVED DUPLICATE of bug 357042
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-22 02:38 UTC by Leslie Zhai
Modified: 2015-12-22 14:44 UTC (History)
2 users (show)

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


Attachments
0002-move-to-trash-freeze.patch (467 bytes, patch)
2015-12-22 13:37 UTC, Leslie Zhai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leslie Zhai 2015-12-22 02:38:36 UTC
In plasmashell folderview, created a new folder, removed it to Trash, then cleanup Trash, it is OK, but repeated "created a new folder, removed it to Trash, then cleanup Trash" several times, the cleanup Trash freeze, KIO::Job never stop https://twitter.com/xiangzhai/status/679127747424223233 

PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                            
 6907 zhaixia+  20   0 4273052 210772 103960 S  42.0  2.6   1:27.55 plasmashell 

only killall trash.so can stop the freeze job.

KF5: v5.16.0
Qt5: v5.5.1

Reproducible: Always
Comment 1 Leslie Zhai 2015-12-22 02:42:06 UTC
https://bugs.kde.org/show_bug.cgi?id=354484
Comment 2 Leslie Zhai 2015-12-22 13:37:45 UTC
Created attachment 96261 [details]
0002-move-to-trash-freeze.patch

It is a monkey patch, I have no idea why trash.so deadlock after calling QEventLoop::exec(...)
QEventLoop can not quit properly!
Comment 3 Cjacker 2015-12-22 14:30:53 UTC
Leslie,

I do not know you already report this bug, as I said,  you should start from the hang of 'ktrash5 --empty', this is not a 'kio trash' issue, but 'emptytrashjob' issue.

My report and fix is here: https://bugs.kde.org/show_bug.cgi?id=357042

Please mark it as duplicated. And help me submit the fix to 'git reviewboard'.

The bug is also not related to : https://bugs.kde.org/show_bug.cgi?id=354484
Comment 4 Leslie Zhai 2015-12-22 14:44:24 UTC
*** This bug has been marked as a duplicate of bug 357042 ***