GNOME Bugzilla – Bug 651982
Wrong type argument in position 1: #<undefined>
Last modified: 2018-06-29 22:58:46 UTC
When starting gnucash, pointed at my datafile, I get this printed on stdout: {{{ gnc.bin-Message: main: binreloc relocation support was disabled at configure time. Found Finance::Quote version 1.17 In /usr/share/gnucash/scm/report.scm: 482: 13 (let ((template #) (doc #f)) (set! doc (if template # #f)) doc) 485: 14* (set! doc (if template (let* # # # ...) #f)) 485: 15* (if template (let* # # # ...) #f) 486: 16 (let* (# # # ...) (gnc:html-document-set-style-sheet! doc stylesheet) ...) 488: 17* [#<procedure #f #> #] In /usr/share/gnucash/guile-modules/gnucash/report/net-barchart.scm: 426: 18 [net-renderer # #f] ... 152: 19 (let* (# # # # ...) (letrec # # # ...)) 188: 20* [gnc:decompose-accountlist (# # # # ...)] In /usr/share/gnucash/scm/report-utilities.scm: 82: 21 [map #<procedure #f (x)> ((2 2 0 ...) (4 4 12 ...) (10 10) ...)] In unknown file: ... ?: 22 (let ((ret (list #))) (letrec ((lp #)) (lp (cdr ls) ret))) ?: 23* [list ... ?: 24* [#<procedure #f (x)> (2 2 0 1 14 15 16 11 5 ...)] In /usr/share/gnucash/scm/report-utilities.scm: 82: 25 [cons 2 ... 84: 26* [gnc:filter-accountlist-type (2 0 1 14 ...) (# # # # ...)] 72: 27 [filter #<procedure #f (a)> (# # # # ...)] In unknown file: ... ?: 28 [filiter #<procedure #f (a)> (# # # # ...) ... ?: 29* (cond ((pred (car rest)) (cons (car rest) result)) (#t result)) ?: 30* [#<procedure #f (a)> #<undefined>] In /usr/share/gnucash/scm/report-utilities.scm: 73: 31 [member ... 73: 32* [xaccAccountGetType #<undefined>] /usr/share/gnucash/scm/report-utilities.scm:73:21: In procedure xaccAccountGetType in expression (xaccAccountGetType a): /usr/share/gnucash/scm/report-utilities.scm:73:21: Wrong type argument in position 1: #<undefined> }}} This is gnucash 2.2.9 built from r17949M on 2010-03-23
Oops, after closing the file, I get the behaviour documented in bug #651981 https://bugzilla.gnome.org/show_bug.cgi?id=651981 So I'm guessing this error message is the cause for the latter...
this becomes critical, given the consequences (can't open the file again)
Removing ~/.gnucash/books/budget.gnucash fixed this issue for me, on both machines. Can't tell if that book was there on the second machine at time of opening the file for the first time. But I do see the file getting back afterwards (when everything works). It may have to do with the fact that I recently changed some account names and hierarchy (parents).
*** This bug has been marked as a duplicate of bug 651981 ***
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=651982. Please update any external references or bookmarks.