Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 173188 - app-office/gnucash-2.0.5 crashes when trying to print a check
Summary: app-office/gnucash-2.0.5 crashes when trying to print a check
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Torsten Veller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-02 19:38 UTC by Fred Krogh
Modified: 2007-09-30 14:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fred Krogh 2007-04-02 19:38:15 UTC
Message from the crash is given below.  I'm using the following:

app-office/gnucash-2.0.5
dev-scheme/guile-1.8.1-r3
dev-libs/g-wrap-1.9.6-r3

Reproducible: Always

Actual Results:  
The error message just as it crashes:


/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




emerge --info gives

Portage 2.1.2.3 (default-linux/amd64/2006.0, gcc-4.1.2, glibc-2.5-r1, 2.6.20-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r3 x86_64 AMD Opteron(tm) Processor 242
Gentoo Base System version 1.12.9
Timestamp of tree: Mon, 02 Apr 2007 02:30:09 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=opteron -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=opteron -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://cudlug.cudenver.edu/gentoo http://gentoo.binarycompass.org"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aiglx alsa amd64 apache2 auctex audiofile bash-completion bcmath berkdb bitmap-fonts blas bonobo bzip2 calendar cdrom clamav cli colordiff cracklib crypt ctype cups dbus debugger deprecated dga discouraged divx-linux dri dvd dvdr dvdread emacs emboss emul-linux86 encode esd fam fastcgi fbcon firefox flac foomaticdb fortran ftp gif glut gnome gphoto2 gpm gstreamer gtk gtk2 iconv imlib ipv6 isdnlog java jpeg kde kerberos lapack latin1 leim lesstif libclamav logrotate lzw lzw-tiff mbox mcal midi mime mng mouse mozcalendar mozilla mp3 mpeg mpi mysql mysqli ncurses nls nocd nosendmail nptl nptlonly nsplugin nvidia offensive openal opengl osc oscar pam pcre pdf perl png pop pop3d portaudio ppds pppd preview-latex python qt3 qt4 quicktime readline reflection regex replytolist rtc samba sasl sdl session sharedmem sockets source sox speex spell spl ssl svg symlink tcltk tcpd tetex thunderbird tiff truetype truetype-fonts type1-fonts usb vhosts vorbis xine xmail xorg xpm xv xvid" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Fred Krogh 2007-04-09 18:09:46 UTC
I have no idea what has changed, but I just printed a check with no problem.
Comment 2 Fred Krogh 2007-04-12 18:54:45 UTC
Well I just tried printing a check again, and got this

offset is 0.0
translate by 0.0 541.4086
Backtrace:
In unknown file:
   ?:  0* [gnc:print-check # "Fire Insurance Exchange" 1210.58 ...]
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*> 0x1054f00> ...
 173:  6*  [number-to-words 1210.58 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 1210]
  14: 11    (let (# # # #) (cond # # # ...))
      ...
  52: 12    (let* (# # #) (if # #) (if # #) ...)
  58: 13*   [remainder 1210 {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

=====

So it looks like there is still a problem.
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2007-07-18 20:12:14 UTC
reassigning to new maintainer
Comment 4 Fred Krogh 2007-09-29 22:16:19 UTC
Just had the same problem.  I am now on guile-1.8.2.

I also tried to emerge gnucash-2.2.1, but got (emerge --info below)

/usr/lib64/gnucash/libgw-engine.so.0: undefined reference to `gw_wrapset_add_type'
collect2: ld returned 1 exit status
make[4]: *** [gnucash-bin] Error 1
make[4]: Leaving directory `/var/tmp/portage/app-office/gnucash-2.2.1/work/gnucash-2.2.1/src/bin'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-office/gnucash-2.2.1/work/gnucash-2.2.1/src/bin'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-office/gnucash-2.2.1/work/gnucash-2.2.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-office/gnucash-2.2.1/work/gnucash-2.2.1'
make: *** [all] Error 2
 * 
 * ERROR: app-office/gnucash-2.2.1 failed.
 * Call stack:
 *              ebuild.sh, line 1684:  Called dyn_compile
 *              ebuild.sh, line 1020:  Called qa_call 'src_compile'
 *              ebuild.sh, line   44:  Called src_compile
 *   gnucash-2.2.1.ebuild, line   89:  Called die
 * The specific snippet of code:
 *      emake -j1 || die "emake failed"
 *  The die message:
 *   emake failed

============= emerge --info =========
Portage 2.1.3.11 (default-linux/amd64/2006.0, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r7 x86_64 AMD Opteron(tm) Processor 242
Timestamp of tree: Sat, 29 Sep 2007 20:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18
sys-devel/gcc-config: 1.4.0-r2
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=opteron -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=opteron -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://cudlug.cudenver.edu/gentoo http://gentoo.binarycompass.org"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aiglx alsa amd64 apache2 auctex audiofile bash-completion bcmath berkdb bitmap-fonts blas bonobo bzip2 calendar cdrom clamav clamd cli colordiff cracklib crypt ctype cups dbus debugger deprecated dga discouraged divx-linux dri dvd dvdr dvdread emacs emboss emul-linux86 encode fam fastcgi fbcon firefox flac foomaticdb fortran ftp gif glut gnome gphoto2 gpm gstreamer gtk gtk2 hal iconv imagemagick imlib ipv6 isdnlog java javascript jpeg kde kerberos latin1 leim lesstif libclamav libnotify logrotate lzw lzw-tiff mad maildir mbox mcal midi mime mng mouse mozcalendar mozilla mp3 mpeg mpeg2 mpi mudflap mysql mysqli nat ncurses nls nocd nosendmail nptl nptlonly nsplugin nvidia offensive openal opengl openmp osc oscar pam pcre pdf perl png pop pop3d portaudio posix ppds pppd preview-latex python qt3 qt4 quicktime readline reflection regex replytolist rtc samba sasl sdl session sharedmem sockets sound source sox speex spell spl ssl svg symlink tcltk tcpd tetex thunderbird tiff truetype truetype-fonts type1-fonts usb vhosts vorbis xcomposite xine xmail xorg xpm xv xvid" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


 
Comment 5 Torsten Veller (RETIRED) gentoo-dev 2007-09-30 10:20:24 UTC
(In reply to comment #4)
> Just had the same problem.  I am now on guile-1.8.2.

I have just upgraded to guile-1.8.2 too. No problem here.

> I also tried to emerge gnucash-2.2.1, but got (emerge --info below)

> /usr/lib64/gnucash/libgw-engine.so.0: undefined reference to
> `gw_wrapset_add_type'
> collect2: ld returned 1 exit status
> make[4]: *** [gnucash-bin] Error 1
> make[4]: Leaving directory
> `/var/tmp/portage/app-office/gnucash-2.2.1/work/gnucash-2.2.1/src/bin'

First:
Can you please paste some lines above?

Second:
I think you have gnucash-2.0.5 installed? Can you uninstall it (better `quickpkg gnucash` first so you can reinstall it easily) and install gnucash-2.2.1. I think it works then.
Comment 6 Fred Krogh 2007-09-30 14:17:23 UTC
(In reply to comment #5)
> (In reply to comment #4)
>
> First:
> Can you please paste some lines above?

Not clear on what you want pasted.

> 
> Second:
> I think you have gnucash-2.0.5 installed? Can you uninstall it (better
> `quickpkg gnucash` first so you can reinstall it easily) and install
> gnucash-2.2.1. I think it works then.

Many thanks, for this.  I had not uninstalled gnucash-2.0.5.  Did this and the emerge of 2.2.1 went through with no problem. Check printing now works, although I had to change my custom format.  Gnucash-2.0.5 had the y axis messed up; now all is rational.