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 133598 - Changing decimal places in Adv. Portfolio report causes error
Changing decimal places in Adv. Portfolio report causes error
Status: VERIFIED DUPLICATE of bug 326150
Product: GnuCash
Classification: Other
Component: Reports
1.8.x
Other other
: Normal normal
: ---
Assigned To: Chris Lyttle
Chris Lyttle
: 153019 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-02-06 05:42 UTC by winkstart
Modified: 2018-06-29 20:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description winkstart 2004-02-06 05:42:46 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.
Comment 1 Derek Atkins 2004-02-06 16:11:13 UTC
What error does it show on your terminal?
Comment 2 Derek Atkins 2004-02-07 15:26:56 UTC
waiting for user response...  please reopen bug when you answer.
Comment 3 Ryan Claycamp 2004-07-13 02:36:18 UTC
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.
Comment 4 Derek Atkins 2004-07-13 18:48:24 UTC
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
Comment 5 Derek Atkins 2004-09-19 21:09:13 UTC
*** Bug 153019 has been marked as a duplicate of this bug. ***
Comment 6 Andrew Sackville-West 2006-03-12 18:32:51 UTC
the duplicate of this bug 153019 is resolved, should thisbe closed?

A
Comment 7 Derek Atkins 2006-03-13 15:32:59 UTC
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.
Comment 8 Andrew Sackville-West 2006-03-13 17:21:24 UTC
this is a duplicate of http://bugzilla.gnome.org/show_bug.cgi?id=326150 (and maybe others) and is fixed. :)

A
Comment 9 Derek Atkins 2006-03-13 17:25:59 UTC
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 ***
Comment 10 John Ralls 2018-06-29 20:40:57 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=133598. Please update any external references or bookmarks.