Bug 445721 - AqBanking crash while Setting up American Express Account
Summary: AqBanking crash while Setting up American Express Account
Status: RESOLVED WORKSFORME
Alias: None
Product: kmymoney
Classification: Applications
Component: onlinebanking (show other bugs)
Version: 5.0.8
Platform: Kubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-18 21:24 UTC by matt
Modified: 2021-12-22 04:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
attachment-31155-0.html (3.74 KB, text/html)
2021-11-19 15:22 UTC, Brendan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matt 2021-11-18 21:24:29 UTC
Application: kmymoney (5.0.8)

Qt Version: 5.12.8
Frameworks Version: 5.68.0
Operating System: Linux 5.11.0-27-generic x86_64
Windowing system: X11
Distribution: Ubuntu 20.04.3 LTS

-- Information about the crash:
- What I was doing when the application crashed:
Setting up Amex OFX Direct Connect through AqBanking.  
* I selected OFX Direct-Connect backend and ran the new "wizard"
* I clicked "Select" and typed American Express Card, and selected that option in the search dialog
* I did not change any information such as Broker Id, FID, ORG, or Server URL
* I typed in my real name in "User Name" and my Amex login ID for "User Id" and left Client UID blank
* I have tried several different versions of Intuit Quicken (2013 and 2008 among others) as well as Money Plus, all with the same results.
* I don't change Special Settings (although I've tried a couple changes just for variety)
* I click "Retrieve Account List" and am prompted for the account password (listing the account name I provided for "User Id")
* I type in my password (although it doesn't seem to matter whether the password is correct or not, KMyMoney *always* crashes after this point.)
* CRASH.

I do see a message 'Invalid header version "102", using "220" instead.' even before I type my password.
Then after entering my password, I see what looks like server-communication, and then everything disappears.



- Unusual behavior I noticed:
complete CRASH

- Custom settings of the application:
None.  I just started using KMyMoney, and have been cautious not to muck with much.  I have only added accounts and manually imported a OFX import for each.

The crash can be reproduced every time.

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

Thread 6 (Thread 0x7f9dbffff700 (LWP 2927012)):
#0  0x00007f9e1a320437 in g_main_context_acquire () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f9e1a321225 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9e1a3214a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9e1c6a0583 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f9e1c6474db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f9e1c47f785 in QThread::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f9e1c4809d2 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f9e1bb5d609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007f9e1bfa4293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f9dc4fff700 (LWP 2927005)):
#0  0x00007f9e1bf97aff in __GI___poll (fds=0x7f9dc00025e0, nfds=1, timeout=8822) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f9e1a32136e in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9e1a3214a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9e1c6a0583 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f9e1c6474db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f9e1c47f785 in QThread::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f9e1c4809d2 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f9e1bb5d609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007f9e1bfa4293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f9e072d1700 (LWP 2927004)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f9e213f2d34) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55e7905f2900, cond=0x7f9e213f2d08) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x7f9e213f2d08, mutex=0x55e7905f2900) at pthread_cond_wait.c:638
#3  0x00007f9e1c2aee30 in std::condition_variable::wait(std::unique_lock<std::mutex>&) () at /lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007f9e208fd461 in  () at /lib/x86_64-linux-gnu/libQt5WebKit.so.5
#5  0x00007f9e208fd57f in  () at /lib/x86_64-linux-gnu/libQt5WebKit.so.5
#6  0x00007f9e1c2b4de4 in  () at /lib/x86_64-linux-gnu/libstdc++.so.6
#7  0x00007f9e1bb5d609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007f9e1bfa4293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f9e15020700 (LWP 2927002)):
#0  0x00007f9e1a31f25d in g_source_ref () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f9e1a31f328 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9e1a32082b in g_main_context_prepare () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9e1a32129b in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f9e1a3214a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9e1c6a0583 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f9e1c6474db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f9e1c47f785 in QThread::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f9e1c922efa in  () at /lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007f9e1c4809d2 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f9e1bb5d609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007f9e1bfa4293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f9e15e29700 (LWP 2927001)):
#0  0x00007f9e1bf97aff in __GI___poll (fds=0x7f9e15e28ba8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f9e178c1c1a in  () at /lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f9e178c390a in xcb_wait_for_event () at /lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f9e1661c298 in  () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f9e1c4809d2 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f9e1bb5d609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f9e1bfa4293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f9e16cdd900 (LWP 2926997)):
[KCrash Handler]
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#7  0x00007f9e1bea7859 in __GI_abort () at abort.c:79
#8  0x00007f9e1bea7729 in __assert_fail_base (fmt=0x7f9e1c03d588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7f9e0c44798a "bf", file=0x7f9e0c44b34b "buffer.c", line=275, function=<optimized out>) at assert.c:92
#9  0x00007f9e1beb8f36 in __GI___assert_fail (assertion=0x7f9e0c44798a "bf", file=0x7f9e0c44b34b "buffer.c", line=275, function=0x7f9e0c448010 "GWEN_Buffer_GetUsedBytes") at assert.c:101
#10 0x00007f9e0c3955fd in  () at /lib/x86_64-linux-gnu/libgwenhywfar.so.79
#11 0x00007f9e0c25e5e2 in  () at /lib/x86_64-linux-gnu/libaqbanking.so.44
#12 0x00007f9e0c228e0f in  () at /lib/x86_64-linux-gnu/libaqbanking.so.44
#13 0x00007f9e0c225288 in  () at /lib/x86_64-linux-gnu/libaqbanking.so.44
#14 0x00007f9e0c42d369 in GWEN_Dialog_EmitSignal () at /lib/x86_64-linux-gnu/libgwenhywfar.so.79
#15 0x00007f9e0c341e1c in  () at /lib/x86_64-linux-gnu/libgwengui-qt5.so.0
#16 0x00007f9e1c674300 in QMetaObject::activate(QObject*, int, int, void**) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007f9e1d61d806 in QAbstractButton::clicked(bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007f9e1d61da2e in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007f9e1d61ee73 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007f9e1d61f035 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007f9e1d56b2b6 in QWidget::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007f9e1d528a66 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007f9e1d532343 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007f9e1c64893a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00007f9e1d531457 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007f9e1d58735d in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007f9e1d58a1ec in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x00007f9e1d528a66 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#29 0x00007f9e1d5320f0 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#30 0x00007f9e1c64893a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#31 0x00007f9e1cef97d3 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#32 0x00007f9e1cefb10b in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#33 0x00007f9e1ced535b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#34 0x00007f9e1661d32e in  () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#35 0x00007f9e1a32117d in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007f9e1a321400 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007f9e1a3214a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007f9e1c6a0565 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#39 0x00007f9e1c6474db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#40 0x00007f9e1d72cc6d in QDialog::exec() () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#41 0x00007f9e0c34351c in QT5_GuiDialog::execute() () at /lib/x86_64-linux-gnu/libgwengui-qt5.so.0
#42 0x00007f9e0c343138 in QT5_Gui::execDialog(GWEN_DIALOG*, unsigned int) () at /lib/x86_64-linux-gnu/libgwengui-qt5.so.0
#43 0x00007f9e0c1a2aab in  () at /lib/x86_64-linux-gnu/libaqbanking.so.44
#44 0x00007f9e0c1a3e48 in  () at /lib/x86_64-linux-gnu/libaqbanking.so.44
#45 0x00007f9e0c42d369 in GWEN_Dialog_EmitSignal () at /lib/x86_64-linux-gnu/libgwenhywfar.so.79
#46 0x00007f9e0c341e1c in  () at /lib/x86_64-linux-gnu/libgwengui-qt5.so.0
#47 0x00007f9e1c674300 in QMetaObject::activate(QObject*, int, int, void**) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#48 0x00007f9e1d61d806 in QAbstractButton::clicked(bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#49 0x00007f9e1d61da2e in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#50 0x00007f9e1d61ee73 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#51 0x00007f9e1d61f035 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#52 0x00007f9e1d56b2b6 in QWidget::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#53 0x00007f9e1d528a66 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#54 0x00007f9e1d532343 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#55 0x00007f9e1c64893a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#56 0x00007f9e1d531457 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#57 0x00007f9e1d58735d in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#58 0x00007f9e1d58a1ec in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#59 0x00007f9e1d528a66 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#60 0x00007f9e1d5320f0 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#61 0x00007f9e1c64893a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#62 0x00007f9e1cef97d3 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#63 0x00007f9e1cefb10b in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#64 0x00007f9e1ced535b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#65 0x00007f9e1661d32e in  () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#66 0x00007f9e1a32117d in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#67 0x00007f9e1a321400 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#68 0x00007f9e1a3214a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#69 0x00007f9e1c6a0565 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#70 0x00007f9e1c6474db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#71 0x00007f9e1d72cc6d in QDialog::exec() () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#72 0x00007f9e0c34351c in QT5_GuiDialog::execute() () at /lib/x86_64-linux-gnu/libgwengui-qt5.so.0
#73 0x00007f9e0c343138 in QT5_Gui::execDialog(GWEN_DIALOG*, unsigned int) () at /lib/x86_64-linux-gnu/libgwengui-qt5.so.0
#74 0x00007f9e0c4b74b9 in KBanking::slotSettings() (this=<optimized out>) at ./kmymoney/plugins/kbanking/kbanking.cpp:363
#75 0x00007f9e1c674458 in QMetaObject::activate(QObject*, int, int, void**) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#76 0x00007f9e1d5223e6 in QAction::triggered(bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#77 0x00007f9e1d524aa2 in QAction::activate(QAction::ActionEvent) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#78 0x00007f9e1c674d5a in QObject::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#79 0x00007f9e1d525337 in QAction::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#80 0x00007f9e1d528a66 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#81 0x00007f9e1d5320f0 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#82 0x00007f9e1c64893a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#83 0x00007f9e1c64b5b8 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#84 0x00007f9e1c6a0f67 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#85 0x00007f9e1a32117d in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#86 0x00007f9e1a321400 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#87 0x00007f9e1a3214a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#88 0x00007f9e1c6a0565 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#89 0x00007f9e1c6474db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#90 0x00007f9e1c64f246 in QCoreApplication::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#91 0x000055e78f172e19 in runKMyMoney(std::unique_ptr<QSplashScreen, std::default_delete<QSplashScreen> >, QUrl const&, bool, QApplication&) (splash=std::unique_ptr<class QSplashScreen> = {...}, file=..., noFile=<optimized out>, a=...) at ./kmymoney/main.cpp:349
#92 0x000055e78f170882 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/include/c++/9/bits/move.h:74
[Inferior 1 (process 2926997) detached]

Possible duplicates by query: bug 445496, bug 445355, bug 440777, bug 440257, bug 429344.

Report to https://bugs.kde.org/
Comment 1 Thomas Baumgart 2021-11-19 07:47:52 UTC
Even though you experience this problem when using KMyMoney as the application, the crash is caused by the AqBanking/Gwenhywfar libraries underneath. The setup wizard is simply called by KMyMoney and does its thing. So I am sorry to say that this looks more like an upstream (Gwenhywfar) problem.

Which version of AqBanking / Gwenhywfar do you use? When starting KMyMoney from a console, you can see something like the following (among other output):

   Loading "/usr/lib64/qt5/plugins/kmymoney/kbanking.so"
   "Plugins: kbanking loaded, build with (5.7.4stable-0/6.4.0.0stable), run with (5.7.4.0/6.4.0.0)"
   7:2021-11-19 08:45:13:aqbanking started

Possible workaround: did you try to use the 'ofximporter' instead of 'kbanking' when setting up the mapping of the account? This contains an independent implementation of the OFX access.
Comment 2 matt 2021-11-19 13:13:35 UTC
(In reply to Thomas Baumgart from comment #1)
> Even though you experience this problem when using KMyMoney as the
> application, the crash is caused by the AqBanking/Gwenhywfar libraries
> underneath. The setup wizard is simply called by KMyMoney and does its
> thing. So I am sorry to say that this looks more like an upstream
> (Gwenhywfar) problem.
> 
> Which version of AqBanking / Gwenhywfar do you use? When starting KMyMoney
> from a console, you can see something like the following (among other
> output):
> 
>    Loading "/usr/lib64/qt5/plugins/kmymoney/kbanking.so"
>    "Plugins: kbanking loaded, build with (5.7.4stable-0/6.4.0.0stable), run
> with (5.7.4.0/6.4.0.0)"
>    7:2021-11-19 08:45:13:aqbanking started
> 
> Possible workaround: did you try to use the 'ofximporter' instead of
> 'kbanking' when setting up the mapping of the account? This contains an
> independent implementation of the OFX access.


Thank you for the input.  I have to admit I am not that familiar with the libraries/deps for KMyMoney.  I just started using it.  
How would I use ofximporter instead of kbanking?  I just used what Kubuntu installed from the apt repo.

That said, I don't see any messages about aqbanking, but do see a message about ofximporter.
Here's what I get when starting kmymoney from the cli:

$ kmymoney 
WebConnect: Try to connect to WebConnect server
WebConnect: Connect to server failed
WebConnect: Starting server failed. Try to remove stale socket.
WebConnect: Running in server mode
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/forecastview.so" Validity true
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/kcm_checkprinting.so" Validity true
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/icalendarexporter.so" Validity true
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/qifexporter.so" Validity true
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/csvimporter.so" Validity true
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/reconciliationreport.so" Validity true
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/xmlstorage.so" Validity true
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/csvexporter.so" Validity true
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/kcm_reportsview.so" Validity true
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/reportsview.so" Validity true
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/onlinejoboutboxview.so" Validity true
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/qifimporter.so" Validity true
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/kcm_csvimporter.so" Validity true
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/checkprinting.so" Validity true
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/sqlstorage.so" Validity true
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/konlinetasks_sepa.so" Validity true
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/kcm_xmlstorage.so" Validity true
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/gncimporter.so" Validity true
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/kcm_qif.so" Validity false
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/ofximporter.so" Validity true
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/budgetview.so" Validity true
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/kbanking.so" Validity true
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/kcm_forecastview.so" Validity true
Located plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/kcm_icalendarexporter.so" Validity true
Loading "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/budgetview.so"
Plugins: budgetview loaded
Loading "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/checkprinting.so"
Plugins: checkprinting loaded
Loading "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/csvexporter.so"
Plugins: csvexporter loaded
Loading "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/csvimporter.so"
Plugins: csvimporter loaded
Loading "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/forecastview.so"
Plugins: forecastview loaded
Loading "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/gncimporter.so"
Plugins: gncimporter loaded
Loading "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/icalendarexporter.so"
Plugins: icalendarexporter loaded
Loading "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/kbanking.so"
"Plugins: kbanking loaded, build with (5.1.3stable-0/6.0.1.0stable), run with (5.1.3.0/6.0.1.0)"
Loading "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/ofximporter.so"
Plugins: ofximporter loaded
Loading "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/onlinejoboutboxview.so"
Plugins: onlinejoboutboxview loaded
Loading "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/qifexporter.so"
Plugins: qifexporter loaded
Loading "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/qifimporter.so"
Plugins: qifimporter loaded
Loading "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/reconciliationreport.so"
Plugins: reconciliation report loaded
Loading "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/reportsview.so"
Plugins: reportsview loaded
Loading "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/sqlstorage.so"
Plugins: sqlstorage loaded
Loading "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/xmlstorage.so"
Plugins: xmlstorage loaded
reading file
start parsing file
startDocument
reading securities
endDocument
Cost center model created with items 0
Payees model created with items 0

Later, when I do Settings -> Configure aqBanking and walk through the process of setting up my Amex card:

3:2021/11/19 08-06-17:gwen(3112732):pathmanager.c:   83: Path "aqhbci/xmldatadir" already exists
3:2021/11/19 08-06-17:gwen(3112732):dialog.c:  666: Widget [hbciInitChipcardRadio] not found
...
3:2021/11/19 08-07-10:(null)(3112732):dlg_newuser.c:  965: Doit
3:2021/11/19 08-07-10:(null)(3112732):dlg_newuser.c:  970: Creating user
3:2021/11/19 08-07-10:(null)(3112732):dlg_newuser.c: 1001: Adding user
3:2021/11/19 08-07-10:(null)(3112732):dlg_newuser.c: 1018: Locking user
3:2021/11/19 08-07-10:(null)(3112732):cppgui.cpp:  141: CppGuiLinker::OpenDialog
4:2021/11/19 08-07-10:gwen(3112732):syncio_tls.c:  137: No checkCertFn set, using GWEN_GUI
3:2021/11/19 08-07-10:(null)(3112732):dlg_newuser.c: 1055: Unlocking user

3:2021/11/19 08-07-21:(null)(3112732):dlg_newuser.c: 1358: Activated: wiz_getaccounts_button
3:2021/11/19 08-07-21:(null)(3112732):cppgui.cpp:  141: CppGuiLinker::OpenDialog
3:2021/11/19 08-07-21:aqofxconnect(3112732):n_header.c:   41: Invalid header version "102", using "220" instead.
3:2021/11/19 08-07-53:gwen(3112732):dialog.c:  695: Widget [storePasswordCheck] not found
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 5675, resource id: 35741766, major code: 40 (TranslateCoords), minor code: 0
4:2021/11/19 08-07-53:gwen(3112732):syncio_tls.c:  137: No checkCertFn set, using GWEN_GUI
kmymoney: buffer.c:275: GWEN_Buffer_GetUsedBytes: Assertion `bf' failed.
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kmymoney path = /usr/bin pid = 3112732
KCrash: Arguments: /usr/bin/kmymoney 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0
<and drkonqi takes over>

Honestly I'm not sure how to use AqBanking outside of KMyMoney.  

Thank you for your help.
Matt
Comment 3 matt 2021-11-19 13:21:28 UTC
Apparently I didn't have aqbanking-tools or gwenhywfer-tools installed.  After installing them I get an additional messare or two before the crash:

3:2021/11/19 08-17-07:(null)(3115388):dlg_newuser.c:  965: Doit
3:2021/11/19 08-17-07:(null)(3115388):dlg_newuser.c:  970: Creating user
3:2021/11/19 08-17-07:(null)(3115388):dlg_newuser.c: 1001: Adding user
3:2021/11/19 08-17-07:(null)(3115388):dlg_newuser.c: 1018: Locking user
3:2021/11/19 08-17-07:(null)(3115388):cppgui.cpp:  141: CppGuiLinker::OpenDialog
4:2021/11/19 08-17-07:gwen(3115388):syncio_tls.c:  137: No checkCertFn set, using GWEN_GUI
3:2021/11/19 08-17-07:(null)(3115388):dlg_newuser.c: 1055: Unlocking user
3:2021/11/19 08-17-08:(null)(3115388):dlg_newuser.c: 1358: Activated: wiz_getaccounts_button
3:2021/11/19 08-17-08:(null)(3115388):cppgui.cpp:  141: CppGuiLinker::OpenDialog
3:2021/11/19 08-17-08:aqofxconnect(3115388):n_header.c:   41: Invalid header version "102", using "220" instead.
3:2021/11/19 08-17-12:gwen(3115388):dialog.c:  695: Widget [storePasswordCheck] not found
4:2021/11/19 08-17-12:gwen(3115388):syncio_tls.c:  137: No checkCertFn set, using GWEN_GUI
kmymoney: buffer.c:275: GWEN_Buffer_GetUsedBytes: Assertion `bf' failed.
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kmymoney path = /usr/bin pid = 3115388
KCrash: Arguments: /usr/bin/kmymoney 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0

It doesn't seem helpful to me, but I wanted to share it in case it is helpful to someone who knows what they're looking at.
Comment 4 Brendan 2021-11-19 15:22:36 UTC
Created attachment 143735 [details]
attachment-31155-0.html

I think AmEx stopped supporting OFX direct connect 2 or 3 years ago, at
least the way KMM supports it. I stopped using that card so I haven't tried
it in a while but I will try mapping it later today.

*----*
*Brendan Coupe*


On Fri, Nov 19, 2021 at 6:21 AM bugzilla_noreply--- via KMyMoney-devel <
kmymoney-devel@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=445721
>
> --- Comment #3 from matt@eisgr.com ---
> Apparently I didn't have aqbanking-tools or gwenhywfer-tools installed.
> After
> installing them I get an additional messare or two before the crash:
>
> 3:2021/11/19 08-17-07:(null)(3115388):dlg_newuser.c:  965: Doit
> 3:2021/11/19 08-17-07:(null)(3115388):dlg_newuser.c:  970: Creating user
> 3:2021/11/19 08-17-07:(null)(3115388):dlg_newuser.c: 1001: Adding user
> 3:2021/11/19 08-17-07:(null)(3115388):dlg_newuser.c: 1018: Locking user
> 3:2021/11/19 08-17-07:(null)(3115388):cppgui.cpp:  141:
> CppGuiLinker::OpenDialog
> 4:2021/11/19 08-17-07:gwen(3115388):syncio_tls.c:  137: No checkCertFn set,
> using GWEN_GUI
> 3:2021/11/19 08-17-07:(null)(3115388):dlg_newuser.c: 1055: Unlocking user
> 3:2021/11/19 08-17-08:(null)(3115388):dlg_newuser.c: 1358: Activated:
> wiz_getaccounts_button
> 3:2021/11/19 08-17-08:(null)(3115388):cppgui.cpp:  141:
> CppGuiLinker::OpenDialog
> 3:2021/11/19 08-17-08:aqofxconnect(3115388):n_header.c:   41: Invalid
> header
> version "102", using "220" instead.
> 3:2021/11/19 08-17-12:gwen(3115388):dialog.c:  695: Widget
> [storePasswordCheck]
> not found
> 4:2021/11/19 08-17-12:gwen(3115388):syncio_tls.c:  137: No checkCertFn set,
> using GWEN_GUI
> kmymoney: buffer.c:275: GWEN_Buffer_GetUsedBytes: Assertion `bf' failed.
> KCrash: crashing... crashRecursionCounter = 2
> KCrash: Application Name = kmymoney path = /usr/bin pid = 3115388
> KCrash: Arguments: /usr/bin/kmymoney
> KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from
> kdeinit
> sock_file=/run/user/1000/kdeinit5__0
>
> It doesn't seem helpful to me, but I wanted to share it in case it is
> helpful
> to someone who knows what they're looking at.
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
Comment 5 Brendan 2021-11-19 15:31:29 UTC
I just tried mapping AmEx. There are 3 options, kbanking, ofximporter & woob. I picked ofximporter.

Everything went fine, I used Quicken 2019 and header version 103.

When I try to download transactions, I get an internal server error. I assume I would neot get any transactions but can't be sure since the newest one is 3 years old.

KMM does not crash at any point int he process. I'm on the latest compiled version from the 5.1 branch.
Comment 6 Thomas Baumgart 2021-11-20 06:08:06 UTC
I have to admit, that the naming is a bit weird. Here's the information I was asking for about the AqBanking/Gwenhywfar versions you are using:

Loading "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/kbanking.so"
"Plugins: kbanking loaded, build with (5.1.3stable-0/6.0.1.0stable), run with (5.1.3.0/6.0.1.0)"

Looking at your KMyMoney version, that combination is rather old and the problem you encounter may already been fixed.

To be able to select the alternative OFX implementation you need to unmap the account first. The method selection is the first thing that is asked for in the mapping process and you cannot change it afterwards.

You may want to try a stable AppImage version. See https://kmymoney.org/appimage for more details on how to install and run it.
Comment 7 matt 2021-11-22 20:08:22 UTC
(In reply to Brendan from comment #5)
> I just tried mapping AmEx. There are 3 options, kbanking, ofximporter &
> woob. I picked ofximporter.
> 
> Everything went fine, I used Quicken 2019 and header version 103.
> 
> When I try to download transactions, I get an internal server error. I
> assume I would neot get any transactions but can't be sure since the newest
> one is 3 years old.
> 
> KMM does not crash at any point int he process. I'm on the latest compiled
> version from the 5.1 branch.


Thank you.  Did you compile yourself?  If not, where did you get your packages from?  Do you have any suggestions for someone running Kubuntu 20.04.3?

Thank you!
Matt
Comment 8 matt 2021-11-22 20:22:11 UTC
(In reply to Thomas Baumgart from comment #6)
> I have to admit, that the naming is a bit weird. Here's the information I
> was asking for about the AqBanking/Gwenhywfar versions you are using:
> 
> Loading "/usr/lib/x86_64-linux-gnu/qt5/plugins/kmymoney/kbanking.so"
> "Plugins: kbanking loaded, build with (5.1.3stable-0/6.0.1.0stable), run
> with (5.1.3.0/6.0.1.0)"
> 
> Looking at your KMyMoney version, that combination is rather old and the
> problem you encounter may already been fixed.
> 
> To be able to select the alternative OFX implementation you need to unmap
> the account first. The method selection is the first thing that is asked for
> in the mapping process and you cannot change it afterwards.
> 
> You may want to try a stable AppImage version. See
> https://kmymoney.org/appimage for more details on how to install and run it.

Thank you for this link.  I didn't know the AppImage version existed.  I apparently just setup a connection to Amex... now to see if it worked, or if I needed to have that account setup first?  I'm such a n00b to KMyMoney.  I appreciate your help.
Key takeaway:  the AppImage latest did not crash.
Comment 9 Brendan 2021-11-22 20:33:46 UTC
I compile from source every week or two. I have scripts to manage everything but the dependency issues, which you only have to figure out once.

Let me know if you want to try my scripts and I will send you link to them.
Comment 10 Bug Janitor Service 2021-12-07 04:36:01 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Bug Janitor Service 2021-12-22 04:35:27 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!