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 598213 - Selecting "Account Report" causes gnucash to crash
Selecting "Account Report" causes gnucash to crash
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Reports
2.3.x
Other Mac OS
: Normal critical
: ---
Assigned To: Andreas Köhler
Andreas Köhler
: 593906 602440 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-10-12 22:02 UTC by Guillaume Lessard
Modified: 2018-06-29 22:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Guillaume Lessard 2009-10-12 22:02:42 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.
Comment 1 Christian Stimming 2009-10-13 15:47:00 UTC
Unbound variable: gnc:register-report-create-internal
Comment 2 John Ralls 2009-11-10 19:04:13 UTC
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.
Comment 3 John Ralls 2009-11-15 22:07:41 UTC
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.
Comment 4 Phil Longstaff 2009-11-16 01:06:13 UTC
r18414
Comment 5 Phil Longstaff 2009-11-16 01:49:57 UTC
*** Bug 593906 has been marked as a duplicate of this bug. ***
Comment 6 Phil Longstaff 2009-11-17 03:02:58 UTC
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.
Comment 7 Christian Stimming 2009-11-25 08:15:48 UTC
*** Bug 602440 has been marked as a duplicate of this bug. ***
Comment 8 Christian Stimming 2009-11-25 08:19:55 UTC
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
Comment 9 John Ralls 2018-06-29 22:29:41 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=598213. Please update any external references or bookmarks.