Bug 311357

Summary: kmm crashes when filtering categories
Product: [Applications] kmymoney Reporter: 20120808_bugs.kde.org
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED WORKSFORME    
Severity: crash CC: onet.cristian
Priority: NOR    
Version: 4.6.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description 20120808_bugs.kde.org 2012-12-08 16:48:05 UTC
Application: kmymoney (4.6.1)
KDE Platform Version: 4.9.4
Qt Version: 4.8.2
Operating System: Linux 3.7.0-030700rc8-generic x86_64
Distribution: Ubuntu 12.04.1 LTS

-- Information about the crash:
had finished entering some transactions in a ledger; saved; switched to categories to modify one of the categories; used the filter (entered a few characters), at which point kmymoney crashed

The crash can be reproduced some of the time.

-- Backtrace:
Application: KMyMoney (kmymoney), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f313d2aa780 (LWP 4762))]

Thread 2 (Thread 0x7f3124c19700 (LWP 4763)):
#0  timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f3124c18c6c) at kernel/qeventdispatcher_glib.cpp:139
#1  0x00007f3139555f05 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#2  0x00007f3132fd9846 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3132fd9f5b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f3132fda164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f3139556906 in QEventDispatcherGlib::processEvents (this=0x7f31200008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f3139525e42 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f3139526097 in QEventLoop::exec (this=0x7f3124c18dd0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f3139425057 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007f3139505b4f in QInotifyFileSystemWatcherEngine::run (this=0x1869aa0) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007f313942807b in QThreadPrivate::start (arg=0x1869aa0) at thread/qthread_unix.cpp:307
#11 0x00007f313a698e9a in start_thread (arg=0x7f3124c19700) at pthread_create.c:308
#12 0x00007f3137981cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f313d2aa780 (LWP 4762)):
[KCrash Handler]
#6  qCopy<QModelIndex*, QModelIndex*> (dest=<optimized out>, end=0xd7717a8, begin=0x80de75df8) at ../../include/QtCore/../../src/corelib/tools/qalgorithms.h:82
#7  QVector<QModelIndex>::erase (this=0x7d26e40, abegin=<optimized out>, aend=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qvector.h:634
#8  0x00007f3138bdfffe in erase (pos=0xde75de0, this=0x7d26e40) at ../../include/QtCore/../../src/corelib/tools/qvector.h:256
#9  QSortFilterProxyModelPrivate::filter_changed (this=0x1a08210, source_parent=...) at itemviews/qsortfilterproxymodel.cpp:1044
#10 0x00007f3138be00aa in QSortFilterProxyModelPrivate::filter_changed (this=0x1a08210, source_parent=...) at itemviews/qsortfilterproxymodel.cpp:1047
#11 0x00007f3138be0285 in QSortFilterProxyModel::setFilterFixedString (this=<optimized out>, pattern=...) at itemviews/qsortfilterproxymodel.cpp:2227
#12 0x00007f313953b761 in QMetaObject::activate (sender=0x1a01560, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff87957920) at kernel/qobject.cpp:3547
#13 0x00007f3138a4c142 in QLineEdit::textChanged (this=<optimized out>, _t1=...) at .moc/release-shared/moc_qlineedit.cpp:264
#14 0x00007f3138a4c3e9 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
#15 0x00007f313953b761 in QMetaObject::activate (sender=0x1a018e0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff87957a90) at kernel/qobject.cpp:3547
#16 0x00007f3138cbf2f5 in QLineControl::textChanged (this=<optimized out>, _t1=...) at .moc/release-shared/moc_qlinecontrol_p.cpp:148
#17 0x00007f3138a5100b in QLineControl::finishChange (this=0x1a018e0, validateFromState=13, update=<optimized out>, edited=true) at widgets/qlinecontrol.cpp:660
#18 0x00007f3138a533dd in QLineControl::processKeyEvent (this=0x1a018e0, event=0x7fff87958850) at widgets/qlinecontrol.cpp:1879
#19 0x00007f3138a481d9 in QLineEdit::keyPressEvent (this=0x1a01560, event=0x7fff87958850) at widgets/qlineedit.cpp:1707
#20 0x00007f313b97c488 in KLineEdit::keyPressEvent(QKeyEvent*) () from /usr/lib/libkdeui.so.5
#21 0x00007f313867c038 in QWidget::event (this=0x1a01560, event=0x7fff87958850) at kernel/qwidget.cpp:8406
#22 0x00007f3138a4a777 in QLineEdit::event (this=0x1a01560, e=0x7fff87958850) at widgets/qlineedit.cpp:1524
#23 0x00007f313b97ab7b in KLineEdit::event(QEvent*) () from /usr/lib/libkdeui.so.5
#24 0x00007f313862b7b4 in notify_helper (e=0x7fff87958850, receiver=0x1a01560, this=0x11a8e30) at kernel/qapplication.cpp:4556
#25 QApplicationPrivate::notify_helper (this=0x11a8e30, receiver=0x1a01560, e=0x7fff87958850) at kernel/qapplication.cpp:4528
#26 0x00007f3138630c45 in QApplication::notify (this=<optimized out>, receiver=<optimized out>, e=0x7fff87958850) at kernel/qapplication.cpp:3997
#27 0x00007f313b8c2786 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#28 0x00007f313952730c in QCoreApplication::notifyInternal (this=0x118eab0, receiver=0x1a01560, event=0x7fff87958850) at kernel/qcoreapplication.cpp:915
#29 0x00007f31386cfbc9 in QKeyMapper::sendKeyEvent (keyWidget=0x1a01560, grab=<optimized out>, type=QEvent::KeyPress, code=85, modifiers=..., text=..., autorepeat=false, count=1, nativeScanCode=41, nativeVirtualKey=117, nativeModifiers=0) at kernel/qkeymapper_x11.cpp:1866
#30 0x00007f31386d003b in QKeyMapperPrivate::translateKeyEvent (this=0x11e35c0, keyWidget=0x1a01560, event=0x7fff87959340, grab=false) at kernel/qkeymapper_x11.cpp:1836
#31 0x00007f31386aa557 in QApplication::x11ProcessEvent (this=0x118eab0, event=0x7fff87959340) at kernel/qapplication_x11.cpp:3625
#32 0x00007f31386d4052 in x11EventSourceDispatch (s=0x11aa220, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#33 0x00007f3132fd9d53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007f3132fda0a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007f3132fda164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007f313955689f in QEventDispatcherGlib::processEvents (this=0x1166ad0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#37 0x00007f31386d3cde in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#38 0x00007f3139525e42 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#39 0x00007f3139526097 in QEventLoop::exec (this=0x7fff879596e0, flags=...) at kernel/qeventloop.cpp:204
#40 0x00007f313952b3e7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#41 0x0000000000457dcd in runKMyMoney (splash=<optimized out>, a=<optimized out>) at /build/buildd/kmymoney-4.6.1/kmymoney/main.cpp:282
#42 0x00000000004564f3 in main (argc=1, argv=0x7fff8795a2c8) at /build/buildd/kmymoney-4.6.1/kmymoney/main.cpp:181

Reported using DrKonqi
Comment 1 Cristian OneČ› 2013-08-30 08:05:54 UTC
Could not reproduce this, how often does this happen? Could you try to update your version of kmymoney?
Comment 2 20120808_bugs.kde.org 2014-07-29 17:59:01 UTC
attempted to produce this crash using latest versions

KMyMoney Version 4.6.4
KDE 4.13.2



Could not reproduce the crash the few times I tried using merely the steps described.
Comment 3 Cristian OneČ› 2014-07-29 18:49:44 UTC
Thanks for the follow-up.