GNOME Bugzilla – Bug 752249
Importing an Incorrectly Structured QIF File Crashes GnuCash
Last modified: 2018-06-29 23:41:52 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.
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.
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!
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.