GNOME Bugzilla – Bug 133598
Changing decimal places in Adv. Portfolio report causes error
Last modified: 2018-06-29 20:40:57 UTC
On 1.8.8: Changing the number of decimal places from the default of 2 to anything else causes an error on the report: An error occurred while running the report. Setting it back to 2 does *not* clear the error. The report must be closed and a new one generated.
What error does it show on your terminal?
waiting for user response... please reopen bug when you answer.
I saw the same error when I upgraded from 1.8.7 to 1.8.9. I had an advanced portfolio report as part of the always opened reports. When I started 1.8.9 for the first time I had the: An error occurred while running the report. For me as well, changing the decimal place didn't fix it. Closing the report and reopening it did. However, it I changed from the default setting of 2 to the required 4 I got the error. Changing back to 2 didn't fix it as the first person noted. Per Derek's request, I ran the program from a command line and think I captured the relevant pieces: In unknown file: ?: 12* [#<procedure #f ()>] In /usr/share/gnucash/guile-modules/gnucash/main.scm: 248: 13* [lazy-catch #t #<procedure #f ()> #<procedure dumper (key . args)>] In unknown file: ?: 14* [#<procedure #f ()>] In /usr/share/gnucash/guile-modules/gnucash/main.scm: 249: 15* [apply #<procedure #f ()> ()] In unknown file: ?: 16 [#<procedure #f ()>] In /usr/share/gnucash/scm/report.scm: ... 389: 17 (set! html (gnc:report-render-html report #t)) 389: 18* [gnc:report-render-html # #t] 357: 19 (if (and # #) (begin #) (let # # doc)) 364: 20 (let ((template #) (doc #f)) (set! doc (if template # #f)) doc) 367: 21* (set! doc (if template (let* # # # ...) #f)) 367: 22* (if template (let* # # # ...) #f) 368: 23 (let* (# # # ...) (gnc:html-document-set-style-sheet! doc stylesheet) ...) 370: 24* [advanced-portfolio-renderer #] In /usr/share/gnucash/guile-modules/gnucash/report/advanced-portfolio.scm: 112: 25 (let (# #) (letrec # # #)) ... 275: 26 (let (# # # ...) (gnc:html-document-set-title! document #) ...) 300: 27* (if (not #) (let* # # # ...) (gnc:html-document-add-object! document # )) 302: 28 (let* (# # #) (gnc:html-table-set-col-headers! table #) ...) 331: 29* [table-add-stock-rows # # # ...] 134: 30 (let (#) (define # #) (set! work-to-do #) ...) 135: 31* [gnc:share-print-info-places 4.0] /usr/share/gnucash/guile-modules/gnucash/report/advanced-portfolio.scm:135:11: I n procedure gh_scm2long in expression (gnc:share-print-info-places (get-option g nc:pagename-general optname-shares-digits)): /usr/share/gnucash/guile-modules/gnucash/report/advanced-portfolio.scm:135:11: W rong type (inexact) argument in position 1: 4.0 Running a new report causes no output to the terminal. Changing the decimal place causes the above output. Changing back to 2 places causes the same output with 2.0 instead of 4.0.
Thanks. This tells me it's another of the guile-1.6 double<->int issues. Now I need to remember how we fixed this in other places. Maybe David remembers? -derek
*** Bug 153019 has been marked as a duplicate of this bug. ***
the duplicate of this bug 153019 is resolved, should thisbe closed? A
Um, it was closed as a duplicate of this one. No, this one should not be closed until we can verify that this bug has actually been fixed.
this is a duplicate of http://bugzilla.gnome.org/show_bug.cgi?id=326150 (and maybe others) and is fixed. :) A
Ahh, okay, yes, it can be closed as a duplicate of bug #326150 PS: it is generally considered "bad form" to refer to bugs by URL. Instead just refer to them by number and bugzilla will create the links magically. *** This bug has been marked as a duplicate of 326150 ***
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=133598. Please update any external references or bookmarks.