Bug 357023

Summary: Move to Trash freeze
Product: [Frameworks and Libraries] frameworks-kio Reporter: Leslie Zhai <zhaixiang>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED DUPLICATE    
Severity: normal CC: cjacker, kdelibs-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: 0002-move-to-trash-freeze.patch

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 ***