GNOME Bugzilla – Bug 414682
Crash on Check Printing (over $999.99)
Last modified: 2018-06-29 21:28:48 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.
This was fixed on Trunk in r15653 on feb 25, awaiting backport.
*** This bug has been marked as a duplicate of 420220 ***
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.