GNOME Bugzilla – Bug 647302
crash on mt940 import
Last modified: 2018-06-29 22:56:32 UTC
Go to file -> import -> mt940 File selection pops up, i select the mt940 file. Click import, nothing. No more window updates. Button stays depressed. When switching workplaces and then back to gnucash, windows not updated. gnucash$ export GWEN_LOGLEVEL=info gnucash$ export AQBANKING_LOGLEVEL=info gnucash$ gnucash administratie gnc.bin-Message: main: binreloc relocation support was disabled at configure time. 6:2011/04/09 19-52-20:gwen(8924):i18n.c: 199: Real locale is [en_US.UTF-8] 6:2011/04/09 19-52-20:gwen(8924):plugin.c: 544: Plugin type "dbio" registered 6:2011/04/09 19-52-20:gwen(8924):dbio.c: 106: Adding plugin path [/usr/lib/gwenhywfar/plugins/60/dbio] 6:2011/04/09 19-52-20:gwen(8924):plugin.c: 544: Plugin type "configmgr" registered 6:2011/04/09 19-52-20:gwen(8924):configmgr.c: 80: Adding plugin path [/usr/lib/gwenhywfar/plugins/60/configmgr] 6:2011/04/09 19-52-20:gwen(8924):plugin.c: 544: Plugin type "ct" registered 6:2011/04/09 19-52-20:gwen(8924):ctplugin.c: 65: Adding plugin path [/usr/lib/gwenhywfar/plugins/60/ct] 6:2011/04/09 19-52-20:gwen(8924):plugin.c: 574: Plugin type "ct" unregistered 6:2011/04/09 19-52-20:gwen(8924):plugin.c: 574: Plugin type "configmgr" unregistered 6:2011/04/09 19-52-20:gwen(8924):plugin.c: 574: Plugin type "dbio" unregistered 6:2011/04/09 19-52-23:gwen(8924):i18n.c: 199: Real locale is [en_US.UTF-8] 6:2011/04/09 19-52-23:gwen(8924):plugin.c: 544: Plugin type "dbio" registered 6:2011/04/09 19-52-23:gwen(8924):dbio.c: 106: Adding plugin path [/usr/lib/gwenhywfar/plugins/60/dbio] 6:2011/04/09 19-52-23:gwen(8924):plugin.c: 544: Plugin type "configmgr" registered 6:2011/04/09 19-52-23:gwen(8924):configmgr.c: 80: Adding plugin path [/usr/lib/gwenhywfar/plugins/60/configmgr] 6:2011/04/09 19-52-23:gwen(8924):plugin.c: 544: Plugin type "ct" registered 6:2011/04/09 19-52-23:gwen(8924):ctplugin.c: 65: Adding plugin path [/usr/lib/gwenhywfar/plugins/60/ct] Found Finance::Quote version 1.17 CTRL-C gnucash$ cat /tmp/gnucash.trace * 19:52:21 WARN <gnc.backend.dbi> [gnc_module_init_backend_dbi()] No DBD drivers found gnucash$ cat /etc/debian_version wheezy/sid
(In reply to comment #0) > Go to file -> import -> mt940 > > File selection pops up, i select the mt940 file. > > Click import, nothing. No more window updates. Button stays depressed. When > switching workplaces and then back to gnucash, windows not updated. > > > gnucash$ export GWEN_LOGLEVEL=info > gnucash$ export AQBANKING_LOGLEVEL=info > gnucash$ gnucash administratie > gnc.bin-Message: main: binreloc relocation support was disabled at configure > time. > > 6:2011/04/09 19-52-20:gwen(8924):i18n.c: 199: Real locale is [en_US.UTF-8] > 6:2011/04/09 19-52-20:gwen(8924):plugin.c: 544: Plugin type "dbio" registered > 6:2011/04/09 19-52-20:gwen(8924):dbio.c: 106: Adding plugin path > [/usr/lib/gwenhywfar/plugins/60/dbio] > 6:2011/04/09 19-52-20:gwen(8924):plugin.c: 544: Plugin type "configmgr" > registered > 6:2011/04/09 19-52-20:gwen(8924):configmgr.c: 80: Adding plugin path > [/usr/lib/gwenhywfar/plugins/60/configmgr] > 6:2011/04/09 19-52-20:gwen(8924):plugin.c: 544: Plugin type "ct" registered > 6:2011/04/09 19-52-20:gwen(8924):ctplugin.c: 65: Adding plugin path > [/usr/lib/gwenhywfar/plugins/60/ct] > 6:2011/04/09 19-52-20:gwen(8924):plugin.c: 574: Plugin type "ct" unregistered > 6:2011/04/09 19-52-20:gwen(8924):plugin.c: 574: Plugin type "configmgr" > unregistered > 6:2011/04/09 19-52-20:gwen(8924):plugin.c: 574: Plugin type "dbio" > unregistered > 6:2011/04/09 19-52-23:gwen(8924):i18n.c: 199: Real locale is [en_US.UTF-8] > 6:2011/04/09 19-52-23:gwen(8924):plugin.c: 544: Plugin type "dbio" registered > 6:2011/04/09 19-52-23:gwen(8924):dbio.c: 106: Adding plugin path > [/usr/lib/gwenhywfar/plugins/60/dbio] > 6:2011/04/09 19-52-23:gwen(8924):plugin.c: 544: Plugin type "configmgr" > registered > 6:2011/04/09 19-52-23:gwen(8924):configmgr.c: 80: Adding plugin path > [/usr/lib/gwenhywfar/plugins/60/configmgr] > 6:2011/04/09 19-52-23:gwen(8924):plugin.c: 544: Plugin type "ct" registered > 6:2011/04/09 19-52-23:gwen(8924):ctplugin.c: 65: Adding plugin path > [/usr/lib/gwenhywfar/plugins/60/ct] > Found Finance::Quote version 1.17 > > CTRL-C > > gnucash$ cat /tmp/gnucash.trace > * 19:52:21 WARN <gnc.backend.dbi> [gnc_module_init_backend_dbi()] No DBD > drivers found > gnucash$ cat /etc/debian_version > wheezy/sid Tried OXF import on another gnucash file that has an account with another bank (SNS, the bug above is with ABN-AMRO mta940 gone through dos2unix and with the three 'weird' lines removed, this worked one/two weeks ago). OXF works fine still it seems. Also tried SNS mta940, same crash.
Can you try to produce a stack trace, http://wiki.gnucash.org/wiki/Stack_Trace ? If the program is frozen and no stack trace occurs, you can press Control-C in the terminal window where you started gnucash in gdb, then show the stack trace of after you've pressed Control-C. Did I understand correctly: Importing this very same file (or a very similar one) did work two weeks ago, but crashes now? This is most probably a bug in the gnucash/aqbanking/gwenhywfar library installation on your system, e.g. a mix-up between older and newer versions of those libraries. E.g. one library in /usr/local/lib, another in /usr/lib.
gnucash$ ls /usr/lib | grep aq aqbanking libaqbanking.so.33 libaqbanking.so.33.0.5 libaqhbci.so.19 libaqhbci.so.19.0.2 libaqnone.so.33 libaqnone.so.33.0.5 libaqofxconnect.so.7 libaqofxconnect.so.7.0.0 gnucash$ ls /usr/local/lib | grep aq gnucash$ ls /usr/lib | grep gwen gwenhywfar libgwengui-gtk2.so.0 libgwengui-gtk2.so.0.0.0 libgwenhywfar.so.60 libgwenhywfar.so.60.0.9 gnucash$ ls /usr/local/lib | grep gwen gnucash$ gdb gnucash administratie GNU gdb (GDB) 7.2-debian Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/bin/gnucash...Reading symbols from /usr/lib/debug/usr/bin/gnucash...done. done. "administratie" is not a core dump: File format not recognized (gdb) run Starting program: /usr/bin/gnucash [Thread debugging using libthread_db enabled] gnc.bin-Message: main: binreloc relocation support was disabled at configure time. [New Thread 0x7fffdcbad700 (LWP 10336)] Found Finance::Quote version 1.17 [New Thread 0x7fffdbd58700 (LWP 10337)] [New Thread 0x7fffdb557700 (LWP 10338)] [New Thread 0x7fffd9e1e700 (LWP 10339)] [New Thread 0x7fffd8ff9700 (LWP 10340)] [New Thread 0x7fffd3fff700 (LWP 10341)] [New Thread 0x7fffd37fe700 (LWP 10342)] [Thread 0x7fffd9e1e700 (LWP 10339) exited] [Thread 0x7fffd8ff9700 (LWP 10340) exited] [Thread 0x7fffd3fff700 (LWP 10341) exited] [Thread 0x7fffd37fe700 (LWP 10342) exited] ^C Program received signal SIGINT, Interrupt. 0x00007ffff17d80bd in read () from /lib/libpthread.so.0 (gdb) bt full
+ Trace 226663
(gdb) And indeed, around two weeks ago i could succesfully import an mta940 file that was from the same bank. In fact, I still have that mta file around, and just tried it: also crashes now.
Created attachment 185605 [details] Anonymized test case mt940 file
So, uhm, anything else I can do? I do need that mt940 import to complete my quarterly round-up for the tax office. If there's no expectation of resolving this bug soon, I should be really urgently looking for software to do my book-keeping in or see if i can downgrade without breaking everything.
Well, if it worked before, you have always the possibility to try to find out what has changed on your system compared to two weeks before. E.g. in /var/log/apt* there might be some notice about changes in the "*aqbanking*" or "*gwenhywfar*" packages, and this was the imminent cause of breaking the import. As for the actual program bug: The file /usr/lib/gwenhywfar/plugins/60/dbio/swift.so from (probably) libgwenhywfar does not contain debugging symbols, which means the stack trace does not yet contain enough information for us. Installing a package like libgwenhywfar-dbg or similar might add this information, so that a stack trace is more helpful for us. In any case please don't expect this bug to be fixed today - tracking this down (if it is an error in libaqbanking or libgwenhywfar source code) might well take 1-2 weeks. If you are in a hurry, you must downgrade your packages to the previous versions instead.
Can you install the libaqbanking-dbg package (debug symbols for libaqbanking), then reproduce this crash and send us the more verbose backtrace? Thanks.
Sorry, yeah, work caught up with me and been busy importing transactions manually...
+ Trace 226775
And a bt full:
+ Trace 226776
Turns out any file import using the libaqbanking-5.0.x packages is broken. The error is on the gnucash side. Fixed in SVN r20565, which needs to be back-ported so that we can release version 2.4.6 where this will be fixed. Sorry for that. *** This bug has been marked as a duplicate of bug 644897 ***
Wrong number, now the correct one *** This bug has been marked as a duplicate of bug 646268 ***
Thanks! Looking forward to the new release :)
Reassign version to 2.4.x so that individual 2.4 versions can be retired.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=647302. Please update any external references or bookmarks.