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 759919 - QIF imports crash GnuCash
QIF imports crash GnuCash
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Import - QIF
2.6.10
Other Windows
: Normal major
: ---
Assigned To: gnucash-import-maint
gnucash-import-maint
Depends on:
Blocks:
 
 
Reported: 2015-12-28 05:12 UTC by David Carlson
Modified: 2018-06-29 23:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
QIF file (54 bytes, text/plain)
2015-12-28 05:12 UTC, David Carlson
Details

Description David Carlson 2015-12-28 05:12:17 UTC
Created attachment 317949 [details]
QIF file

Importing a trivial QIF file into release 2.6.10 for windows causes GnuCash to crash at the step where it attempts to create a temporary account name based on the source filename.  Release 2.6.6 for windows is able to import the same QIF file.  The last trace file consists of :  * 18:33:09  WARN <gnc.gui> [PrintAmountInternal()] Bad numeric: GNC_ERROR_ARG.
Comment 1 John Ralls 2015-12-28 05:54:13 UTC
I think it's probably crashing before that, while trying to parse the file. Take a look at bug 756335, comment 10. Reverse that patch and see if it fixes the problem.
Comment 2 David Carlson 2015-12-28 13:59:40 UTC
If it is not easy for a non-developer to learn how to reverse a patch, I will wait for a nightly build to try.
Comment 3 David Carlson 2015-12-29 16:24:43 UTC
Changing that line in that file has allowed GnuCash 2.6.10 to import my test file and at least one other QIF file that Quicken 2005(?) made in 2007.  GnuCash did not crash.
Comment 4 Jethro Steinman 2016-01-02 15:12:12 UTC
Looks like I've hit the same bug. I'm a new user trying to import some QIF files. I'm not a developer. I'm trying to run GnuCash 2.6.10 on Microsoft Windows [Version 10.0.10586]. My objective is to use GnuCash as an alternative to the old Quicken for Windows 3.1. which can't be run on Windows 10, unlike Windows XP.

What I see is this.

Select a simple QIF file (not as simple as the one attached by David Carlson above.)
Do "Start" at screen "Load QIF Files".
Do "Forward" at screen "QIF files you have loaded".
Do "Forward" at screen "Accounts and stock holdings".
GnuCash disappears.
No sign of application error in Windows event logs.

From David Carlson's comments above it sounds as though there may be a work-around by modifying a file. Is that a QIF file modification?
Comment 5 John Ralls 2016-01-02 16:35:43 UTC
No, it's a scheme programming language file inside GnuCash. Much easier for you to install the latest nightly maint build from http://code.gnucash.org/builds/win32/maint/ which includes the fix for this bug.
Comment 6 Jonian 2016-01-10 13:09:26 UTC
Thank you for the fix John.

I also had a problem with the QIF import crashing. 

After attempting to load a QIF file (i had generated from CSV using a Perl script) Gnucash simply crashed. On my other computer (which ran 5.6.9) the loading of the file failed with 'Transaction amount: Unrecognized or inconsistent format.'.

After I fixed the transaction amount problem (The bank had put spaces in the amount, which my script didn't anticipate) the QIF file loaded fine on 5.6.9 but 5.6.10 still crashed.

After installing the latest nightly build at
http://code.gnucash.org/builds/win32/maint/gnucash-2.6.10-2016-01-10-git-abeb07b+-setup.exe Gnucash now mimics the behaviour of 5.6.9. It fails with 'Transaction amount: Unrecognized or inconsistent format.' with the incorrect QIF file, and it loads the correct QIF file successfully.
Comment 7 John Ralls 2016-06-23 22:11:02 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Once that release is available, you may want to check for a software upgrade provided by your Linux distribution.
Comment 8 John Ralls 2018-06-29 23:45:23 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=759919. Please update any external references or bookmarks.