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 610561 - trunk r18696 crashes on start on Windows: Report installation location not correct?
trunk r18696 crashes on start on Windows: Report installation location not co...
Status: RESOLVED NOTABUG
Product: GnuCash
Classification: Other
Component: Reports
git-master
Other Windows
: Normal critical
: ---
Assigned To: Andreas Köhler
Andreas Köhler
: 610457 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-02-20 21:57 UTC by Christian Stimming
Modified: 2018-06-29 22:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Stimming 2010-02-20 21:57:49 UTC
I've built trunk r18696 with a fresh dependency build on Windows XP. It compiles and an installer is being created. When trying to start the installed program, it crashes on startup during loading of the modules. Specifically, it crashes and terminates when loading the standard-reports module, similar to the report in bug#610457. When starting gnucash-bin from the command line, the scheme backtrace below can be obtained, which finally dies with "no code for module (gnucash report account-piecharts)". However, the file account-piecharts.scm is installed into share/gnucash/guile-modules/gnucash/report/standard-reports/account-piecharts.scm, which has this additional "standard-reports" directory in the path. When moving the .scm file one directory upwards into guile-modules/gnucash/report/account-piecharts.scm, the scheme backtrace changes and now the file account-summary.scm is complained about (the second one in standard-reports.scm). Do we need to change the installation location of the account-piecharts.scm et al. files?!??

Backtrace:
In unknown file:
   ?: 18* [#<procedure #f ()>]
   ?: 19* (let ((file #)) (cond (# => #) (# => #)))
   ?: 20  [#<procedure #f #> "C:\\Programme\\gnucash\\share\\gnucash\\guile-modu
les/$
   ?: 21  [load-file #<primitive-procedure primitive-load> ...]
   ?: 22* [save-module-excursion #<procedure #f ()>]
   ?: 23  (let (# #) (dynamic-wind # thunk #))
   ?: 24  [dynamic-wind #<procedure #f ()> #<procedure #f ()> #<procedure #f ()>
]
   ?: 25* [#<procedure #f ()>]
   ?: 26* [primitive-load "C:\\Programme\\gnucash\\share\\gnucash\\guile-modules
/gnu$
In C:\Programme\gnucash\share\gnucash\guile-modules/gnucash/report/standard-repo
rts.scm:
  68: 27* (use-modules (gnucash report account-piecharts))
  68: 28  (eval-case (# #) (else #))
In unknown file:
    ...
   ?: 29  [for-each #<procedure #f (mif-args)> ((#))]
   ?: 30* [#<procedure #f (mif-args)> ((gnucash report account-piecharts))]
   ?: 31* (let ((mod-iface #)) (or mod-iface (error "no such module" mif-args))
...)
   ?: 32* [apply #<procedure resolve-interface (name . args)> (#)]
   ?: 33  [resolve-interface (gnucash report account-piecharts)]
    ...
   ?: 34  (let* (# # # #) (and # #) (if # public-i #))
   ?: 35* (and (or (not module) (not public-i)) (error "no code for module" name
))
   ?: 36  [error "no code for module" (gnucash report account-piecharts)]
    ...
   ?: 37  [scm-error misc-error #f ...]

<unnamed port>: In procedure scm-error in expression (scm-error (quote misc-erro
r) #f ...):
<unnamed port>: no code for module (gnucash report account-piecharts)
Comment 1 Christian Stimming 2010-02-20 22:15:50 UTC
*** Bug 610457 has been marked as a duplicate of this bug. ***
Comment 2 Christian Stimming 2010-02-20 22:16:46 UTC
Workaround: Copy all *.scm files from the
share/gnucash/guile-modules/gnucash/report/standard-reports/ folder one folder
upwards, into the share/gnucash/guile-modules/gnucash/report/ folder. After this, gnucash starts up normally.
Comment 3 Christian Stimming 2010-02-20 22:21:26 UTC
Oops, seems like an old version of standard-reports.scm made it into my installation and distribution. I'll have to remove the build folder before I can give any updates on the situation here.
Comment 4 Christian Stimming 2010-02-21 12:31:40 UTC
Ok, the nightly build svn-r18700 starts up fine and this crash at startup has disappeared.

Seems to be caused by old files being confused with new ones. As for bug#610457: Maybe the old gnucash installation needs to be uninstalled, then the new version to be installed.
Comment 5 John Ralls 2018-06-29 22:35:21 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=610561. Please update any external references or bookmarks.