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 396727 - Modifying "Maximum Slices" in Expense Report Piechart generates an error
Modifying "Maximum Slices" in Expense Report Piechart generates an error
Status: VERIFIED DUPLICATE of bug 347462
Product: GnuCash
Classification: Other
Component: Reports
2.0.x
Other All
: Normal normal
: ---
Assigned To: Chris Lyttle
Chris Lyttle
Depends on:
Blocks:
 
 
Reported: 2007-01-15 02:53 UTC by Wade Berrier
Modified: 2018-06-29 21:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
report dialog screenshot (22.44 KB, image/png)
2007-01-15 21:01 UTC, Wade Berrier
Details

Description Wade Berrier 2007-01-15 02:53:20 UTC
Please describe the problem:
"Report Error" is generated when changing "Maximum Slices" in an Expense Piechart.

Steps to reproduce:
Generate the following report:

Reports->Income & Expense->Expense Piechart

Click options, display tab, and then change Maximum Slices to a number that is higher than the total number of accounts that will be used in the report.

Actual results:
I get this text:

Report error
An error occurred while running the report.


Expected results:
An expense piechart with an updated number of slices.

Does this happen every time?
Yes.

Other information:
The console window has the following output:

In unknown file:
   ?: 18* [#<procedure #f ()>]
In /opt/gnome/share/gnucash/guile-modules/gnucash/main.scm:
 162: 19* [lazy-catch #t #<procedure #f ()> #<procedure dumper (key . args)>]
In unknown file:
   ?: 20* [#<procedure #f ()>]
In /opt/gnome/share/gnucash/guile-modules/gnucash/main.scm:
 163: 21* [apply #<procedure #f ()> ()]
In unknown file:
   ?: 22  [#<procedure #f ()>]
In /opt/gnome/share/gnucash/scm/report.scm:
    ...
 444: 23  (set! html (gnc:report-render-html report #t))
 444: 24* [gnc:report-render-html # #t]
 409: 25  (if (and (not #) (gnc:report-ctext report)) (gnc:report-ctext report) ...)
 417: 26  (let ((template #) (doc #f)) (set! doc (if template # #f)) doc)
 420: 27* (set! doc (if template (let* # # # ...) #f))
 420: 28* (if template (let* # # # ...) #f)
 421: 29  (let* (# # # ...) (gnc:html-document-set-style-sheet! doc stylesheet) ...)
 423: 30* [#<procedure #f #> #]
In /opt/gnome/share/gnucash/guile-modules/gnucash/report/account-piecharts.scm:
 475: 31  [piechart-renderer # "Expense Accounts" # ...]
In unknown file:
    ...
   ?: 32  (letrec (# # # #) (if # # #) (gnc:report-finished) ...)
In /opt/gnome/share/gnucash/guile-modules/gnucash/report/account-piecharts.scm:
 304: 33* (if (not #) (begin # # # ...) (gnc:html-document-add-object! document #))
 305: 34  (begin (set! work-to-do #) (set! combined #) (if # #) ...)
 330: 35* (if (> (length combined) max-slices) (let* (# # #) (set! combined #) ...))
 331: 36  (let* ((start #) (finish #) (sum #)) (set! combined (append start #)) ...)
 331: 37* [list-head ((2731.61 #) (988.32 #) (910.13 #) (544.2 #) ...) 13.0]
/opt/gnome/share/gnucash/guile-modules/gnucash/report/account-piecharts.scm:331:31: In procedure list-head in expression (take combined (- max-slices 1)):
/opt/gnome/share/gnucash/guile-modules/gnucash/report/account-piecharts.scm:331:31: Wrong type (expecting exact integer): 13.0
In unknown file:
   ?: 15* [#<procedure #f ()>]
In /opt/gnome/share/gnucash/guile-modules/gnucash/main.scm:
 162: 16* [lazy-catch #t #<procedure #f ()> #<procedure dumper (key . args)>]
In unknown file:
   ?: 17* [#<procedure #f ()>]
In /opt/gnome/share/gnucash/guile-modules/gnucash/main.scm:
 163: 18* [apply #<procedure #f ()> ()]
In unknown file:
   ?: 19  [#<procedure #f ()>]
In /opt/gnome/share/gnucash/scm/report.scm:
    ...
 444: 20  (set! html (gnc:report-render-html report #t))
 444: 21* [gnc:report-render-html # #t]
 409: 22  (if (and (not #) (gnc:report-ctext report)) (gnc:report-ctext report) ...)
 417: 23  (let ((template #) (doc #f)) (set! doc (if template # #f)) doc)
 420: 24* (set! doc (if template (let* # # # ...) #f))
 420: 25* (if template (let* # # # ...) #f)
 421: 26  (let* (# # # ...) (gnc:html-document-set-style-sheet! doc stylesheet) ...)
 423: 27* [#<procedure #f #> #]
In /opt/gnome/share/gnucash/guile-modules/gnucash/report/account-piecharts.scm:
 475: 28  [piechart-renderer # "Expense Accounts" # ...]
In unknown file:
    ...
   ?: 29  (letrec (# # # #) (if # # #) (gnc:report-finished) ...)
In /opt/gnome/share/gnucash/guile-modules/gnucash/report/account-piecharts.scm:
 304: 30* (if (not #) (begin # # # ...) (gnc:html-document-add-object! document #))
 305: 31  (begin (set! work-to-do #) (set! combined #) (if # #) ...)
 330: 32* (if (> (length combined) max-slices) (let* (# # #) (set! combined #) ...))
 331: 33  (let* ((start #) (finish #) (sum #)) (set! combined (append start #)) ...)
 331: 34* [list-head ((2731.61 #) (988.32 #) (910.13 #) (544.2 #) ...) 13.0]
/opt/gnome/share/gnucash/guile-modules/gnucash/report/account-piecharts.scm:331:31: In procedure list-head in expression (take combined (- max-slices 1)):
/opt/gnome/share/gnucash/guile-modules/gnucash/report/account-piecharts.scm:331:31: Wrong type (expecting exact integer): 13.0
Comment 1 Christian Stimming 2007-01-15 12:45:43 UTC
Thanks for reporting this. Hm... this option box, was this only a text box to enter the number, or had this also buttons for increasing and decreasing? Did you either enter the text from the keyboard or did you press the increase/decrease buttons? Also, which version of guile do you have installed?
Comment 2 Wade Berrier 2007-01-15 21:00:27 UTC
I'll attach a screenshot of the options dialog.

Guile version: guile-1.8.1-24 (distro is opensuse 10.2)

I'm also noticing that if the number is high enough so that an 'other' category is not needed, the report generates fine.  But, for any value lower than that, the error is generated.

I used the up and down arrows to select the number.  Manually typing it in doesn't help.
Comment 3 Wade Berrier 2007-01-15 21:01:26 UTC
Created attachment 80338 [details]
report dialog screenshot
Comment 4 Andreas Köhler 2007-01-16 09:32:25 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

Fixed in 2.0.3.


*** This bug has been marked as a duplicate of 347462 ***
Comment 5 John Ralls 2018-06-29 21:22:43 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=396727. Please update any external references or bookmarks.