Bug 251546

Summary: Dolphin crashed while checking folder size in properties [null KIO::DirectorySizeJob::totalSize, KDEPrivate::KFilePropsPlugin::slotDirSizeFinished, ..., KIO::DirectorySizeJob::slotResult]
Product: [Unmaintained] kio Reporter: Arnas Dyburis <arnas.dyburis>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: adawit, alguzduxtan, andresbajotierra, antoniogarciacordero, balanila, geoff.cutter, ht990332, jmgoda, mtadeunet, nate, nitusdarkthief, schtiago, sem.maxim
Priority: NOR    
Version: 4.4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi

Description Arnas Dyburis 2010-09-17 10:28:18 UTC
Application: dolphin (1.4)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-24-generic x86_64
Distribution: Ubuntu 10.04.1 LTS

-- Information about the crash:
dolphin crashed while it was calculating folder size on disc. it was several gb in size, and had lots of files in it, it was on external usb hdd.

 -- Backtrace:
Application: Dolphin (dolphin), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fe016f31760 (LWP 18956))]

Thread 2 (Thread 0x7fe006509710 (LWP 18962)):
#0  __pthread_getspecific (key=0) at pthread_getspecific.c:58
#1  0x00007fe0131e4441 in QThreadData::current () at thread/qthread_unix.cpp:136
#2  0x00007fe0133029f9 in postEventSourcePrepare (s=0x0, timeout=0x7fe0131e43c0) at kernel/qeventdispatcher_glib.cpp:253
#3  0x00007fe00efd2eb1 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#4  0x00007fe00efd3318 in ?? () from /lib/libglib-2.0.so.0
#5  0x00007fe00efd38fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#6  0x00007fe013302566 in QEventDispatcherGlib::processEvents (this=0x12e9630, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#7  0x00007fe0132d7992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#8  0x00007fe0132d7d6c in QEventLoop::exec (this=0x7fe006508db0, flags=) at kernel/qeventloop.cpp:201
#9  0x00007fe0131e1d59 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#10 0x00007fe0132b8178 in QInotifyFileSystemWatcherEngine::run (this=0x12df850) at io/qfilesystemwatcher_inotify.cpp:248
#11 0x00007fe0131e4775 in QThreadPrivate::start (arg=0x12df850) at thread/qthread_unix.cpp:248
#12 0x00007fe0101199ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#13 0x00007fe012bba6fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#14 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fe016f31760 (LWP 18956)):
[KCrash Handler]
#5  KIO::DirectorySizeJob::totalSize (this=0x0) at ../../kio/kio/directorysizejob.cpp:93
#6  0x00007fe01520153e in KDEPrivate::KFilePropsPlugin::slotDirSizeFinished (this=0x19d6650, job=<value optimized out>) at ../../kio/kfile/kpropertiesdialog.cpp:1233
#7  0x00007fe015201f8c in KDEPrivate::KFilePropsPlugin::qt_metacall (this=0x19d6650, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff5050f2a0) at ./kpropertiesdialog_p.moc:98
#8  0x00007fe0132ebe3f in QMetaObject::activate (sender=0x19bff20, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xfffffffffffa435c) at kernel/qobject.cpp:3293
#9  0x00007fe013969b82 in KJob::result (this=0x0, _t1=0x19bff20) at ./kjob.moc:194
#10 0x00007fe013969e20 in KJob::emitResult (this=0x19bff20) at ../../kdecore/jobs/kjob.cpp:312
#11 0x00007fe0150c534f in KIO::DirectorySizeJob::slotResult (this=0x19bff20, job=0x1a85170) at ../../kio/kio/directorysizejob.cpp:185
#12 0x00007fe0150c5914 in KIO::DirectorySizeJob::qt_metacall (this=0x19bff20, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff5050f420) at ./directorysizejob.moc:78
#13 0x00007fe0132ebe3f in QMetaObject::activate (sender=0x1a85170, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xfffffffffffa435c) at kernel/qobject.cpp:3293
#14 0x00007fe013969b82 in KJob::result (this=0x0, _t1=0x1a85170) at ./kjob.moc:194
#15 0x00007fe013969e20 in KJob::emitResult (this=0x1a85170) at ../../kdecore/jobs/kjob.cpp:312
#16 0x00007fe0150e4388 in KIO::ListJob::qt_metacall (this=0x1a85170, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff5050f570) at ./jobclasses.moc:820
#17 0x00007fe0132ebe3f in QMetaObject::activate (sender=0x195bdb0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xfffffffffffa435c) at kernel/qobject.cpp:3293
#18 0x00007fe013969b82 in KJob::result (this=0x0, _t1=0x195bdb0) at ./kjob.moc:194
#19 0x00007fe013969e20 in KJob::emitResult (this=0x195bdb0) at ../../kdecore/jobs/kjob.cpp:312
#20 0x00007fe0150e0503 in KIO::SimpleJob::slotFinished (this=0x195bdb0) at ../../kio/kio/job.cpp:486
#21 0x00007fe0150e0640 in KIO::ListJob::slotFinished (this=0x195bdb0) at ../../kio/kio/job.cpp:2505
#22 0x00007fe0150e4339 in KIO::ListJob::qt_metacall (this=0x195bdb0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff5050f8a0) at ./jobclasses.moc:818
#23 0x00007fe0132ebe3f in QMetaObject::activate (sender=0x196c920, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xfffffffffffa435c) at kernel/qobject.cpp:3293
#24 0x00007fe0151a0271 in KIO::SlaveInterface::dispatch (this=0x196c920, _cmd=104, rawdata=...) at ../../kio/kio/slaveinterface.cpp:175
#25 0x00007fe01519d5e3 in KIO::SlaveInterface::dispatch (this=0x196c920) at ../../kio/kio/slaveinterface.cpp:91
#26 0x00007fe015191a46 in KIO::Slave::gotInput (this=0x196c920) at ../../kio/kio/slave.cpp:324
#27 0x00007fe015191c2c in KIO::Slave::qt_metacall (this=0x196c920, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff5050fcc0) at ./slave.moc:82
#28 0x00007fe0132ebe3f in QMetaObject::activate (sender=0x18d3950, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xfffffffffffa435c) at kernel/qobject.cpp:3293
#29 0x00007fe0150af9d7 in KIO::ConnectionPrivate::dequeue (this=0x1acbc60) at ../../kio/kio/connection.cpp:82
#30 0x00007fe0150afafd in KIO::Connection::qt_metacall (this=0x18d3950, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x1756be0) at ./connection.moc:79
#31 0x00007fe0132e8d49 in QObject::event (this=0x18d3950, e=0x19b1790) at kernel/qobject.cpp:1248
#32 0x00007fe013ec622c in QApplicationPrivate::notify_helper (this=0x1099ae0, receiver=0x18d3950, e=0x19b1790) at kernel/qapplication.cpp:4300
#33 0x00007fe013ecc6fb in QApplication::notify (this=0x7fff505107c0, receiver=0x18d3950, e=0x19b1790) at kernel/qapplication.cpp:4183
#34 0x00007fe014bd1526 in KApplication::notify (this=0x7fff505107c0, receiver=0x18d3950, event=0x19b1790) at ../../kdeui/kernel/kapplication.cpp:302
#35 0x00007fe0132d906c in QCoreApplication::notifyInternal (this=0x7fff505107c0, receiver=0x18d3950, event=0x19b1790) at kernel/qcoreapplication.cpp:704
#36 0x00007fe0132db7e7 in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x1073c30) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#37 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x1073c30) at kernel/qcoreapplication.cpp:1345
#38 0x00007fe0133029d3 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#39 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#40 0x00007fe00efcf8c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#41 0x00007fe00efd3748 in ?? () from /lib/libglib-2.0.so.0
#42 0x00007fe00efd38fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#43 0x00007fe013302513 in QEventDispatcherGlib::processEvents (this=0x1073770, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#44 0x00007fe013f7646e in QGuiEventDispatcherGlib::processEvents (this=0x0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#45 0x00007fe0132d7992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#46 0x00007fe0132d7d6c in QEventLoop::exec (this=0x7fff50510710, flags=) at kernel/qeventloop.cpp:201
#47 0x00007fe0132dbaab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#48 0x000000000043b1c5 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../../../apps/dolphin/src/main.cpp:101

Reported using DrKonqi
Comment 1 Dario Andres 2010-11-21 17:20:00 UTC
[Comment from a bug triager]
- Have you tried repeating the situation to check if Dolphin crashed again ?
May be there is some detail about the external USB hdd (like the filesystem used, the ammount of folders/files or the average file size) which may be useful to identify the crash.
Thanks
Comment 2 Dario Andres 2010-11-21 17:20:37 UTC
*** Bug 200507 has been marked as a duplicate of this bug. ***
Comment 3 Dario Andres 2010-11-21 17:20:38 UTC
*** Bug 228084 has been marked as a duplicate of this bug. ***
Comment 4 Dario Andres 2010-11-21 17:20:41 UTC
*** Bug 235140 has been marked as a duplicate of this bug. ***
Comment 5 Dario Andres 2010-12-13 22:04:29 UTC
*** Bug 253772 has been marked as a duplicate of this bug. ***
Comment 6 Semenov Maxim 2010-12-18 05:37:59 UTC
Created attachment 55033 [details]
New crash information added by DrKonqi

dolphin (1.5) on KDE Platform 4.5.1 (KDE 4.5.1) using Qt 4.7.0

- What I was doing when the application crashed:

I open "Properties" on external usb flash drive (MP3-player).

-- Backtrace (Reduced):
#6  KIO::DirectorySizeJob::totalSize (this=0x0) at ../../kio/kio/directorysizejob.cpp:93
#7  0x00007f890360c2ce in KDEPrivate::KFilePropsPlugin::slotDirSizeFinished (this=0xabe980, job=<value optimized out>) at ../../kio/kfile/kpropertiesdialog.cpp:1233
#8  0x00007f890360cd1c in KDEPrivate::KFilePropsPlugin::qt_metacall (this=0xabe980, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff55ee4f80) at ./kpropertiesdialog_p.moc:98
[...]
#10 0x00007f8901d37712 in KJob::result (this=0x0, _t1=0xf80890) at ./kjob.moc:194
#11 0x00007f8901d379b0 in KJob::emitResult (this=0xf80890) at ../../kdecore/jobs/kjob.cpp:312
Comment 7 Xavier Del Campo Romero 2011-08-24 11:47:14 UTC
Created attachment 63103 [details]
New crash information added by DrKonqi

dolphin (1.6.1) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

- What I was doing when the application crashed: Dolphin crashed when calculating the folder size of a external 4GB Verbatim USB flash drive. I think I have some hidden files, which I can listen to but not delete them, which may have crashed it.

-- Backtrace (Reduced):
#7  0x00f51e07 in KIO::DirectorySizeJob::totalSize() const () from /usr/lib/libkio.so.5
[...]
#11 0x07101e93 in KJob::result(KJob*) () from /usr/lib/libkdecore.so.5
#12 0x07101ee8 in KJob::emitResult() () from /usr/lib/libkdecore.so.5
#13 0x00f525b4 in KIO::DirectorySizeJob::slotResult(KJob*) () from /usr/lib/libkio.so.5
#14 0x00f524f9 in KIO::DirectorySizeJob::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkio.so.5
Comment 8 Frank Reininghaus 2013-03-16 09:32:11 UTC
*** Bug 316785 has been marked as a duplicate of this bug. ***
Comment 9 Dawit Alemayehu 2013-07-07 12:39:06 UTC
> #6  KIO::DirectorySizeJob::totalSize (this=0x0) at ../../kio/kio/directorysizejob.cpp:93

This seems to say the job that was calculating the size of the drive is no longer present, i.e. it is deleted. Hence, the crash when we attempt to obtain the final calculated size from it. But what does not make any sense is the fact that the job is already deleted at this point.

I try reproducing this in the latest stable version of Dolphin and I cannot reproduce it. I even tried to "refresh" the size while purposefully copying files to my USB flash drive. Can anyone confirm this crash in KDE v4.10 or higher?
Comment 10 Frank Reininghaus 2013-11-15 08:23:34 UTC
*** Bug 327631 has been marked as a duplicate of this bug. ***
Comment 11 Frank Reininghaus 2015-03-15 10:33:42 UTC
*** Bug 345170 has been marked as a duplicate of this bug. ***
Comment 12 Frank Reininghaus 2015-03-15 10:34:20 UTC
The crash has been reported again for kdelibs 4.14.6 (see bug 345170).
Comment 13 Antonio GarcĂ­a 2016-04-18 12:47:45 UTC
Created attachment 98446 [details]
New crash information added by DrKonqi

dolphin (4.14.3) on KDE Platform 4.14.5 using Qt 4.8.6

- What I was doing when the application crashed:

Checking properties of a folder, before any could be shown Dolphin crashed.

-- Backtrace (Reduced):
#5  0x00007f7632246970 in KIO::DirectorySizeJob::totalSize() const () at /usr/lib64/libkio.so.5
#6  0x00007f7632364e74 in KDEPrivate::KFilePropsPlugin::slotDirSizeFinished(KJob*) () at /usr/lib64/libkio.so.5
[...]
#8  0x00007f763c1bbb52 in KJob::result(KJob*) () at /lib64/libkdecore.so.5
#9  0x00007f763c1bbb90 in KJob::emitResult() () at /lib64/libkdecore.so.5
#10 0x00007f7632246d04 in KIO::DirectorySizeJob::slotResult(KJob*) () at /usr/lib64/libkio.so.5
Comment 14 Nate Graham 2018-05-08 17:06:07 UTC
Crash in old unmaintained KF4 software with no duplicates from any Qt5/KF5 versions. If anyone can still reproduce using recent KF5 versions of KIO and Dolphin, please file a new bug. Thanks!