Bug 288479

Summary: Dolphin crash when displaying compilation directory [ KItemListSizeHintResolver::itemsChanged]
Product: [Applications] dolphin Reporter: Valentin Rusu <valir>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: blagozlatev, frank78ac, myriam
Priority: NOR    
Version: 1.99   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Valentin Rusu 2011-12-08 13:39:02 UTC
Application: dolphin (1.99)
KDE Platform Version: 4.7.4 (4.7.4) (Compiled from sources)
Qt Version: 4.8.0
Operating System: Linux 3.1.4-1-ARCH x86_64

-- Information about the crash:
- What I was doing when the application crashed:
I had Dolphin open in a qt build directory when I qt config script into a konsole.
That konsole had the focus and was executing qt config script.
Dolphin crashed when sitting behind this konsole, perhaps because files where deleted from the directory it was displaying.

-- Backtrace:
Application: Dolphin (kdeinit4), signal: Aborted
[Current thread is 1 (Thread 0x7f2658b6d760 (LWP 5472))]

Thread 2 (Thread 0x7f263d29b700 (LWP 5473)):
#0  0x00007f26552210a3 in poll () from /lib/libc.so.6
#1  0x00007f26516d5d58 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f26516d6219 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f265734269a in QEventDispatcherGlib::processEvents (this=0x16e4a40, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f2657303dd4 in QEventLoop::processEvents (this=0x7f263d29ad80, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f2657303f5e in QEventLoop::exec (this=0x7f263d29ad80, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f26571d28ab in QThread::exec (this=0x16fcfa0) at thread/qthread.cpp:501
#7  0x00007f26572df15f in QInotifyFileSystemWatcherEngine::run (this=0x16fcfa0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f26571d51d8 in QThreadPrivate::start (arg=0x16fcfa0) at thread/qthread_unix.cpp:298
#9  0x00007f2656f17df0 in start_thread () from /lib/libpthread.so.0
#10 0x00007f265522931d in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f2658b6d760 (LWP 5472)):
[KCrash Handler]
#6  0x00007f2655189935 in raise () from /lib/libc.so.6
#7  0x00007f265518adab in abort () from /lib/libc.so.6
#8  0x00007f26571c8043 in qt_message_output (msgType=QtFatalMsg, buf=0x1d12878 "ASSERT failure in QList<T>::operator[]: \"index out of range\", file /home/kde/include/QtCore/qlist.h, line 477") at global/qglobal.cpp:2255
#9  0x00007f26571c81b6 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f2657389910 "ASSERT failure in %s: \"%s\", file %s, line %d", ap=0x7fff13823d98) at global/qglobal.cpp:2301
#10 0x00007f26571c8946 in qFatal (msg=0x7f2657389910 "ASSERT failure in %s: \"%s\", file %s, line %d") at global/qglobal.cpp:2484
#11 0x00007f26571c7c47 in qt_assert_x (where=0x7f26416fe231 "QList<T>::operator[]", what=0x7f26416fe211 "index out of range", file=0x7f26416fe1f0 "/home/kde/include/QtCore/qlist.h", line=477) at global/qglobal.cpp:2007
#12 0x00007f26416bb099 in QList<QSizeF>::operator[] (this=0x17de790, i=1) at /home/kde/include/QtCore/qlist.h:477
#13 0x00007f26416bae68 in KItemListSizeHintResolver::itemsChanged (this=0x17de780, index=1, count=3, roles=...) at /home/kde/src/kde-baseapps/dolphin/src/kitemviews/kitemlistsizehintresolver.cpp:76
#14 0x00007f26416bf0cd in KItemListView::slotItemsChanged (this=0x1824450, itemRanges=..., roles=...) at /home/kde/src/kde-baseapps/dolphin/src/kitemviews/kitemlistview.cpp:842
#15 0x00007f26416c39e0 in KItemListView::qt_static_metacall (_o=0x1824450, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0x7fff13824130) at /home/kde/src/superbuild/kdebase/build/Build/kde-baseapps/dolphin/src/kitemlistview.moc:112
#16 0x00007f26573247b6 in QMetaObject::activate (sender=0x18102f0, m=0x7f264192ed40, local_signal_index=3, argv=0x7fff13824130) at kernel/qobject.cpp:3547
#17 0x00007f26416cdb93 in KItemModelBase::itemsChanged (this=0x18102f0, _t1=..., _t2=...) at /home/kde/src/superbuild/kdebase/build/Build/kde-baseapps/dolphin/src/kitemmodelbase.moc:141
#18 0x00007f264169d349 in KFileItemModel::slotRefreshItems (this=0x18102f0, items=...) at /home/kde/src/kde-baseapps/dolphin/src/kitemviews/kfileitemmodel.cpp:639
#19 0x00007f26416a2f46 in KFileItemModel::qt_static_metacall (_o=0x18102f0, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7fff138243b0) at /home/kde/src/superbuild/kdebase/build/Build/kde-baseapps/dolphin/src/kfileitemmodel.moc:72
#20 0x00007f26573247b6 in QMetaObject::activate (sender=0x1784350, m=0x7f264e2796c0, local_signal_index=14, argv=0x7fff138243b0) at kernel/qobject.cpp:3547
#21 0x00007f264de8904f in KDirLister::refreshItems (this=0x1784350, _t1=...) at /home/kde/build/kdelibs/kio/kdirlister.moc:316
#22 0x00007f264de87697 in KDirLister::Private::emitItems (this=0x1783a40) at /home/kde/work/kdelibs/kio/kio/kdirlister.cpp:2492
#23 0x00007f264de8445e in KDirListerCache::processPendingUpdates (this=0x1707280) at /home/kde/work/kdelibs/kio/kio/kdirlister.cpp:1964
#24 0x00007f264de836c8 in KDirListerCache::slotUpdateResult (this=0x1707280, j=0x1d213b0) at /home/kde/work/kdelibs/kio/kio/kdirlister.cpp:1813
#25 0x00007f264de893f1 in KDirListerCache::qt_static_metacall (_o=0x1707280, _c=QMetaObject::InvokeMetaMethod, _id=11, _a=0x7fff13824a00) at /home/kde/build/kdelibs/kio/kdirlister_p.moc:85
#26 0x00007f26573247b6 in QMetaObject::activate (sender=0x1d213b0, m=0x7f2657ea99a0, local_signal_index=3, argv=0x7fff13824a00) at kernel/qobject.cpp:3547
#27 0x00007f2657ac9bb9 in KJob::result (this=0x1d213b0, _t1=0x1d213b0) at /home/kde/build/kdelibs/kdecore/kjob.moc:208
#28 0x00007f2657ac907d in KJob::emitResult (this=0x1d213b0) at /home/kde/work/kdelibs/kdecore/jobs/kjob.cpp:312
#29 0x00007f264de5b752 in KIO::SimpleJob::slotFinished (this=0x1d213b0) at /home/kde/work/kdelibs/kio/kio/job.cpp:494
#30 0x00007f264de6475b in KIO::ListJob::slotFinished (this=0x1d213b0) at /home/kde/work/kdelibs/kio/kio/job.cpp:2670
#31 0x00007f264de676df in KIO::ListJob::qt_static_metacall (_o=0x1d213b0, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fff13824d20) at /home/kde/build/kdelibs/kio/jobclasses.moc:911
#32 0x00007f26573247b6 in QMetaObject::activate (sender=0x1bab6e0, m=0x7f264e27d180, local_signal_index=4, argv=0x0) at kernel/qobject.cpp:3547
#33 0x00007f264df1b309 in KIO::SlaveInterface::finished (this=0x1bab6e0) at /home/kde/build/kdelibs/kio/slaveinterface.moc:185
#34 0x00007f264df188b0 in KIO::SlaveInterface::dispatch (this=0x1bab6e0, _cmd=104, rawdata=...) at /home/kde/work/kdelibs/kio/kio/slaveinterface.cpp:172
#35 0x00007f264df18503 in KIO::SlaveInterface::dispatch (this=0x1bab6e0) at /home/kde/work/kdelibs/kio/kio/slaveinterface.cpp:88
#36 0x00007f264df0da0e in KIO::Slave::gotInput (this=0x1bab6e0) at /home/kde/work/kdelibs/kio/kio/slave.cpp:344
#37 0x00007f264df0ebdc in KIO::Slave::qt_static_metacall (_o=0x1bab6e0, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fff13825260) at /home/kde/build/kdelibs/kio/slave.moc:57
#38 0x00007f26573247b6 in QMetaObject::activate (sender=0x1aab5c0, m=0x7f264e276460, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3547
#39 0x00007f264de29db5 in KIO::Connection::readyRead (this=0x1aab5c0) at /home/kde/build/kdelibs/kio/connection.moc:106
#40 0x00007f264de26840 in KIO::ConnectionPrivate::dequeue (this=0x178b6c0) at /home/kde/work/kdelibs/kio/kio/connection.cpp:82
#41 0x00007f264de29c5d in KIO::Connection::qt_static_metacall (_o=0x1aab5c0, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x1d26260) at /home/kde/build/kdelibs/kio/connection.moc:56
#42 0x00007f265731e133 in QMetaCallEvent::placeMetaCall (this=0x1a07d90, object=0x1aab5c0) at kernel/qobject.cpp:525
#43 0x00007f265731f3b9 in QObject::event (this=0x1aab5c0, e=0x1a07d90) at kernel/qobject.cpp:1195
#44 0x00007f265615980e in QApplicationPrivate::notify_helper (this=0x159e3d0, receiver=0x1aab5c0, e=0x1a07d90) at kernel/qapplication.cpp:4550
#45 0x00007f2656156e4a in QApplication::notify (this=0x7fff13826100, receiver=0x1aab5c0, e=0x1a07d90) at kernel/qapplication.cpp:3932
#46 0x00007f265848e973 in KApplication::notify (this=0x7fff13826100, receiver=0x1aab5c0, event=0x1a07d90) at /home/kde/work/kdelibs/kdeui/kernel/kapplication.cpp:311
#47 0x00007f265730650a in QCoreApplication::notifyInternal (this=0x7fff13826100, receiver=0x1aab5c0, event=0x1a07d90) at kernel/qcoreapplication.cpp:876
#48 0x00007f265730a005 in QCoreApplication::sendEvent (receiver=0x1aab5c0, event=0x1a07d90) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#49 0x00007f265730751e in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x14985e0) at kernel/qcoreapplication.cpp:1500
#50 0x00007f265730713f in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1393
#51 0x00007f2657342dc7 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#52 0x00007f2657341da0 in postEventSourceDispatch (s=0x15a0dd0) at kernel/qeventdispatcher_glib.cpp:279
#53 0x00007f26516d584d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#54 0x00007f26516d6048 in ?? () from /usr/lib/libglib-2.0.so.0
#55 0x00007f26516d6219 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#56 0x00007f2657342677 in QEventDispatcherGlib::processEvents (this=0x15804d0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#57 0x00007f2656230be0 in QGuiEventDispatcherGlib::processEvents (this=0x15804d0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#58 0x00007f2657303dd4 in QEventLoop::processEvents (this=0x7fff13826070, flags=...) at kernel/qeventloop.cpp:149
#59 0x00007f2657303f5e in QEventLoop::exec (this=0x7fff13826070, flags=...) at kernel/qeventloop.cpp:204
#60 0x00007f2657306b8a in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#61 0x00007f2656156a34 in QApplication::exec () at kernel/qapplication.cpp:3811
#62 0x00007f2641eae678 in kdemain (argc=5, argv=0x153fec0) at /home/kde/src/kde-baseapps/dolphin/src/main.cpp:91
#63 0x0000000000407373 in launch (argc=5, _name=0x1581a48 "/home/kde/bin/dolphin", args=0x1581a8a "\001", cwd=0x0, envc=1, envs=0x1581a9d "", reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x1581aa5 "zamox;1323350269;616693;1263_TIME159323095") at /home/kde/work/kdelibs/kinit/kinit.cpp:734
#64 0x0000000000408481 in handle_launcher_request (sock=8, who=0x40daac "launcher") at /home/kde/work/kdelibs/kinit/kinit.cpp:1226
#65 0x0000000000408d34 in handle_requests (waitForPid=0) at /home/kde/work/kdelibs/kinit/kinit.cpp:1419
#66 0x000000000040a803 in main (argc=4, argv=0x7fff138270c8, envp=0x7fff138270f0) at /home/kde/work/kdelibs/kinit/kinit.cpp:1907

Reported using DrKonqi
Comment 1 Blagovest Zlatev 2011-12-08 13:47:48 UTC
The bug is reproducible, but not a duplicate.
Comment 2 Frank Reininghaus 2011-12-12 23:12:34 UTC
It seems that KFileItemModel emitted the itemsChanged signal for items which it had not emitted the itemsInserted signal before. Strange.
Comment 3 Valentin Rusu 2011-12-28 11:36:39 UTC
I'm trying to debug kdevelop and the last message before the crash is:

kdevelop(24054)/kdevplatform (shell) KDevelop::PluginController::loadPluginInternal: Checked... starting to load: "Indent Formatter Backend" type: QVariant(, )

Debugging in progress...
Comment 4 Valentin Rusu 2011-12-28 11:38:21 UTC
Please ignore my latest comment, intended for another bug (copy/paste error)
Comment 5 Jeroen van Meeuwen (Kolab Systems) 2012-08-24 16:21:35 UTC
Resetting assignee to default as per bug #305719
Comment 6 Frank Reininghaus 2013-07-02 06:28:02 UTC
Can this crash still be reproduced in more recent versions? I still cannot reproduce it.
Comment 7 Valentin Rusu 2013-07-02 16:55:14 UTC
Well, this won't reproduce on my system either. Probably it has gone. Closing...