GNOME Bugzilla – Bug 367705
crash when printing check
Last modified: 2018-06-29 21:14:35 UTC
gnucash crashes when printing check on Fedora Core 6, which has guile 1.8. and it seems only crashes when printing check with amount >= 1000.00, and works fine with amount <=999.99. Backtrace: In unknown file: ?: 0* [gnc:print-check # "Payee" 1000.0 ...] In /opt/gnucash-2.0/share/gnucash/scm/printing/print-check.scm: 104: 1* (let* ((int-part #) (frac-part #) (ps #) ...) (if ps (begin # # ...))) 115: 2 (if ps (begin (if (not #) (begin # #) ...) (if (not #) (begin #) ...) ...)) 116: 3 (begin (if (not #) (begin # #) ...) (if (not #) (begin #) ...) ...) 174: 4* (let* (#) (gnc:print-session-moveto ps # #) (gnc:print-session-text ps #)) 177: 5 [gnc:print-session-text #<gw:wcp <gnc:PrintSession*> 0x8fa0b00> ... 177: 6* [number-to-words 1000.0 100] In /opt/gnucash-2.0/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}] /opt/gnucash-2.0/share/gnucash/guile-modules/gnucash/printing/number-to-words.scm:58:25: In procedure remainder in expression (remainder val (inexact->exact #)): /opt/gnucash-2.0/share/gnucash/guile-modules/gnucash/printing/number-to-words.scm:58:25: Wrong type argument in position 2: 4398046555084465/4398046511104
*** This bug has been marked as a duplicate of 352324 ***
This was not a duplicate. The bug has been fixed in subversion and the fix should appear in the 2.0.6 release.
*** Bug 434398 has been marked as a duplicate of this bug. ***
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=367705. Please update any external references or bookmarks.