Bug 276390

Summary: KMyMoney crashes when adding new user in AqBanking Plugin
Product: [Applications] kmymoney Reporter: teelittle
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED DOWNSTREAM    
Severity: crash CC: martin, sreejiththulaseedharan, teelittle
Priority: NOR    
Version: 4.5.3   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description teelittle 2011-06-24 14:55:26 UTC
Application: kmymoney (4.5.3)
KDE Platform Version: 4.6.3 (4.6.3)
Qt Version: 4.7.3
Operating System: Linux 2.6.39-1.slh.5-aptosid-686 i686
Distribution: Debian GNU/Linux unstable (sid)

-- Information about the crash:
I had KMyMoney open and working (data saved in file, not in database). 
AqBanking-Plugin had been activated in previous session ("Settings - configure KMyMoney"). 
Today I wanted to configure AqBanking ("Settings - configure AqBanking"). So, in the tab "users", I chose "add new user".
This last step predictably crashes KMyMoney (I did not define an account in the AqBanking setup yet - but even if this were required before, this must not cause a crash...)

The crash can be reproduced every time.

-- Backtrace:
Application: KMyMoney (kmymoney), signal: Aborted
[KCrash Handler]
#7  0xb781e424 in __kernel_vsyscall ()
#8  0xb52b6911 in raise () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#9  0xb52b9d42 in abort () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#10 0xb52afb28 in __assert_fail () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#11 0xaf87588b in GWEN_List1_GetCount () from /usr/lib/libgwenhywfar.so.60
#12 0xaf9047dd in GWEN_Dialog_List_GetCount () from /usr/lib/libgwenhywfar.so.60
#13 0xaf809d1a in AB_SetupNewUserDialog_new () from /usr/lib/libaqbanking.so.33
#14 0xaf802852 in ?? () from /usr/lib/libaqbanking.so.33
#15 0xaf803bd8 in ?? () from /usr/lib/libaqbanking.so.33
#16 0xaf9059a6 in GWEN_Dialog_EmitSignal () from /usr/lib/libgwenhywfar.so.60
#17 0xaf93a131 in ?? () from /usr/lib/libgwengui-qt4.so.0
#18 0xaf93a501 in ?? () from /usr/lib/libgwengui-qt4.so.0
#19 0xb61d236d in metacall (object=0xa9fb5d0, cl=QMetaObject::InvokeMetaMethod, idx=36, argv=0xbfced608) at kernel/qmetaobject.cpp:237
#20 QMetaObject::metacall (object=0xa9fb5d0, cl=QMetaObject::InvokeMetaMethod, idx=36, argv=0xbfced608) at kernel/qmetaobject.cpp:232
#21 0xb61e1120 in QMetaObject::activate (sender=0xaa50a20, m=0xb5fd1728, local_signal_index=2, argv=0xbfced608) at kernel/qobject.cpp:3278
#22 0xb5d8db5d in QAbstractButton::clicked (this=0xaa50a20, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#23 0xb5a8c2ad in QAbstractButtonPrivate::emitClicked (this=0xaa50a38) at widgets/qabstractbutton.cpp:546
#24 0xb5a8d90b in QAbstractButtonPrivate::click (this=0xaa50a38) at widgets/qabstractbutton.cpp:539
#25 0xb5a8dbc6 in QAbstractButton::mouseReleaseEvent (this=0xaa50a20, e=0xbfcedd98) at widgets/qabstractbutton.cpp:1121
#26 0xb56d757f in QWidget::event (this=0xaa50a20, event=0xbfcedd98) at kernel/qwidget.cpp:8259
#27 0xb5a8ce79 in QAbstractButton::event (this=0xaa50a20, e=0xbfcedd98) at widgets/qabstractbutton.cpp:1080
#28 0xb5b2f428 in QPushButton::event (this=0xaa50a20, e=0xbfcedd98) at widgets/qpushbutton.cpp:683
#29 0xb567d044 in notify_helper (this=0xa2e95b0, receiver=0xaa50a20, e=0xbfcedd98) at kernel/qapplication.cpp:4467
#30 QApplicationPrivate::notify_helper (this=0xa2e95b0, receiver=0xaa50a20, e=0xbfcedd98) at kernel/qapplication.cpp:4439
#31 0xb5682e5b in QApplication::notify (this=0xa2e95b0, receiver=0xaa50a20, e=0xbfcedd98) at kernel/qapplication.cpp:4028
#32 0xb6cb8cf1 in KApplication::notify (this=0xa2e5538, receiver=0xaa50a20, event=0xbfcedd98) at ../../kdeui/kernel/kapplication.cpp:311
#33 0xb61cbf7e in QCoreApplication::notifyInternal (this=0xa2e5538, receiver=0xaa50a20, event=0xbfcedd98) at kernel/qcoreapplication.cpp:731
#34 0xb567e000 in sendEvent (receiver=0xaa50a20, event=0xbfcedd98, alienWidget=0xaa50a20, nativeWidget=0xa9fb5d0, buttonDown=0xb5fe0ab4, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#35 QApplicationPrivate::sendMouseEvent (receiver=0xaa50a20, event=0xbfcedd98, alienWidget=0xaa50a20, nativeWidget=0xa9fb5d0, buttonDown=0xb5fe0ab4, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3127
#36 0xb5707c8f in QETWidget::translateMouseEvent (this=0xa9fb5d0, event=0xbfcee170) at kernel/qapplication_x11.cpp:4461
#37 0xb5706c27 in QApplication::x11ProcessEvent (this=0xa2e5538, event=0xbfcee170) at kernel/qapplication_x11.cpp:3587
#38 0xb573252c in x11EventSourceDispatch (s=0xa2eabe8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#39 0xb48b7252 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#40 0xb48b7a30 in ?? () from /lib/libglib-2.0.so.0
#41 0xb48b7ce4 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#42 0xb61fa2b7 in QEventDispatcherGlib::processEvents (this=0xa2c8220, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#43 0xb573214a in QGuiEventDispatcherGlib::processEvents (this=0xa2c8220, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#44 0xb61caf9d in QEventLoop::processEvents (this=0xbfcee490, flags=...) at kernel/qeventloop.cpp:149
#45 0xb61cb1e1 in QEventLoop::exec (this=0xbfcee490, flags=...) at kernel/qeventloop.cpp:201
#46 0xb5bb0959 in QDialog::exec (this=0xa9fb5d0) at dialogs/qdialog.cpp:552
#47 0xaf93ba2f in ?? () from /usr/lib/libgwengui-qt4.so.0
#48 0xaf93a710 in QT4_Gui::execDialog(GWEN_DIALOG*, unsigned int) () from /usr/lib/libgwengui-qt4.so.0
#49 0xaf945a88 in CppGuiLinker::ExecDialog(GWEN_GUI*, GWEN_DIALOG*, unsigned int) () from /usr/lib/libgwengui-qt4.so.0
#50 0xaf909d32 in GWEN_Gui_ExecDialog () from /usr/lib/libgwenhywfar.so.60
#51 0xaf95cedd in ?? () from /usr/lib/kde4/kmm_kbanking.so
#52 0xaf95d03b in ?? () from /usr/lib/kde4/kmm_kbanking.so
#53 0xb61d236d in metacall (object=0xa801998, cl=QMetaObject::InvokeMetaMethod, idx=5, argv=0xbfcee8d8) at kernel/qmetaobject.cpp:237
#54 QMetaObject::metacall (object=0xa801998, cl=QMetaObject::InvokeMetaMethod, idx=5, argv=0xbfcee8d8) at kernel/qmetaobject.cpp:232
#55 0xb61e1120 in QMetaObject::activate (sender=0xa848cf0, m=0xb5fbe658, local_signal_index=1, argv=0xbfcee8d8) at kernel/qobject.cpp:3278
#56 0xb5675dbd in QAction::triggered (this=0xa848cf0, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#57 0xb567605b in QAction::activate (this=0xa848cf0, event=QAction::Trigger) at kernel/qaction.cpp:1257
#58 0xb5b1b063 in QMenuPrivate::activateCausedStack (this=0xa450ea0, causedStack=..., action=0xa848cf0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:993
#59 0xb5b2185f in QMenuPrivate::activateAction (this=0xa450ea0, action=0xa848cf0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1085
#60 0xb5b24505 in QMenu::mouseReleaseEvent (this=0xa450ad8, e=0xbfcef1c8) at widgets/qmenu.cpp:2306
#61 0xb6d9be3c in KMenu::mouseReleaseEvent (this=0xa450ad8, e=0xbfcef1c8) at ../../kdeui/widgets/kmenu.cpp:458
#62 0xb56d757f in QWidget::event (this=0xa450ad8, event=0xbfcef1c8) at kernel/qwidget.cpp:8259
#63 0xb5b22f8c in QMenu::event (this=0xa450ad8, e=0xbfcef1c8) at widgets/qmenu.cpp:2415
#64 0xb567d044 in notify_helper (this=0xa2e95b0, receiver=0xa450ad8, e=0xbfcef1c8) at kernel/qapplication.cpp:4467
#65 QApplicationPrivate::notify_helper (this=0xa2e95b0, receiver=0xa450ad8, e=0xbfcef1c8) at kernel/qapplication.cpp:4439
#66 0xb5682e5b in QApplication::notify (this=0xa2e95b0, receiver=0xa450ad8, e=0xbfcef1c8) at kernel/qapplication.cpp:4028
#67 0xb6cb8cf1 in KApplication::notify (this=0xa2e5538, receiver=0xa450ad8, event=0xbfcef1c8) at ../../kdeui/kernel/kapplication.cpp:311
#68 0xb61cbf7e in QCoreApplication::notifyInternal (this=0xa2e5538, receiver=0xa450ad8, event=0xbfcef1c8) at kernel/qcoreapplication.cpp:731
#69 0xb567e000 in sendEvent (receiver=0xa450ad8, event=0xbfcef1c8, alienWidget=0x0, nativeWidget=0xa450ad8, buttonDown=0xb5fe0ab4, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#70 QApplicationPrivate::sendMouseEvent (receiver=0xa450ad8, event=0xbfcef1c8, alienWidget=0x0, nativeWidget=0xa450ad8, buttonDown=0xb5fe0ab4, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3127
#71 0xb570839d in QETWidget::translateMouseEvent (this=0xa450ad8, event=0xbfcef5a0) at kernel/qapplication_x11.cpp:4395
#72 0xb5706c27 in QApplication::x11ProcessEvent (this=0xa2e5538, event=0xbfcef5a0) at kernel/qapplication_x11.cpp:3587
#73 0xb573252c in x11EventSourceDispatch (s=0xa2eabe8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#74 0xb48b7252 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#75 0xb48b7a30 in ?? () from /lib/libglib-2.0.so.0
#76 0xb48b7ce4 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#77 0xb61fa2b7 in QEventDispatcherGlib::processEvents (this=0xa2c8220, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#78 0xb573214a in QGuiEventDispatcherGlib::processEvents (this=0xa2c8220, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#79 0xb61caf9d in QEventLoop::processEvents (this=0xbfcef8c4, flags=...) at kernel/qeventloop.cpp:149
#80 0xb61cb1e1 in QEventLoop::exec (this=0xbfcef8c4, flags=...) at kernel/qeventloop.cpp:201
#81 0xb61cf94a in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#82 0xb567aea4 in QApplication::exec () at kernel/qapplication.cpp:3741
#83 0x0808b587 in _start ()

Reported using DrKonqi
Comment 1 Thomas Baumgart 2011-06-24 16:01:37 UTC
You are right about the crash. Unfortunately, this crash happened inside AqBanking (frames < #50) so we can't don anything from the KMyMoney side. Which version of AqBanking / Gwenhywfar are you using?
Comment 2 teelittle 2011-06-27 18:24:39 UTC
Hi, 
installed versions are: 
- libaqbanking33     5.0.10-2
- libaqbanking-data  5.0.10-2
- libaqhbci20        5.0.10-2 
- libgwenhywfar60    4.1.0-1 
- libgwenhywfar-data 4.1.0-1

The crash is still reproducible as described above. Can I improve the crash dump by installing any debug packages?
Comment 3 teelittle 2011-06-27 18:32:45 UTC
To test AqBanking CLI, I installed libaqbanking-tools. 
This depends on aqbanking33-plugins, which had not been installed on my system yet. 
I gave KMyMoney's AqBanking wizard another try, and now, as the -plugins package is available, it doesn't crash anymore. 

I recognise a missing package is not a usual system configuration; anyway, I think KMyMoney should report the plugin missing instead of crashing...
Comment 4 Thomas Baumgart 2011-06-28 13:31:26 UTC
That's a good point, but how can someone report anything about something it is not aware off? KMyMoney does not know any details about the internal of AqBanking. Your request about the report should be directed to AqBanking.
Comment 5 martin 2011-06-29 12:25:48 UTC
I just tested this with the latest SVN version of KMyMoney and AqBanking and I can't reproduce this behaviour.