Bug 305283 - Dolphin crashed while filtering [ KFileItemModel::expandedParentsCountCompare ]
Summary: Dolphin crashed while filtering [ KFileItemModel::expandedParentsCountCompare ]
Status: RESOLVED DUPLICATE of bug 294616
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 2.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
: 310100 312881 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-16 19:29 UTC by fsanchez
Modified: 2013-02-10 17:36 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (9.89 KB, text/plain)
2012-08-22 20:31 UTC, fsanchez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fsanchez 2012-08-16 19:29:16 UTC
Application: dolphin (2.0)
KDE Platform Version: 4.8.5 (4.8.5)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-29-generic x86_64
Distribution: Ubuntu 12.04.1 LTS

-- Information about the crash:
- What I was doing when the application crashed: Just what the title says: I pressed ctrl+I, started to write a filter and then Dolphin crashed. This is the first time it happens if I remember correctely.

-- Backtrace:
Application: Dolphin (dolphin), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f89f5536780 (LWP 3358))]

Thread 3 (Thread 0x7f89e0fe8700 (LWP 3359)):
#0  0x00007f89f4e03b03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f89ecddf036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f89ecddf164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f89f1e8f426 in QEventDispatcherGlib::processEvents (this=0x7f89dc0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f89f1e5ec82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f89f1e5eed7 in QEventLoop::exec (this=0x7f89e0fe7dd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f89f1d5dfa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f89f1e3e9ff in QInotifyFileSystemWatcherEngine::run (this=0x19cf990) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f89f1d60fcb in QThreadPrivate::start (arg=0x19cf990) at thread/qthread_unix.cpp:298
#9  0x00007f89ed6a3e9a in start_thread (arg=0x7f89e0fe8700) at pthread_create.c:308
#10 0x00007f89f4e0f4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f89dbb7c700 (LWP 3360)):
#0  0x00007ffff25ff8de in ?? ()
#1  0x00007f89ed09015d in __GI_clock_gettime (clock_id=<optimized out>, tp=<optimized out>) at ../sysdeps/unix/clock_gettime.c:116
#2  0x00007f89f1db7bb4 in do_gettime (frac=0x7f89dbb7bb98, sec=0x7f89dbb7bb90) at tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#4  0x00007f89f1e8fb8d in QTimerInfoList::updateCurrentTime (this=0x7f89d4002660) at kernel/qeventdispatcher_unix.cpp:343
#5  0x00007f89f1e8fec3 in QTimerInfoList::timerWait (this=0x7f89d4002660, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#6  0x00007f89f1e8e97c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f89dbb7bc6c) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007f89f1e8ea25 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00007f89ecdde846 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f89ecddef5b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f89ecddf164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007f89f1e8f426 in QEventDispatcherGlib::processEvents (this=0x7f89d40008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#12 0x00007f89f1e5ec82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007f89f1e5eed7 in QEventLoop::exec (this=0x7f89dbb7bdd0, flags=...) at kernel/qeventloop.cpp:204
#14 0x00007f89f1d5dfa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#15 0x00007f89f1e3e9ff in QInotifyFileSystemWatcherEngine::run (this=0x1ae76e0) at io/qfilesystemwatcher_inotify.cpp:248
#16 0x00007f89f1d60fcb in QThreadPrivate::start (arg=0x1ae76e0) at thread/qthread_unix.cpp:298
#17 0x00007f89ed6a3e9a in start_thread (arg=0x7f89dbb7c700) at pthread_create.c:308
#18 0x00007f89f4e0f4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#19 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f89f5536780 (LWP 3358)):
[KCrash Handler]
#6  KFileItem::url (this=0x20) at ../../kio/kio/kfileitem.cpp:1368
#7  0x00007f89f4133ecd in KFileItemModel::expandedParentsCountCompare (this=0x25e43c0, a=0x2841710, b=0x264edc0) at ../../../dolphin/src/kitemviews/kfileitemmodel.cpp:1578
#8  0x00007f89f4134222 in KFileItemModel::lessThan (this=0x25e43c0, a=0x2841710, b=0x264edc0) at ../../../dolphin/src/kitemviews/kfileitemmodel.cpp:1256
#9  0x00007f89f413432f in KFileItemModel::upperBound (this=0x25e43c0, begin=..., end=..., value=0x2841710) at ../../../dolphin/src/kitemviews/kfileitemmodel.cpp:1480
#10 0x00007f89f41344a3 in KFileItemModel::merge (this=0x25e43c0, begin=..., pivot=..., end=...) at ../../../dolphin/src/kitemviews/kfileitemmodel.cpp:1430
#11 0x00007f89f4134713 in KFileItemModel::sort (this=0x25e43c0, begin=..., end=...) at ../../../dolphin/src/kitemviews/kfileitemmodel.cpp:1395
#12 0x00007f89f41346c5 in KFileItemModel::sort (this=0x25e43c0, begin=..., end=...) at ../../../dolphin/src/kitemviews/kfileitemmodel.cpp:1393
#13 0x00007f89f41346c5 in KFileItemModel::sort (this=0x25e43c0, begin=..., end=...) at ../../../dolphin/src/kitemviews/kfileitemmodel.cpp:1393
#14 0x00007f89f41346c5 in KFileItemModel::sort (this=0x25e43c0, begin=..., end=...) at ../../../dolphin/src/kitemviews/kfileitemmodel.cpp:1393
#15 0x00007f89f41346c5 in KFileItemModel::sort (this=0x25e43c0, begin=..., end=...) at ../../../dolphin/src/kitemviews/kfileitemmodel.cpp:1393
#16 0x00007f89f41346c5 in KFileItemModel::sort (this=0x25e43c0, begin=..., end=...) at ../../../dolphin/src/kitemviews/kfileitemmodel.cpp:1393
#17 0x00007f89f413c159 in KFileItemModel::removeItems (this=0x25e43c0, items=...) at ../../../dolphin/src/kitemviews/kfileitemmodel.cpp:971
#18 0x00007f89f413e078 in KFileItemModel::setNameFilter (this=0x25e43c0, nameFilter=...) at ../../../dolphin/src/kitemviews/kfileitemmodel.cpp:538
#19 0x00007f89f511bb5d in DolphinViewContainer::setNameFilter (this=0x23ee600, nameFilter=...) at ../../../dolphin/src/dolphinviewcontainer.cpp:463
#20 0x00007f89f1e74281 in QMetaObject::activate (sender=0x25e9f90, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7ffff253d970) at kernel/qobject.cpp:3547
#21 0x00007f89f5121572 in FilterBar::filterChanged (this=<optimized out>, _t1=...) at ./filterbar.moc:105
#22 0x00007f89f1e74281 in QMetaObject::activate (sender=0x25ec1e0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7ffff253dab0) at kernel/qobject.cpp:3547
#23 0x00007f89f1385c72 in QLineEdit::textChanged (this=<optimized out>, _t1=...) at .moc/release-shared/moc_qlineedit.cpp:264
#24 0x00007f89f1385f19 in QLineEdit::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/release-shared/moc_qlineedit.cpp:140
#25 0x00007f89f1e74281 in QMetaObject::activate (sender=0x25f05b0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7ffff253dc20) at kernel/qobject.cpp:3547
#26 0x00007f89f15f8b35 in QLineControl::textChanged (this=<optimized out>, _t1=...) at .moc/release-shared/moc_qlinecontrol_p.cpp:148
#27 0x00007f89f138ab3b in QLineControl::finishChange (this=0x25f05b0, validateFromState=1, update=<optimized out>, edited=true) at widgets/qlinecontrol.cpp:660
#28 0x00007f89f138cf0d in QLineControl::processKeyEvent (this=0x25f05b0, event=0x7ffff253e9e0) at widgets/qlinecontrol.cpp:1879
#29 0x00007f89f1381d09 in QLineEdit::keyPressEvent (this=<optimized out>, event=0x7ffff253e9e0) at widgets/qlineedit.cpp:1707
#30 0x00007f89f297ef28 in KLineEdit::keyPressEvent (this=0x25ec1e0, e=0x7ffff253e9e0) at ../../kdeui/widgets/klineedit.cpp:970
#31 0x00007f89f0fb61c8 in QWidget::event (this=0x25ec1e0, event=0x7ffff253e9e0) at kernel/qwidget.cpp:8397
#32 0x00007f89f13842a7 in QLineEdit::event (this=0x25ec1e0, e=0x7ffff253e9e0) at widgets/qlineedit.cpp:1524
#33 0x00007f89f297d61b in KLineEdit::event (this=0x25ec1e0, ev=0x7ffff253e9e0) at ../../kdeui/widgets/klineedit.cpp:1403
#34 0x00007f89f0f65894 in notify_helper (e=0x7ffff253e9e0, receiver=0x25ec1e0, this=0x183dff0) at kernel/qapplication.cpp:4559
#35 QApplicationPrivate::notify_helper (this=0x183dff0, receiver=0x25ec1e0, e=0x7ffff253e9e0) at kernel/qapplication.cpp:4531
#36 0x00007f89f0f6add5 in QApplication::notify (this=<optimized out>, receiver=<optimized out>, e=0x7ffff253e9e0) at kernel/qapplication.cpp:4000
#37 0x00007f89f28c53f6 in KApplication::notify (this=0x7ffff253f8e0, receiver=0x25ec1e0, event=0x7ffff253e9e0) at ../../kdeui/kernel/kapplication.cpp:311
#38 0x00007f89f1e5fe9c in QCoreApplication::notifyInternal (this=0x7ffff253f8e0, receiver=0x25ec1e0, event=0x7ffff253e9e0) at kernel/qcoreapplication.cpp:876
#39 0x00007f89f1009c49 in QKeyMapper::sendKeyEvent (keyWidget=0x25ec1e0, grab=<optimized out>, type=QEvent::KeyPress, code=82, modifiers=..., text=..., autorepeat=false, count=1, nativeScanCode=27, nativeVirtualKey=114, nativeModifiers=16) at kernel/qkeymapper_x11.cpp:1866
#40 0x00007f89f100a0bb in QKeyMapperPrivate::translateKeyEvent (this=0x187e770, keyWidget=0x25ec1e0, event=0x7ffff253f4d0, grab=false) at kernel/qkeymapper_x11.cpp:1836
#41 0x00007f89f0fe4637 in QApplication::x11ProcessEvent (this=0x7ffff253f8e0, event=0x7ffff253f4d0) at kernel/qapplication_x11.cpp:3625
#42 0x00007f89f100e0d2 in x11EventSourceDispatch (s=0x18329c0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#43 0x00007f89ecdded53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#44 0x00007f89ecddf0a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#45 0x00007f89ecddf164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#46 0x00007f89f1e8f3bf in QEventDispatcherGlib::processEvents (this=0x180d4a0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#47 0x00007f89f100dd5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#48 0x00007f89f1e5ec82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#49 0x00007f89f1e5eed7 in QEventLoop::exec (this=0x7ffff253f870, flags=...) at kernel/qeventloop.cpp:204
#50 0x00007f89f1e63f67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#51 0x00007f89f51224c7 in kdemain (argc=6, argv=0x7ffff253fe38) at ../../../dolphin/src/main.cpp:89
#52 0x00007f89f4d3e76d in __libc_start_main (main=0x400640 <main(int, char**)>, argc=6, ubp_av=0x7ffff253fe38, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffff253fe28) at libc-start.c:226
#53 0x0000000000400671 in _start ()

Reported using DrKonqi
Comment 1 fsanchez 2012-08-22 20:31:57 UTC
Created attachment 73399 [details]
New crash information added by DrKonqi

dolphin (2.0) on KDE Platform 4.8.5 (4.8.5) using Qt 4.8.1

- What I was doing when the application crashed:
It has happen again. The only difference is that this time I had already been filtering before, and started to filter from a previous result. In fact, I filtered 2 or 3 times before the crash.

-- Backtrace (Reduced):
#7  QUrl::QUrl (this=0x7fff6af18500, other=...) at io/qurl.cpp:4242
#8  0x00007f60bb5a05c9 in KUrl::KUrl (this=0x7fff6af18500, _u=...) at ../../kdecore/io/kurl.cpp:490
#9  0x00007f60bc0e82d0 in KFileItem::url (this=<optimized out>) at ../../kio/kio/kfileitem.cpp:1368
#10 0x00007f60bd3f7ecd in KFileItemModel::expandedParentsCountCompare (this=0xa5a250, a=0x125ebc0, b=0x12c6ba0) at ../../../dolphin/src/kitemviews/kfileitemmodel.cpp:1578
#11 0x00007f60bd3f8222 in KFileItemModel::lessThan (this=0xa5a250, a=0x125ebc0, b=0x12c6ba0) at ../../../dolphin/src/kitemviews/kfileitemmodel.cpp:1256
Comment 2 Jeroen van Meeuwen (Kolab Systems) 2012-08-24 16:22:28 UTC
Resetting assignee to default as per bug #305719
Comment 3 Frank Reininghaus 2012-11-14 16:18:25 UTC
*** Bug 310100 has been marked as a duplicate of this bug. ***
Comment 4 Frank Reininghaus 2012-11-14 16:28:31 UTC
Unfortunately, looking at the code doesn't tell me yet how such a crash can happen :-( If anyone finds a way to reproduce this, please let us know.
Comment 5 Frank Reininghaus 2013-01-08 18:28:35 UTC
From bug 312881:

- What I was doing when the application crashed: I had a subfolder expanded and deleted a file in there. Then from another terminal I created a file with the same name in the root folder I was viewing and I went back to dolphin starting to type the file name into the filter bar when it crashed...

Just for the record, there is a reproducible crash with this backtrace (bug 311947), which is about making an expanded folder hidden by adding a dot at the beginning of its name. The problem is, like here, that there are child items without parent in the view.
Comment 6 Frank Reininghaus 2013-01-08 18:28:44 UTC
*** Bug 312881 has been marked as a duplicate of this bug. ***
Comment 7 Frank Reininghaus 2013-02-10 17:36:57 UTC

*** This bug has been marked as a duplicate of bug 294616 ***