My QIF file crashes GnuCash. How can I find out what line(s) it doesn't like?
Pat McGee
jpm at xorandor.com
Sat Dec 19 17:50:09 EST 2009
I tried to import a QIF file from the Mac version of Quicken 2000 into
GnuCash 2.2.9 (Mac Intel version). The druid goes through several
screens, the last one being Payees and Memos, saying that the next
screen will show me the payee and memo fields for certain
transactions. As soon as I click on the Forward button, the program
crashes.
In the Console log, I see the message I've appended below.
The qif file is about 1.4 MB. So, I'm reluctant to start making
changes without more clues as to which parts I should work on.
How can I figure out what line(s) the QIF importer doesn't like?
(If it helps, I have programmed some in LISP, but I'm not really good
at it. I'm pretty good at C and Objective-C, amongst others.)
Thanks,
Pat
--
Console log:
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] Backtrace:
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] In
unknown file:
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] ?: 0*
[qif-import:update-security-hash # # # ...]
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] In /Apps-
Local/Gnucash.app/Contents/Resources/share/gnucash/scm/qif-import/qif-
dialog-utils.scm:
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] 745: 1*
(let ((names #)) (hash-fold (lambda # #) #f ...) ...)
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] 746: 2*
[hash-fold #<procedure #f (qif-name map-entry p)> #f ...]
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] In
unknown file:
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] ?: 3*
[#<procedure #f #> "Schwab:R-Cash" # #f]
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] In /Apps-
Local/Gnucash.app/Contents/Resources/share/gnucash/scm/qif-import/qif-
dialog-utils.scm:
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] 748: 4*
(let ((security-name #)) (if (and security-name # # ...) (let # #)) #f)
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] 751: 5*
(if (and security-name # # ...) (let # #))
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] 759: 6
(let ((existing-gnc-acct #) (book #)) (if (and # #) (let # #) ...))
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] ...
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] 777: 7
(let* (# # #) (if # #) (hash-set! security-hash security-name #) ...)
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] 781: 8*
[qif-ticker-map:lookup-type #<qif-ticker-map stocks: (# # # ...)> "R-
Cash"]
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] In /Apps-
Local/Gnucash.app/Contents/Resources/share/gnucash/scm/qif-import/qif-
objects.scm:
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] 679: 9
(let (#) (for-each # #) retval)
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] 680: 10*
[for-each #<procedure #f (symbol)> (# # # # ...)]
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] In
unknown file:
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] ?: 11
(if (null? rest) (letrec ((lp #)) (lp list1)) ...)
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] ...
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] ?: 12
(begin (f (car l)) (lp (cdr l)))
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] ?: 13*
[#<procedure #f #> #]
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] In /Apps-
Local/Gnucash.app/Contents/Resources/share/gnucash/scm/qif-import/qif-
objects.scm:
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] 682: 14
(if (string=? name #) (begin # #))
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] ...
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] 685: 15
(if (string=? retval "") (set! retval #f))
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] 685: 16*
[string=? #f ""]
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] /Apps-
Local/Gnucash.app/Contents/Resources/share/gnucash/scm/qif-import/qif-
objects.scm:685:18: In procedure string=? in expression (string=?
retval ""):
12/19/09 5:37:44 PM [0x0-0x17c17c].org.gnucash.Gnucash[4867] /Apps-
Local/Gnucash.app/Contents/Resources/share/gnucash/scm/qif-import/qif-
objects.scm:685:18: Wrong type argument in position 1 (expecting
STRINGP): #f
12/19/09 5:37:44 PM com.apple.launchd[72]
([0x0-0x17c17c].org.gnucash.Gnucash[4867]) Exited with exit code: 2
12/19/09 5:37:44 PM com.apple.launchd[72]
([0x0-0x17c17c].org.gnucash.Gnucash[4867]) Exited with exit code: 2
--
"Save the Earth; it's the only planet with chocolate!"
Pat McGee, jpm at XorAndOr.com
More information about the gnucash-devel
mailing list