GNOME Bugzilla – Bug 610561
trunk r18696 crashes on start on Windows: Report installation location not correct?
Last modified: 2018-06-29 22:35:21 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)
*** Bug 610457 has been marked as a duplicate of this bug. ***
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.
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.
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.
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.