GNOME Bugzilla – Bug 598213
Selecting "Account Report" causes gnucash to crash
Last modified: 2018-06-29 22:29:41 UTC
While looking at an account register, selecting "Account Report" or "Account Transaction Report" from the "Reports" menu results in immediate crash of gnucash. The system log then contains these line (excuse the system-specific portion) Oct 12 15:54:01 Milestones [0x0-0x540540].org.gnucash.Gnucash[21189]: Found Finance::Quote version 1.16 Oct 12 15:54:01 Milestones [0x0-0x540540].org.gnucash.Gnucash[21189]: Backtrace: Oct 12 15:54:01 Milestones [0x0-0x540540].org.gnucash.Gnucash[21189]: In unknown file: Oct 12 15:54:01 Milestones [0x0-0x540540].org.gnucash.Gnucash[21189]: ?: 0* [gnc:register-report-create #<swig-pointer Account * 4864ac0> #f ...] Oct 12 15:54:01 Milestones [0x0-0x540540].org.gnucash.Gnucash[21189]: In /Volumes/Paraphernalia/Applications/Productivity/Gnucash.app/Contents/Resources/share/gnucash/guile-modules/gnucash/report/standard-reports.scm: Oct 12 15:54:01 Milestones [0x0-0x540540].org.gnucash.Gnucash[21189]: 165: 1* (let* (# #) (gnc:debug "create-fcn: " create-fcn) (if create-fcn # #)) Oct 12 15:54:01 Milestones [0x0-0x540540].org.gnucash.Gnucash[21189]: 168: 2 (if create-fcn (create-fcn account split ...) ...) Oct 12 15:54:01 Milestones [0x0-0x540540].org.gnucash.Gnucash[21189]: 171: 3 (gnc:register-report-create-internal #f query ...) Oct 12 15:54:01 Milestones [0x0-0x540540].org.gnucash.Gnucash[21189]: /Volumes/Paraphernalia/Applications/Productivity/Gnucash.app/Contents/Resources/share/gnucash/guile-modules/gnucash/report/standard-reports.scm:171:9: In expression (gnc:register-report-create-internal #f query ...): Oct 12 15:54:01 Milestones [0x0-0x540540].org.gnucash.Gnucash[21189]: /Volumes/Paraphernalia/Applications/Productivity/Gnucash.app/Contents/Resources/share/gnucash/guile-modules/gnucash/report/standard-reports.scm:171:9: Unbound variable: gnc:register-report-create-internal I am using John Ralls's Mac OS X build. I'm unsure whether it's an issue with that build or with Gnucash 2.3.7 in general.
Unbound variable: gnc:register-report-create-internal
I don't know enough scheme to tell if this is the problem, but the offending line in standard-reports.scm is: (gnc:register-report-create-internal #f query journal? double? title debit-string credit-string)))) That "#f" looks strange to me.
OK, I've figured out what's wrong, and can make it work. For some reason the new module logic in standard-reports.scm isn't working. Index: standard-reports.scm =================================================================== --- standard-reports.scm (revision 18412) +++ standard-reports.scm (working copy) @@ -86,7 +86,7 @@ ;(use-modules (gnucash report income-statement)) ;(use-modules (gnucash report portfolio)) ;(use-modules (gnucash report price-scatter)) -;(use-modules (gnucash report register)) +(use-modules (gnucash report standard-reports register)) ;(use-modules (gnucash report trial-balance)) ;(use-modules (gnucash report transaction)) fixes this particular problem, but I doubt that it's the right solution. This isn't an OSX problem, BTW; it crashes in Debian as well, and I tested this change there. FWIW, when I use `gnucash --debug --extra`, the report module loading messages at lines 152-154 don't appear in gnucash.trace.
r18414
*** Bug 593906 has been marked as a duplicate of this bug. ***
Hmmm... This didn't fix it. The problem is the module definition lines. They need to be e.g. "(define-module (gnucash report standard-reports register))" which is what is on my linux system and which is in the source. Instead, when I install the latest win32 build, I see "(define-module (gnucash report register))". I think it's a win32 build problem.
*** Bug 602440 has been marked as a duplicate of this bug. ***
For the record Re comment#6: Indeed the updated scheme files of r18414 didn't get into the build, inst, and distribution binary in the win32 build. This is caused by the win32 build system where the scheme files cannot be symlinked into the build directory but instead they have to be copied. For whatever reason they didn't get copied after the file change. This was resolved by manually deleting the old build directory, see http://lists.gnucash.org/pipermail/gnucash-devel/2009-November/026730.html
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=598213. Please update any external references or bookmarks.