Bug 308656

Summary: Crash after close split view and restore file from Trash
Product: [Applications] dolphin Reporter: Alexey Shildyakov <ashl1future>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 2.1   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Crash info from DrKonqi

Description Alexey Shildyakov 2012-10-19 12:45:04 UTC
1. Open split view. Left side - the folder on USB drive where the file in trash will restore to. Right side - the trash.
2. Restore image file from trash. The file was shown in the left view with thumbnail.
3. Close right view
4. Crash

Reproducible: Couldn't Reproduce
Comment 1 Alexey Shildyakov 2012-10-19 12:45:21 UTC
Created attachment 74648 [details]
Crash info from DrKonqi
Comment 2 Frank Reininghaus 2012-10-19 13:18:25 UTC
Thanks for the report!

You probably have the debugging patch for bug 304986 applied, right? I'm asking because I think that a crash with such a backtrace cannot happen with the unpatched Dolphin.
Comment 3 Alexey Shildyakov 2012-10-19 13:52:02 UTC
Yep, patch was installed. I forgot to recompile the package.
Is this a reason for the crash?
Comment 4 Frank Reininghaus 2012-10-19 14:25:58 UTC
Thanks for the quick reply.

Yes, the patch is the reason for the crash. In the interest of getting as much useful output as possible, I printed the current state of some variables in all places where they can change. However, when the view is closed, this can cause a crash because the destructor of the class indirectly calls the debug output code, which tries to access data from the KFileItemModel which has already been deleted.

Sorry for the trouble, I should have mentioned this in the other bug report.