After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 647302 - crash on mt940 import
crash on mt940 import
Status: RESOLVED DUPLICATE of bug 646268
Product: GnuCash
Classification: Other
Component: Import - AqBanking
2.4.x
Other Linux
: Normal critical
: ---
Assigned To: Christian Stimming
Christian Stimming
Depends on:
Blocks:
 
 
Reported: 2011-04-09 18:04 UTC by Koen Martens
Modified: 2018-06-29 22:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Anonymized test case mt940 file (295 bytes, text/plain)
2011-04-09 19:42 UTC, Koen Martens
Details

Description Koen Martens 2011-04-09 18:04: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
Comment 1 Koen Martens 2011-04-09 18:06:14 UTC
(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.
Comment 2 Christian Stimming 2011-04-09 19:00:15 UTC
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.
Comment 3 Koen Martens 2011-04-09 19:13:57 UTC

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
  • #0 read
    from /lib/libpthread.so.0
  • #1 ??
    from /usr/lib/libgwenhywfar.so.60
  • #2 AHB_SWIFT_ReadDocument
    from /usr/lib/gwenhywfar/plugins/60/dbio/swift.so
  • #3 AHB_SWIFT_Import
    from /usr/lib/gwenhywfar/plugins/60/dbio/swift.so
  • #4 GWEN_DBIO_Import
    from /usr/lib/libgwenhywfar.so.60
  • #5 ??
    from /usr/lib/aqbanking/plugins/33/imexporters/swift.so
  • #6 gnc_file_aqbanking_import
    at gnc-file-aqb-import.c line 191
  • #7 gnc_plugin_ab_cmd_mt940_import
    at gnc-plugin-aqbanking.c line 560
  • #8 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #9 ??
    from /usr/lib/libgobject-2.0.so.0
  • #10 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #11 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #12 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #13 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #14 ??
    from /usr/lib/libgobject-2.0.so.0
  • #15 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #16 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #17 gtk_widget_activate
    from /usr/lib/libgtk-x11-2.0.so.0
  • #18 gtk_menu_shell_activate_item
    from /usr/lib/libgtk-x11-2.0.so.0
  • #19 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #20 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #21 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #22 ??
    from /usr/lib/libgobject-2.0.so.0
  • #23 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #24 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #25 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #26 gtk_propagate_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #27 gtk_main_do_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #28 ??
    from /usr/lib/libgdk-x11-2.0.so.0
  • #29 g_main_context_dispatch
    from /lib/libglib-2.0.so.0
  • #30 ??
    from /lib/libglib-2.0.so.0
  • #31 g_main_loop_run
    from /lib/libglib-2.0.so.0
  • #32 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #33 gnc_ui_start_event_loop
    at gnc-gnome-utils.c line 668
  • #34 inner_main
    at gnucash-bin.c line 735
  • #35 scm_boot_guile
    from /usr/lib/libguile.so.12
  • #36 main
    at gnucash-bin.c line 879
(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.
Comment 4 Koen Martens 2011-04-09 19:42:51 UTC
Created attachment 185605 [details]
Anonymized test case mt940 file
Comment 5 Koen Martens 2011-04-11 09:51:10 UTC
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.
Comment 6 Christian Stimming 2011-04-11 09:58:20 UTC
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.
Comment 7 Christian Stimming 2011-04-18 12:07:12 UTC
Can you install the libaqbanking-dbg package (debug symbols for libaqbanking), then reproduce this crash and send us the more verbose backtrace? Thanks.
Comment 8 Koen Martens 2011-04-18 13:50:32 UTC
Sorry, yeah, work caught up with me and been busy importing transactions manually...

  • #0 read
    from /lib/libpthread.so.0
  • #1 GWEN_SyncIo_File_Read
    at syncio_file.c line 311
  • #2 AHB_SWIFT_ReadDocument
    at swift.c line 536
  • #3 AHB_SWIFT_Import
    at swift.c line 804
  • #4 GWEN_DBIO_Import
    at dbio.c line 252
  • #5 AH_ImExporterSWIFT_Import
    at swift.c line 99
  • #6 gnc_file_aqbanking_import
    from /usr/lib/gnucash/gnucash/libgncmod-aqbanking.so
  • #7 ??
    from /usr/lib/gnucash/gnucash/libgncmod-aqbanking.so
  • #8 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #9 ??
    from /usr/lib/libgobject-2.0.so.0
  • #10 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #11 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #12 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #13 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #14 ??
    from /usr/lib/libgobject-2.0.so.0
  • #15 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #16 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #17 gtk_widget_activate
    from /usr/lib/libgtk-x11-2.0.so.0
  • #18 gtk_menu_shell_activate_item
    from /usr/lib/libgtk-x11-2.0.so.0
  • #19 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #20 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #21 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #22 ??
    from /usr/lib/libgobject-2.0.so.0
  • #23 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #24 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #25 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #26 gtk_propagate_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #27 gtk_main_do_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #28 ??
    from /usr/lib/libgdk-x11-2.0.so.0
  • #29 g_main_context_dispatch
    from /lib/libglib-2.0.so.0
  • #30 ??
    from /lib/libglib-2.0.so.0
  • #31 g_main_loop_run
    from /lib/libglib-2.0.so.0
  • #32 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #33 gnc_ui_start_event_loop
    from /usr/lib/gnucash/gnucash/libgncmod-gnome-utils.so
  • #34 _start

Comment 9 Koen Martens 2011-04-18 13:51:18 UTC
And a bt full:

  • #0 read
    from /lib/libpthread.so.0
  • #1 GWEN_SyncIo_File_Read
    at syncio_file.c line 311
  • #2 AHB_SWIFT_ReadDocument
    at swift.c line 536
  • #3 AHB_SWIFT_Import
    at swift.c line 804
  • #4 GWEN_DBIO_Import
    at dbio.c line 252
  • #5 AH_ImExporterSWIFT_Import
    at swift.c line 99
  • #6 gnc_file_aqbanking_import
    from /usr/lib/gnucash/gnucash/libgncmod-aqbanking.so
  • #7 ??
    from /usr/lib/gnucash/gnucash/libgncmod-aqbanking.so
  • #8 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #9 ??
    from /usr/lib/libgobject-2.0.so.0
  • #10 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #11 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #12 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #13 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #14 ??
    from /usr/lib/libgobject-2.0.so.0
  • #15 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #16 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #17 gtk_widget_activate
    from /usr/lib/libgtk-x11-2.0.so.0
  • #18 gtk_menu_shell_activate_item
    from /usr/lib/libgtk-x11-2.0.so.0
  • #19 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #20 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #21 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #22 ??
    from /usr/lib/libgobject-2.0.so.0
  • #23 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #24 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #25 ??
    from /usr/lib/libgtk-x11-2.0.so.0
  • #26 gtk_propagate_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #27 gtk_main_do_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #28 ??
    from /usr/lib/libgdk-x11-2.0.so.0
  • #29 g_main_context_dispatch
    from /lib/libglib-2.0.so.0
  • #30 ??
    from /lib/libglib-2.0.so.0
  • #31 g_main_loop_run
    from /lib/libglib-2.0.so.0
  • #32 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #33 gnc_ui_start_event_loop
    from /usr/lib/gnucash/gnucash/libgncmod-gnome-utils.so
  • #34 _start

Comment 10 Christian Stimming 2011-04-19 09:38:07 UTC
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 ***
Comment 11 Christian Stimming 2011-04-19 10:03:09 UTC
Wrong number, now the correct one

*** This bug has been marked as a duplicate of bug 646268 ***
Comment 12 Koen Martens 2011-04-19 10:59:45 UTC
Thanks! Looking forward to the new release :)
Comment 13 John Ralls 2017-09-24 22:43:11 UTC
Reassign version to 2.4.x so that individual 2.4 versions can be retired.
Comment 14 John Ralls 2018-06-29 22:56:32 UTC
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.