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 414682 - Crash on Check Printing (over $999.99)
Crash on Check Printing (over $999.99)
Status: VERIFIED DUPLICATE of bug 420220
Product: GnuCash
Classification: Other
Component: General
2.0.x
Other All
: Normal critical
: ---
Assigned To: Derek Atkins
Chris Lyttle
Depends on:
Blocks: 347575
 
 
Reported: 2007-03-04 20:01 UTC by SteveM
Modified: 2018-06-29 21:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description SteveM 2007-03-04 20:01:47 UTC
Steps to reproduce:
1. Select a check to print, which is over $999.99
2. Select Print check
3. Select Print and OK


Stack trace:
offset is 540.0
Backtrace:
In unknown file:
   ?:  0* [gnc:print-check # "Bank of America" 1092.77 ...]
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*> 0x9876290> ...
 173:  6*  [number-to-words 1092.77 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 1092]
  14: 11    (let (# # # #) (cond # # # ...))
      ...
  52: 12    (let* (# # #) (if # #) (if # #) ...)
  58: 13*   [remainder 1092 {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


Other information:
This doesn't seem to crash for checks normally.  I've seen a post on the web about this, but didn't see a filed bug report.  It has occurred in 2.0.4 and 2.0.3, as well.
Comment 1 David Hampton 2007-03-25 03:55:23 UTC
This was fixed on Trunk in r15653 on feb 25, awaiting backport.
Comment 2 Christian Stimming 2007-03-27 08:30:06 UTC

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