new crash on closing file
With 5.1.80-022af411a, I get a crash closing my data file (xml.) (So far tried with two different files.) Possibly related to f34f4e99? Backtrace: (gdb) bt #0 KMyMoneyAccountCombo::setSelected (this=0x3ff0, id=..., ignoreCache=ignoreCache@entry=false) at /usr/include/qt5/QtCore/qscopedpointer.h:116 #1 0x77c90296 in KMyMoneyAccountCombo::setSelected (this=, id=...) at /usr/src/debug/app-office/kmymoney--r1/kmymoney-/kmymoney/widgets/kmymoneyaccountcombo.cpp:286 #2 0x55635ef2 in KInvestmentView::executeAction (this=, action=, selections=out>) at /usr/src/debug/app-office/kmymoney--r1/kmymoney-/kmymoney/views/kinvestmentview.cpp:327 #3 0x5563d37d in KMyMoneyView::executeAction (this=this@entry=0x55f4c900, action=action@entry=eMenu::Action::FileClose, selections=...) at /usr/src/debug/app-office/kmymoney--r1/kmymoney-/kmymoney/views/kmymoneyview.cpp:694 #4 0x5560312a in KMyMoneyApp::Private::fileAction (this=0x55d8b1d0, action=action@entry=eKMyMoney::FileAction::Closing) at /usr/src/debug/app-office/kmymoney--r1/kmymoney-/kmymoney/kmymoney.cpp:1251 #5 0x555e9a88 in KMyMoneyApp::slotFileClose (this=0x55d07010) at /usr/src/debug/app-office/kmymoney--r1/kmymoney-/kmymoney/kmymoney.cpp:4815 #6 0x555fb47f in QtPrivate::FunctorCall, QtPrivate::List<>, void, bool (KMyMoneyApp::*)()>::call(bool (KMyMoneyApp::*)(), KMyMoneyApp*, void**) (f=, o=, arg=) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:152 #7 0x555fb4c0 in QtPrivate::FunctionPointer(KMyMoneyApp::*)()>::call, void>(bool (KMyMoneyApp::*)(), KMyMoneyApp*, void**) (arg=, o=, f=) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:185 #8 QtPrivate::QSlotObject, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=, this_=, r=, a=, ret=) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:418 #9 0x75e20a85 in QtPrivate::QSlotObjectBase::call (a=0x7fffc440, r=0x55d07010, this=0x561024f0) at /usr/src/debug/dev-qt/qtcore-5.15.13/qtbase-everywhere-src-5.15.13/include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398 #10 doActivate (sender=0x56104c80, signal_index=out>, argv=) at /usr/src/debug/dev-qt/qtcore-5.15.13/qtbase-everywhere-src-5.15.13/src/corelib/kernel/qobject.cpp:3925 #11 0x75e19898 in QMetaObject::activate (sender=sender@entry=0x56104c80, m=m@entry=0x76d5a3c0 , local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fffc440) at /usr/src/debug/dev-qt/qtcore-5.15.13/qtbase-everywhere-src-5.15.13/src/corelib/kernel/qobject.cpp:3985 #12 0x768f8d07 in QAction::triggered (this=this@entry=0x56104c80, _t1=) at .moc/moc_qaction.cpp:376 #13 0x768fa95f in QAction::activate (this=this@entry=0x56104c80, event=event@entry=QAction::Trigger) at /usr/src/debug/dev-qt/qtwidgets-5.15.13/qtbase-everywhere-src-5.15.13/src/widgets/kernel/qaction.cpp:1161 #14 0x76a2f45c in QMenuPrivate::activateCausedStack (this=this@entry=0x55e6a110, causedStack=..., action=action@entry=0x56104c80, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at /usr/src/debug/dev-qt/qtwidgets-5.15.13/qtbase-everywhere-src-5.15.13/src/widgets/widgets/qmenu.cpp:1384 #15 0x76a3508a in QMenuPrivate::activateAction (this=this@entry=0x55e6a110, action=action@entry=0x56104c80, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at /usr/src/debug/dev-qt/qtwidgets-5.15.13/qtbase-everywhere-src-5.15.13/src/widgets/widgets/qmenu.cpp:1461 #16 0x76a35ba5 in QMenu::mouseReleaseEvent (this=out>, e=0x7fffcb20) at /usr/src/debug/dev-qt/qtwidgets-5.15.13/qtbase-everywhere-src-5.15.13/src/widgets/widgets/qmenu.cpp:2967 #17 0x7693348e in QWidget::event (this=this@entry=0x55f52720, event=event@entry=0x7fffcb20) at /usr/src/debug/dev-qt/qtwidgets-5.15.13/qtbase-everywhere-src-5.15.13/src/widgets/kernel/qwidget.cpp:8671 #18 0x76a3750b in QMenu::event (this=0x55f52720, e=0x7fffcb20) at /usr/src/debug/dev-qt/qtwidgets-5.15.13/qtbase-everywhere-src-5.15.13/src/widgets/widgets/qmenu.cpp:3089 #19 0x768fe1a6 in QApplicationPrivate::notify_helper (this=this@entry=0x5586dee0, receiver=receiver@entry=0x55f52720, e=0x7fffcb20) at /usr/src/debug/dev-qt/qtwidgets-5.15.13/qtbase-everywhere-src-5.15.13/src/widgets/kernel/qapplication.cpp:3640 #20 0x76904059 in QApplication::notify (this=, receiver=0x55f52720, e=0x7fffcb20) at /usr/src/debug/dev-qt/qtwidgets-5.15.13/qtbase-everywhere-src-5.15.13/src/widgets/kernel/qapplication.cpp:3084 #21 0x75df9579 in QCoreApplication::notifyInternal2 (receiver=0x55f52720, event=0x7fffcb20) at /usr/src/debug/dev-qt/qtcore-5.15.13/qtbase-everywhere-src-5.15.13/src/corelib/kernel/qcoreapplication.cpp:1064 #22 0x7ff
Re: new crash on closing file
On Dienstag, 14. Mai 2024 23:05:23 CEST Jack Ostroff via KMyMoney-devel wrote: > With 5.1.80-022af411a, I get a crash closing my data file (xml.) (So > far tried with two different files.) Possibly related to f34f4e99? Yes, spot on. Fixed with https://invent.kde.org/office/kmymoney/-/commit/0c1b954777ec787eba1c1caab56808405af975c1 > > Backtrace: > > (gdb) bt > #0 KMyMoneyAccountCombo::setSelected (this=0x3ff0, id=..., > ignoreCache=ignoreCache@entry=false) at > /usr/include/qt5/QtCore/qscopedpointer.h:116 > #1 0x77c90296 in KMyMoneyAccountCombo::setSelected > (this=, id=...) at > /usr/src/debug/app-office/kmymoney--r1/kmymoney-/kmymoney/widgets/kmymoneyaccountcombo.cpp:286 > #2 0x55635ef2 in KInvestmentView::executeAction > (this=, action=, selections= out>) at > /usr/src/debug/app-office/kmymoney--r1/kmymoney-/kmymoney/views/kinvestmentview.cpp:327 > #3 0x5563d37d in KMyMoneyView::executeAction > (this=this@entry=0x55f4c900, > action=action@entry=eMenu::Action::FileClose, selections=...) at > /usr/src/debug/app-office/kmymoney--r1/kmymoney-/kmymoney/views/kmymoneyview.cpp:694 > #4 0x5560312a in KMyMoneyApp::Private::fileAction > (this=0x55d8b1d0, > action=action@entry=eKMyMoney::FileAction::Closing) at > /usr/src/debug/app-office/kmymoney--r1/kmymoney-/kmymoney/kmymoney.cpp:1251 > #5 0x555e9a88 in KMyMoneyApp::slotFileClose > (this=0x55d07010) at > /usr/src/debug/app-office/kmymoney--r1/kmymoney-/kmymoney/kmymoney.cpp:4815 > #6 0x555fb47f in > QtPrivate::FunctorCall, QtPrivate::List<>, > void, bool (KMyMoneyApp::*)()>::call(bool (KMyMoneyApp::*)(), > KMyMoneyApp*, void**) (f=, o=, > arg=) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:152 > #7 0x555fb4c0 in QtPrivate::FunctionPointer (KMyMoneyApp::*)()>::call, void>(bool > (KMyMoneyApp::*)(), KMyMoneyApp*, void**) (arg=, > o=, f=) at > /usr/include/qt5/QtCore/qobjectdefs_impl.h:185 > #8 QtPrivate::QSlotObject, > void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) > (which=, this_=, r=, > a=, ret=) at > /usr/include/qt5/QtCore/qobjectdefs_impl.h:418 > #9 0x75e20a85 in QtPrivate::QSlotObjectBase::call > (a=0x7fffc440, r=0x55d07010, this=0x561024f0) at > /usr/src/debug/dev-qt/qtcore-5.15.13/qtbase-everywhere-src-5.15.13/include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398 > #10 doActivate (sender=0x56104c80, signal_index= out>, argv=) at > /usr/src/debug/dev-qt/qtcore-5.15.13/qtbase-everywhere-src-5.15.13/src/corelib/kernel/qobject.cpp:3925 > #11 0x75e19898 in QMetaObject::activate > (sender=sender@entry=0x56104c80, m=m@entry=0x76d5a3c0 > , > local_signal_index=local_signal_index@entry=1, > argv=argv@entry=0x7fffc440) at > /usr/src/debug/dev-qt/qtcore-5.15.13/qtbase-everywhere-src-5.15.13/src/corelib/kernel/qobject.cpp:3985 > #12 0x768f8d07 in QAction::triggered > (this=this@entry=0x56104c80, _t1=) at > .moc/moc_qaction.cpp:376 > #13 0x768fa95f in QAction::activate > (this=this@entry=0x56104c80, event=event@entry=QAction::Trigger) at > /usr/src/debug/dev-qt/qtwidgets-5.15.13/qtbase-everywhere-src-5.15.13/src/widgets/kernel/qaction.cpp:1161 > #14 0x76a2f45c in QMenuPrivate::activateCausedStack > (this=this@entry=0x55e6a110, causedStack=..., > action=action@entry=0x56104c80, > action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at > /usr/src/debug/dev-qt/qtwidgets-5.15.13/qtbase-everywhere-src-5.15.13/src/widgets/widgets/qmenu.cpp:1384 > #15 0x76a3508a in QMenuPrivate::activateAction > (this=this@entry=0x55e6a110, action=action@entry=0x56104c80, > action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at > /usr/src/debug/dev-qt/qtwidgets-5.15.13/qtbase-everywhere-src-5.15.13/src/widgets/widgets/qmenu.cpp:1461 > #16 0x76a35ba5 in QMenu::mouseReleaseEvent (this= out>, e=0x7fffcb20) at > /usr/src/debug/dev-qt/qtwidgets-5.15.13/qtbase-everywhere-src-5.15.13/src/widgets/widgets/qmenu.cpp:2967 > #17 0x7693348e in QWidget::event > (this=this@entry=0x55f52720, event=event@entry=0x7fffcb20) at > /usr/src/debug/dev-qt/qtwidgets-5.15.13/qtbase-everywhere-src-5.15.13/src/widgets/kernel/qwidget.cpp:8671 > #18 0x76a3750b in QMenu::event (this=0x55f52720, > e=0x7fffcb20) at > /usr/src/debug/dev-qt/qtwidgets-5.15.13/qtbase-everywhere-src-5.15.13/src/widgets/widgets/qmenu.cpp:3089 > #19 0x768fe1a6 in QApplicationPrivate::notify_helper > (this=this@entry=0x5586dee0, > receiver=receiver@entry=0x55f52720, e=0x7fffcb20) at > /usr/src/debug/dev-qt/qtwidgets-5.15.13/qtbase-everywhere-src-5.15.13/src/widgets/kernel/qapplication.cpp:3640 > #20 0x76904059 in QApplication::notify (this=, > receiver=0x55f52720, e=0x7fffcb