Bug 236413 - Crash on trying to show accounts
Summary: Crash on trying to show accounts
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-05 11:34 UTC by Tony B
Modified: 2010-05-06 16:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tony B 2010-05-05 11:34:02 UTC
Version:           SVN 1123102. (using KDE 4.3.1)
OS:                Linux
Installed from:    openSUSE RPMs

Using SVN 1123102 as of this morning.

As soon as I click on Ledger View, or try to expand the Asset accounts in Account View, KMM crashes.

Application: KMyMoney (kmymoney), signal: Segmentation fault
[KCrash Handler]
#5  0x000000000074edc9 in AccountSet::load (this=0x7fffdcc11fe0, selector=0x0) at /home/tonyb/dvkmm4/kmymoney/kmymoney/widgets/kmymoneyaccountselector.cpp:235
#6  0x000000000046b0c1 in KMyMoneyApp::slotUpdateMoveToAccountMenu (this=0xce5e90) at /home/tonyb/dvkmm4/kmymoney/kmymoney/kmymoney.cpp:5333
#7  0x00000000004a54bf in KMyMoneyApp::qt_metacall (this=0xce5e90, _c=InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffdcc12580)
    at /home/tonyb/dvkmm4/kmymoney/qtcreator-build/kmymoney/kmymoney.moc:477
#8  0x00007fd65a8befbc in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQtCore.so.4
#9  0x000000000045eb85 in KMyMoneyApp::accountSelected (this=0x7fffdcc11fe0, _t1=<value optimized out>) at /home/tonyb/dvkmm4/kmymoney/qtcreator-build/kmymoney/kmymoney.moc:621
#10 0x000000000048a4b0 in KMyMoneyApp::slotSelectAccount (this=0xce5e90, obj=<value optimized out>) at /home/tonyb/dvkmm4/kmymoney/kmymoney/kmymoney.cpp:6049
#11 0x00000000004a5922 in KMyMoneyApp::qt_metacall (this=0xce5e90, _c=InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffdcc12b80)
    at /home/tonyb/dvkmm4/kmymoney/qtcreator-build/kmymoney/kmymoney.moc:546
#12 0x00007fd65a8befbc in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQtCore.so.4
#13 0x0000000000519932 in KGlobalLedgerView::accountSelected (this=0x7fffdcc11fe0, _t1=<value optimized out>) at /home/tonyb/dvkmm4/kmymoney/qtcreator-build/kmymoney/views/kgloballedgerview.moc:232
#14 0x00000000005246d9 in KGlobalLedgerView::loadView (this=<value optimized out>) at /home/tonyb/dvkmm4/kmymoney/kmymoney/views/kgloballedgerview.cpp:727
#15 0x00000000005295bd in KGlobalLedgerView::showEvent (this=0x7fffdcc11fe0, event=0x7fffdcc13f40) at /home/tonyb/dvkmm4/kmymoney/kmymoney/views/kgloballedgerview.cpp:1271
#16 0x00007fd659dc3b1e in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#17 0x00007fd659d752ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#18 0x00007fd659d7c57e in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#19 0x00007fd65ce9f8d6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#20 0x00007fd65a8a9ddc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#21 0x00007fd659dc8daa in QWidgetPrivate::show_helper() () from /usr/lib64/libQtGui.so.4
#22 0x00007fd659dc9eba in QWidget::setVisible(bool) () from /usr/lib64/libQtGui.so.4
#23 0x00007fd659dae11d in QStackedLayout::setCurrentIndex(int) () from /usr/lib64/libQtGui.so.4
#24 0x00007fd65cecc3eb in ?? () from /usr/lib64/libkdeui.so.5
#25 0x00007fd65cecce02 in KPageView::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libkdeui.so.5
#26 0x00007fd65cecfde0 in KPageWidget::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libkdeui.so.5
#27 0x00000000004b4d55 in KMyMoneyView::qt_metacall (this=0x7fffdcc11fe0, _c=InvokeMetaMethod, _id=1497730656, _a=0xf46ac0)
    at /home/tonyb/dvkmm4/kmymoney/qtcreator-build/kmymoney/views/kmymoneyview.moc:97
#28 0x00007fd65a8befbc in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQtCore.so.4
#29 0x00007fd65a27b01a in QItemSelectionModel::currentChanged(QModelIndex const&, QModelIndex const&) () from /usr/lib64/libQtGui.so.4
#30 0x00007fd65a27b162 in QItemSelectionModel::setCurrentIndex(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib64/libQtGui.so.4
#31 0x00007fd65a22ff84 in QAbstractItemView::mousePressEvent(QMouseEvent*) () from /usr/lib64/libQtGui.so.4
#32 0x00007fd659dc3cd6 in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#33 0x00007fd65a102ab6 in QFrame::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#34 0x00007fd65a234f1b in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib64/libQtGui.so.4
#35 0x00007fd65a8a9127 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#36 0x00007fd659d7527c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#37 0x00007fd659d7c3c1 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#38 0x00007fd65ce9f8d6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#39 0x00007fd65a8a9ddc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#40 0x00007fd659d7bc90 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&) () from /usr/lib64/libQtGui.so.4
#41 0x00007fd659de1cfe in ?? () from /usr/lib64/libQtGui.so.4
#42 0x00007fd659de0d9a in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/libQtGui.so.4
#43 0x00007fd659e08b6c in ?? () from /usr/lib64/libQtGui.so.4
#44 0x00007fd654742dde in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#45 0x00007fd6547467a8 in ?? () from /usr/lib64/libglib-2.0.so.0
#46 0x00007fd6547468d0 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#47 0x00007fd65a8d23a3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#48 0x00007fd659e0831e in ?? () from /usr/lib64/libQtGui.so.4
#49 0x00007fd65a8a8712 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#50 0x00007fd65a8a8ae4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#51 0x00007fd65a8aac99 in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#52 0x000000000045c788 in main (argc=<value optimized out>, argv=<value optimized out>) at /home/tonyb/dvkmm4/kmymoney/kmymoney/main.cpp:277
Comment 1 Alvaro Soliverez 2010-05-05 11:43:37 UTC
Can you attach an anonimyzed file? The same steps work fine here.
Comment 2 Tony B 2010-05-06 16:02:12 UTC
Okay, I found the problem. This has happened to me before, but I can't explain it. What it is, I find I have two versions of kmm4 installed, one under /usr, the other under /usr/local. Probably because of my PATH settings, some executions are obviously loading part from one location, part from the other, hence the various problems I get which no-one else experiences.

However, I have never (knowingly) specified /usr/local as my install directory, so I don't know where this spurious version is coming from. A search of the source in my dev directory for /usr/local gives me only the following references:

./kmymoney/qtcreator-build/CMakeCache.txt:CPPUNIT_INCLUDE_DIR:PATH=/usr/local/include/cppunit
./kmymoney/qtcreator-build/CMakeCache.txt:CPPUNIT_LIBRARY:FILEPATH=/usr/local/lib/libcppunit.so

I do sometimes (not always) use ccmake to set to build the cppunit tests. Is this maybe what's causing my problem?

Alternatively. does anyone have any other suggestions?

Meantime, I'll close this bug, and try and remember to check for multiple versions before raising any more :-(
Comment 3 Alvaro Soliverez 2010-05-06 16:38:21 UTC
/usr/local is the default install prefix location for cmake. If you run it without -DCMAKE_INSTALL_PREFIX, it will install there.

I got bitten a lot by this when first working on the port.