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 434398 - crashes on printing check for amount over $1000
crashes on printing check for amount over $1000
Status: VERIFIED DUPLICATE of bug 367705
Product: GnuCash
Classification: Other
Component: Check Printing
2.0.x
Other All
: Normal normal
: ---
Assigned To: David Hampton
Depends on:
Blocks:
 
 
Reported: 2007-04-29 17:02 UTC by David P. Riedel
Modified: 2018-06-29 21:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David P. Riedel 2007-04-29 17:02:00 UTC
When I try to print a check, either to printer, postscript file, or print preview, and the check amount is greater than or equal to $1000.00, gnucash crashes.  I can print a check for $900. with no problems.

I am running on a clean install of Mandriva 2007.1 spring.


attached is the trace from gnucash.


offset is 540.0
Backtrace:
In unknown file:
   ?:  0* [gnc:print-check # "test" 1000.0 ...]
In /usr/share/gnucash/scm/printing/print-check.scm:
 100:  1* (let* ((int-part #) (frac-part #) (ps #) ...) (if ps (begin # # ...)))
 111:  2  (if ps (begin (if (not #) (begin # #) ...) (if (not #) (begin #) ...) ...))
 112:  3  (begin (if (not #) (begin # #) ...) (if (not #) (begin #) ...) ...)
 170:  4* (let* (#) (gnc:print-session-moveto ps # #) (gnc:print-session-text ps #))
 173:  5  [gnc:print-session-text #<gw:wcp <gnc:PrintSession*> 0x93a26b8> ...
 173:  6*  [number-to-words 1000.0 100]
In /usr/share/gnucash/guile-modules/gnucash/printing/number-to-words.scm:
  89:  7   (let* (# # # ...) (set! result-string #) ...)
  99:  8*  (set! result-string (string-append # " and " #))
 100:  9*  [string-append ...
 100: 10*   [integer-to-words 1000]
  14: 11    (let (# # # #) (cond # # # ...))
      ...
  52: 12    (let* (# # #) (if # #) (if # #) ...)
  58: 13*   [remainder 1000 {4398046555084465/4398046511104}]

/usr/share/gnucash/guile-modules/gnucash/printing/number-to-words.scm:58:25: In procedure remainder in expression (remainder val (inexact->exact #)):
/usr/share/gnucash/guile-modules/gnucash/printing/number-to-words.scm:58:25: Wrong type argument in position 2: 4398046555084465/4398046511104
Comment 1 Zach Sadecki 2007-04-29 17:27:39 UTC
this works fine for me in 2.1.1
Comment 2 Andreas Köhler 2007-04-29 18:32:43 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.


*** This bug has been marked as a duplicate of 367705 ***
Comment 3 John Ralls 2018-06-29 21:34:45 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=434398. Please update any external references or bookmarks.