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 795810 - Gnucash crashes when importing OFX
Gnucash crashes when importing OFX
Status: RESOLVED NOTGNOME
Product: GnuCash
Classification: Other
Component: Import - OFX
3.1
Other Linux
: Normal critical
: future
Assigned To: gnucash-import-maint
gnucash-import-maint
Depends on:
Blocks:
 
 
Reported: 2018-05-04 17:14 UTC by victor.noel
Modified: 2018-06-30 00:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
problematic ofx (10.20 KB, application/octet-stream)
2018-05-04 17:14 UTC, victor.noel
Details
stacktrace of import ofx crash (5.72 KB, text/plain)
2018-05-05 10:03 UTC, victor.noel
Details

Description victor.noel 2018-05-04 17:14:19 UTC
Created attachment 371680 [details]
problematic ofx

Hi,

See the obfuscated attached ofx file.

Importing it with gnucash 3.1 (from archlinux) simply crashes.

I've tried using the dev version of libofx but it is the same.
Also it worked well before 3.1.

I passed my ofx file into fixofx (https://github.com/wesabe/fixofx.git) without any success.
The problem happens with files from 2 different banks.

This is the error in the logs:
LibOFX INFO: libofx_proc_file(): File format not specified, autodetecting...
(Above message occurred on Line 18446744073709551615, Column 18446744073709551615)
LibOFX INFO: libofx_proc_file(): Detected file format: OFX (Open Financial eXchange (OFX or QFX))
(Above message occurred on Line 18446744073709551615, Column 18446744073709551615)
LibOFX INFO: Created OfxDummyContainer to hold unsupported aggregate SIGNONMSGSRSV1
(Above message occurred on Line 2, Column 1)
LibOFX INFO: Created OfxDummyContainer to hold unsupported aggregate SONRS
(Above message occurred on Line 3, Column 1)
LibOFX INFO: Created OfxDummyContainer to hold unsupported aggregate BANKMSGSRSV1
(Above message occurred on Line 12, Column 1)
LibOFX INFO: Created OfxDummyContainer to hold unsupported aggregate STMTTRNRS
(Above message occurred on Line 13, Column 1)
^C[1]    2956 abort (core dumped)  gnucash
Comment 1 John Ralls 2018-05-04 17:54:11 UTC
I can import your file without difficulty with GnuCash 3.1 on MacOS.

Please run GnuCash under a debugger, crash it with your OFX file and attach a stack trace. See https://wiki.gnucash.org/wiki/Stack_Trace if you need more detailed instructions.
Comment 2 victor.noel 2018-05-05 10:03:48 UTC
Created attachment 371698 [details]
stacktrace of import ofx crash

Here it is, I suppose it is not related to ofx itself but maybe some UI aspects of it? :)
Comment 3 victor.noel 2018-05-05 10:14:45 UTC
Running gnucash with: "GDK_BACKEND=x11 gnucash" makes the crashing behaviour disappear, so it is related to wayland.

The import process is quite long and the transaction association window kind of freeze until the file is loaded, so maybe there is some links...
Comment 4 John Ralls 2018-05-05 11:53:13 UTC
It's not actually related to GnuCash at all, it's a bug in Gtk's Wayland backend. If you want to pursue this you'll need to raise an issue at https://gitlab.gnome.org/GNOME/gtk.

Since we don't yet have "Not GnuCash", closing as "Not GNOME".
Comment 5 victor.noel 2018-05-05 16:36:16 UTC
Ok, will do, thank you!
Comment 6 victor.noel 2018-05-05 16:43:24 UTC
For the record: https://gitlab.gnome.org/GNOME/gtk/issues/1055
Comment 7 John Ralls 2018-06-30 00:09:31 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=795810. Please update any external references or bookmarks.