GNOME Bugzilla – Bug 434398
crashes on printing check for amount over $1000
Last modified: 2018-06-29 21:34:45 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
this works fine for me in 2.1.1
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 ***
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.