GNOME Bugzilla – Bug 566352
Crash during OFX import under Win 2000 / SP4
Last modified: 2018-06-29 22:15:20 UTC
When creating a new account (under Current Assets - Money Market)in GnuCash 2.8 r17773 for an account contained in an OFX import, GnuCash crashed. The OFX file was generated by UBS Quicken 2001 version 2.7. The immediately preceding action was that I resized the width of the tree view in the left-hand panel by dragging the header boundary, in order to verify the name of the newly added/created account. Since I was actually operating the GnuCash GUI at the time of the crash, it isn't clear to me that this is really an error in the OFX import system, which I have nonetheless chosen as the most obviously suspect component. A log or crash dump file was created from the crash, but it contains only a header line, followed by these lines: ----------------- ===== START ===== END Upon reopening the GnuCash file (ignoring the lock) the account had not been added (which isn't surprising, since GnuCash was set to autosave every 5 minutes and gave me no opportunity to save before exiting. In fact, even one of the previously entered securities was not in the saved file.
P.S. In addition to the uninformative log file, there are also 2 *.xac files in the working directory. Each is 5 kB, however, both have time stamps 4-10 minutes earlier than the log file.
P.P.S. Have now reproduced this bug by reattempting import into new file. The contents of the selected (darkly shaded) field in the account view dialog is not visible by default. In the first reported instance this was the account name. In the second, it was the account type. When I click in another part of the dialog in order to make it visible, the crash occurs shortly thereafter, without any further action on my part.
P.P.S. Have now reproduced the crash twice without any actions in the account view. The crash occurs as soon as I click "OK" after creating the new account to map to the OFX import account. Since I am unable to find a workaround, I am changing the severity to critical.
Created attachment 125663 [details] OFX file to reproduce crash on import.
Comment on attachment 125663 [details] OFX file to reproduce crash on import. The crash occurs with any OFX file I have tried, which contains transactions. It also occurs using GnuCash version 2.27. Importing an OFX file containing only accounts & securities succeeds. A possible workaround appears to be importing transactions for each account from a separately exported QIF file. I am therefore reducing the severity to major. A sample OFX file producing the problem is attached.
I cannot test or debug this now, but thanks a lot for the info so far. Does it crash when you import into an empty file as well?
The GnuCash file I was using for import in each case was empty in the sense that it contained only empty accounts created by the GnuCash initial setup routine. An example file is attached for your convenience.
Created attachment 125729 [details] GnuCash file used in first import attempt
I have now recreated the crash in GnuCash 2.28 usng the OFX file previously attached, by: Opening (creating) a new file Canceling the account creation druid Importing the OFX file Creating a new top level account when prompted for the account corresponding to the one in the OFX. As before, the crash occurs when I click OK, after creating the new account, to import the transactions.
Fixed on trunk in r17836. Awaiting backport to branches/2.2 for inclusion in GnuCash 2.2.9.
2.2-branch, r17859
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=566352. Please update any external references or bookmarks.