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 752249 - Importing an Incorrectly Structured QIF File Crashes GnuCash
Importing an Incorrectly Structured QIF File Crashes GnuCash
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Import - QIF
2.6.7
Other Windows
: Normal critical
: ---
Assigned To: gnucash-import-maint
gnucash-import-maint
Depends on:
Blocks:
 
 
Reported: 2015-07-10 19:55 UTC by Bob B
Modified: 2018-06-29 23:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Stack Trace of the crash collected from Windows (7.01 KB, text/plain)
2015-07-10 19:55 UTC, Bob B
Details
Actual structured QIF file (173 bytes, text/plain)
2015-07-10 20:00 UTC, Bob B
Details

Description Bob B 2015-07-10 19:55:47 UTC
Created attachment 307270 [details]
Stack Trace of the crash collected from Windows

I have a QIF file downloaded from my credit card company that is incorrectly built. Instead of beginning with "!TYPE:CC", the file begins with two blank lines and then the usual data starts. I can only attach one file to this bug report, so here is the content of the QIF file.

<--- Line 1 of the file is blank instead of !TYPE:CC
<--- Line 2 of the file is blank
C*
D05/04/2015
NN/A
PWWW.CAREMARK.COM
T-105.00
^
C*
D06/05/2015
NN/A
PPayment Thank You Image C
T1625.58
^
C*
D05/19/2015
NN/A
PGOOGLE *Music
T-1.29
^

When I attempt to import this file into GnuCash 2.6.7, the program gets to the point of reporting an error because the file is incorrect and then crashes.

- My version of GnuCash is: "built from git rev 757a50c+ on 2015-06-29".
- I run 64 bit Windows 7 on a Dell Inspirion 17 laptop that is less than one year old. Windows patches and updates are current.

These are the steps I take to invoke the crash. They are repeatable and occur every time.

1 - Open GnuCash with or without an existing data file.

2 - Select File -> Import -> Import QIF ...

3 - The "Import QIF Files" popup opens and I press the "Forward" button

4 - The "Select a QIF file to Load" popup opens. I use the "Select" button to select the incorrectly structured QIF, then press the "Forward" button.

5 - The "Load QIF files" popup opens. I press the "Start" button.

6 - After I press the "Start" button, the display window on the popup shows an error message: "Line 3: File does not appear to be in QIF format: C* Read aborted". The message is accurate in that Line 3 does contain "C*".

7 - A few seconds after that, the popup and the main gnucash window "gray out" and a Windows error message popup appears. It reports "gnucash.exe has stopped working" and gives me a "Close Program" button. I press "Close Program" and GnuCash disappears.

8 - The next time I start GnuCash, the popup saying "GnuCash could not obtain the lock file ..." opens. I select "Open Anyway" and the program performs works normally.
Comment 1 Bob B 2015-07-10 20:00:01 UTC
Created attachment 307273 [details]
Actual structured QIF file

I typed the content of the file into the bug report, but this option allows me to import the actual file, so I did.
Comment 2 Geert Janssens 2017-03-17 16:51:12 UTC
Hi,

Thank you for your report. I have tried today with gnucash 2.6.15 on both Windows and linux and I'm happy to report I can no longer reproduce this crash. For reference I also installed gnucash 2.6.7 on Windows and there the crash did happen as you described.

So I'll mark this bug as fixed. Should you still be able to reproduce with gnucash 2.6.15 or more recent, feel free to reopen and provide more details on how to reproduce it.

Thanks again!
Comment 3 John Ralls 2018-06-29 23:41:52 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=752249. Please update any external references or bookmarks.