Bug 256338

Summary: Dolphin crashes when dropping files on breadcrumb dropdown
Product: [Applications] dolphin Reporter: Todd <toddrme2178>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: 16.12.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 4.11.0
Sentry Crash Report:

Description Todd 2010-11-08 06:57:53 UTC
Application: dolphin (1.5)
KDE Platform Version: 4.5.3 (KDE 4.5.3)
Qt Version: 4.7.0
Operating System: Linux 2.6.34.7-0.5-desktop x86_64
Distribution: "openSUSE 11.3 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:

I dragged one or more files to the dolphin breadcrumb address bar, hovered over one of the arrows to trigger the dropdown, then dropped the files.  In this case I copied them, but it also happens when I move them.  It only happens intermittently, I had to do it twice to trigger it in this case but it can take up to a dozen drops before it triggers in others cases.  It does not seem to happen when dragging in the file browser area, I tried moving files that way a couple dozen times without triggering a crash.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Dolphin (kdeinit4), signal: Aborted
[KCrash Handler]
#6  0x00007f86f9f089e5 in raise () from /lib64/libc.so.6
#7  0x00007f86f9f09ee6 in abort () from /lib64/libc.so.6
#8  0x00007f86f9f43c53 in __libc_message () from /lib64/libc.so.6
#9  0x00007f86f9f49226 in malloc_printerr () from /lib64/libc.so.6
#10 0x00007f86f9f4dfcc in free () from /lib64/libc.so.6
#11 0x00007f86fb56418e in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x60f3e0) at kernel/qcoreapplication.cpp:1389
#12 0x00007f86fb58b463 in sendPostedEvents (s=<value optimized out>) at kernel/qcoreapplication.h:220
#13 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:277
#14 0x00007f86f70aba93 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#15 0x00007f86f70ac270 in ?? () from /usr/lib64/libglib-2.0.so.0
#16 0x00007f86f70ac510 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#17 0x00007f86fb58b5ff in QEventDispatcherGlib::processEvents (this=0x6b8390, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#18 0x00007f86fa7aaeee in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#19 0x00007f86fb55fe12 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#20 0x00007f86fb560025 in QEventLoop::exec (this=0x7fff32446510, flags=...) at kernel/qeventloop.cpp:201
#21 0x00007f86fb56443b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#22 0x00007f86f4dff7b5 in kdemain (argc=5, argv=0x667800) at /usr/src/debug/kdebase-4.5.3/apps/dolphin/src/main.cpp:98
#23 0x0000000000407509 in launch (argc=5, _name=0x667178 "/usr/bin/dolphin", args=<value optimized out>, cwd=0x0, envc=<value optimized out>, envs=<value optimized out>, reset_env=false, tty=0x0, 
    avoid_loops=false, startup_id_str=0x6671d1 "da-vinci.artbox;1289192404;740707;4486_TIME90011729") at /usr/src/debug/kdelibs-4.5.3/kinit/kinit.cpp:723
#24 0x0000000000408025 in handle_launcher_request (sock=7, who=<value optimized out>) at /usr/src/debug/kdelibs-4.5.3/kinit/kinit.cpp:1215
#25 0x000000000040879a in handle_requests (waitForPid=<value optimized out>) at /usr/src/debug/kdelibs-4.5.3/kinit/kinit.cpp:1408
#26 0x00000000004093f0 in main (argc=2, argv=0x7fff32447b78, envp=0x7fff32447b90) at /usr/src/debug/kdelibs-4.5.3/kinit/kinit.cpp:1892

This bug may be a duplicate of or related to bug 255312, bug 254668, bug 253982, bug 238086, bug 250441, bug 233184, bug 249292, bug 249236, bug 235166, bug 245928.

Possible duplicates by query: bug 256267, bug 256235, bug 256205, bug 256204, bug 255992.

Reported using DrKonqi
Comment 1 Jeroen van Meeuwen (Kolab Systems) 2012-08-24 16:20:05 UTC
Resetting assignee to default as per bug #305719
Comment 2 Frank Reininghaus 2013-07-02 17:31:50 UTC
Git commit 669ee3250d233b96bc2f2e63865b048d33215674 by Frank Reininghaus.
Committed on 02/07/2013 at 17:27.
Pushed by freininghaus into branch 'master'.

Fix crash when dropping URLs on the URL navigator's drop down menus

The problem was that the files were copied/moved inside the nested event
loop of the drag, which caused problems if the "File exists" dialog was
shown.

The solution is to make the copy/move operation delayed, such that it is
executed in the main event loop.

Note that dropping files on these menus does apparently not work at the
moment when using the Oxygen style (see bug 310016).
Related: bug 192139, bug 293220, bug 309076
FIXED-IN: 4.11.0
REVIEW: 111273

M  +30   -2    dolphin/src/dolphinviewcontainer.cpp
M  +15   -0    dolphin/src/dolphinviewcontainer.h

http://commits.kde.org/kde-baseapps/669ee3250d233b96bc2f2e63865b048d33215674