gnucash crash when printing

Bug #82194 reported by digger vermont
20
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnucash (Ubuntu)
Fix Released
High
MOTU

Bug Description

Binary package hint: gnucash

Trying to print from Gnucash causes a crash.

Happened with trying to print an invoice and a customer report.

This happens when printing to a pdf, postscript, or print preview. Haven't tried straight to a printer.

ProblemType: Crash
Date: Mon Jan 29 16:18:34 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/gnucash-bin
Package: gnucash 2.0.2-3ubuntu1
ProcCmdline: gnucash bin
ProcCwd: /home/digger
ProcEnviron:
 LANGUAGE=en_US:en_GB:en
 PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
Signal: 11
SourcePackage: gnucash
StacktraceTop:
 gtk_page_setup_get_left_margin ()
 ?? () from /usr/lib/libgtkhtml-3.8.so.15
 html_printer_get_page_width ()
 ?? () from /usr/lib/libgtkhtml-3.8.so.15
 html_painter_get_page_width ()
Uname: Linux myrna 2.6.20-5-powerpc-smp #2 SMP Sat Jan 6 10:07:10 UTC 2007 ppc GNU/Linux
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev pulse-rt scanner video

Revision history for this message
digger vermont (digver) wrote : Dependencies.txt
Revision history for this message
digger vermont (digver) wrote : Disassembly.txt
Revision history for this message
digger vermont (digver) wrote : ProcMaps.txt
Revision history for this message
digger vermont (digver) wrote : ProcStatus.txt
Revision history for this message
digger vermont (digver) wrote : Registers.txt
Revision history for this message
digger vermont (digver) wrote : Stacktrace.txt
Revision history for this message
digger vermont (digver) wrote : ThreadStacktrace.txt
Revision history for this message
digger vermont (digver) wrote :

Looking at the Gnucash source it looks to me like it calls the function gtk_html_print in /usr/include/libgtkhtml-3.8/gtkhtml/gtkhtml.h. That function is missing from libgtkhtml3.8-dev , version 3.13.91-0ubuntu1.

I looked at the changes to gtkhtml.h at http://svn.gnome.org/viewcvs/gtkhtml/trunk/src/ and it looks like that function gtk_html_print has recently been removed.

Should libgtkhtml3.8 be reverted to a earlier version if this version of Gnucash is going to be used or is the ball in Gnucash's court?

digger

Revision history for this message
Michael B. Trausch (mtrausch) wrote :

My system did not (for some unknown reason) generate a dump, but I am having the same problem. I am trying to print a balance sheet in GnuCash on Feisty, and when I click “Print” in the print dialog after choosing an output device, it crashes right away.

I can (sort of) work around it by pasting the resulting HTML table into OpenOffice.org and printing that, but that is dang inconvenient. :-)

The packages that I have are:
ii gnucash 2.0.2-3ubuntu1 A personal finance tracking program
ii gtkhtml3.8 3.13.91-0ubunt HTML rendering/editing library - bonobo comp
ii libgtkhtml2-0 2.11.0+svn2006 HTML rendering/editing library - runtime fil
ii libgtkhtml3.8- 3.13.91-0ubunt HTML rendering/editing library - runtime fil

Additional information can be supplied, providing that I can get it. It seems that the crash handler does not always go off when a program dies…

Revision history for this message
C de-Avillez (hggdh2) wrote :
Download full text (3.4 KiB)

Confirmed. gnucash dies very dead, without kicking apport.

I ran it under gdb, and this is the output I got (no time to do more, I am late, I am late, I am awfully late)

hggdh@xango:~$ ./gnucash
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/gnucash-bin
[Thread debugging using libthread_db enabled]
[New Thread 47841034161040 (LWP 22824)]
gnucash: [M] "Found Finance::Quote version ""1.12"
[New Thread 1082132800 (LWP 22837)]
[New Thread 1090525504 (LWP 22838)]
[New Thread 1098918208 (LWP 22839)]

(gnucash:22824): GnomePrint-WARNING **: Could not create filter from description 'GnomePrintFilterSelect': filter 'GnomePrintFilterSelect' is unknown

(gnucash:22824): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(gnucash:22824): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(gnucash:22824): GnomePrint-WARNING **: Could not create filter from description 'GnomePrintFilterClip [ GnomePrintFilterMultipage ]': filter 'GnomePrintFilterClip' is unknown

(gnucash:22824): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(gnucash:22824): libgnomeprintui-CRITICAL **: gnome_print_layout_selector_load_filter: assertion `GNOME_IS_PRINT_FILTER (f)' failed

(gnucash:22824): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:22824): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:22824): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:22824): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:22824): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:22824): GnomePrint-CRITICAL **: gnome_print_filter_reset: assertion `GNOME_IS_PRINT_FILTER (f)' failed

(gnucash:22824): GnomePrint-CRITICAL **: gnome_print_filter_flush: assertion `GNOME_IS_PRINT_FILTER (f)' failed

(gnucash:22824): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:22824): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:22824): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:22824): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:22824): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:22824): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:22824): GnomePrint-CRITICAL **: gnome_print_filter_reset: assertion `GNOME_IS_PRINT_FILTER (f)' failed

(gnucash:22824): GnomePrint-CRITICAL **: gnome_print_filter_flush: assertion `GNOME_I...

Read more...

Changed in gnucash:
status: Unconfirmed → Confirmed
Revision history for this message
Gunni (fgunni) wrote :

This is more critical, because on feisty i was not able to install the package at all because of the depency, and compiling failed because of the missing gtk_html_print function.
I then got it compiled by installing the old debs from edgy.

Revision history for this message
C de-Avillez (hggdh2) wrote :

I do not know if this bug will be looked at or not in time for feisty, but I am raising importance here. Although I am also an affected party, it is clear that not being able to print is a heavy hit on usabilty.

Changed in gnucash:
importance: Undecided → High
Revision history for this message
Gunni (fgunni) wrote :

Not being able to print does not harm me ... i am mostly paperless at home. But not being able to compile is bad for me, because i use online banking with aqbanking. Nevertheless, installing the package from repos did not work, too.
There is a little of discussion on the gnucash mailing list, maybe helpful :

https://lists.gnucash.org/pipermail/gnucash-devel/2007-February/019912.html
https://lists.gnucash.org/pipermail/gnucash-devel/2007-February/020049.html
https://lists.gnucash.org/pipermail/gnucash-devel/2007-March/020060.html

Revision history for this message
Michael B. Trausch (mtrausch) wrote :
Download full text (4.3 KiB)

I realize that this is marked as a dup, but it isn’t really. GnuCash is installable now, but printing is still broken. Here is what happened today when I attempted to print a Balance Sheet from GnuCash:

mbt@pepper:~$ gdb gnucash-bin
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/gnucash-bin
[Thread debugging using libthread_db enabled]
[New Thread -1232619232 (LWP 15847)]
gnucash: [M] "Found Finance::Quote version ""1.12"
[New Thread -1264374896 (LWP 15879)]
[New Thread -1272767600 (LWP 15880)]
[New Thread -1281160304 (LWP 15881)]

(gnucash:15847): GnomePrint-WARNING **: Could not create filter from description 'GnomePrintFilterSelect': filter 'GnomePrintFilterSelect' is unknown

(gnucash:15847): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(gnucash:15847): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(gnucash:15847): GnomePrint-WARNING **: Could not create filter from description 'GnomePrintFilterClip [ GnomePrintFilterMultipage ]': filter 'GnomePrintFilterClip' is unknown

(gnucash:15847): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(gnucash:15847): libgnomeprintui-CRITICAL **: gnome_print_layout_selector_load_filter: assertion `GNOME_IS_PRINT_FILTER (f)' failed

(gnucash:15847): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:15847): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:15847): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:15847): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:15847): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:15847): GnomePrint-CRITICAL **: gnome_print_filter_reset: assertion `GNOME_IS_PRINT_FILTER (f)' failed

(gnucash:15847): GnomePrint-CRITICAL **: gnome_print_filter_flush: assertion `GNOME_IS_PRINT_FILTER (f)' failed
GnomePrintCupsPlugin-Message: The ppd file for the CUPS printer e240 could not be loaded.

(gnucash:15847): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:15847): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:15847): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:15847): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:15847): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:15847): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:15847): GnomePrint-CRITICAL **: gnome_print_filt...

Read more...

Revision history for this message
mrklean (mrklean) wrote :

So this is a bug being worked on, or is there a work around for it ??
Thanks !

Revision history for this message
C de-Avillez (hggdh2) wrote :

Assigning to MOTU.

Changed in gnucash:
assignee: nobody → motu
Revision history for this message
andi5 (andi5) wrote :

Does gnucash still crash with gtkhtml3.8, version 3.13.92.is.3.13.6-0ubuntu1, installed?

Revision history for this message
C de-Avillez (hggdh2) wrote :

3.13.* does not seem to be available on Feisty.

Revision history for this message
C de-Avillez (hggdh2) wrote :

disregard comment above. Age is kicking in, I guess.

Revision history for this message
C de-Avillez (hggdh2) wrote :
Download full text (8.7 KiB)

Yes, it crashes the same:

hggdh@xango:/tmp$ ./gnucash-gdb
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/gnucash-bin
[Thread debugging using libthread_db enabled]
[New Thread 47775380462368 (LWP 8025)]
gnucash: [M] "Found Finance::Quote version ""1.12"
[New Thread 1082132800 (LWP 8049)]
[New Thread 1090525504 (LWP 8050)]
[New Thread 1098918208 (LWP 8051)]

(gnucash:8025): GnomePrint-WARNING **: Could not create filter from description 'GnomePrintFilterSelect': filter 'GnomePrintFilterSelect' is unknown

(gnucash:8025): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(gnucash:8025): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(gnucash:8025): GnomePrint-WARNING **: Could not create filter from description 'GnomePrintFilterClip [ GnomePrintFilterMultipage ]': filter 'GnomePrintFilterClip' is unknown

(gnucash:8025): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(gnucash:8025): libgnomeprintui-CRITICAL **: gnome_print_layout_selector_load_filter: assertion `GNOME_IS_PRINT_FILTER (f)' failed

(gnucash:8025): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:8025): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:8025): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:8025): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:8025): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:8025): GnomePrint-CRITICAL **: gnome_print_filter_reset: assertion `GNOME_IS_PRINT_FILTER (f)' failed

(gnucash:8025): GnomePrint-CRITICAL **: gnome_print_filter_flush: assertion `GNOME_IS_PRINT_FILTER (f)' failed

(gnucash:8025): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:8025): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:8025): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:8025): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:8025): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:8025): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(gnucash:8025): GnomePrint-CRITICAL **: gnome_print_filter_reset: assertion `GNOME_IS_PRINT_FILTER (f)' failed

(gnucash:8025): GnomePrint-CRITICAL **: gnome_print_filter_flush: assertion `GNOME_IS_PRINT_FILTER (f)' failed
[Thread 1082132800 (LWP 8049) exited]
[Thread 1098918208 (LWP 8051) exited]
[Thread 1090525504 (LWP 8050) exited]

(gnucash:8025): GLib...

Read more...

Revision history for this message
mrklean (mrklean) wrote :

A workaround.... save the report or invoice as a html.. then print it from a browser. It will work till it gets fixed .. just to help out !

Revision history for this message
Michael B. Trausch (mtrausch) wrote : Re: [Bug 82194] Re: gnucash crash when printing

On Thu, 2007-04-05 at 20:33 +0000, mrklean wrote:

> A workaround.... save the report or invoice as a html.. then print it
> from a browser. It will work till it gets fixed .. just to help out !

The workaround I mentioned above also works rather well, and is (if one
has OOo already running) considerably faster.

    — Mike

Revision history for this message
andi5 (andi5) wrote :

hggdh, you are right. I have updated bug 92477, let us see whether they get it fixed.

Revision history for this message
C de-Avillez (hggdh2) wrote :

latest gtkhtml3.8 (gtkhtml3.8_1:3.13.5-1_amd64.deb), uploaded by seb, seems to have it. Print now works.

Guess we can mark as fix commited.

Changed in gnucash:
status: Confirmed → Fix Committed
Changed in gnucash:
status: Fix Committed → Fix Released
Revision history for this message
C de-Avillez (hggdh2) wrote :

Thanks, Mark. I thought released, and wrote & marked as commited. At least I was consistent in my error.

Revision history for this message
Ramesh Thiruchelvam (ramesht) wrote :

I'm using GnuCash 2.0.2 on Ubuntu 7.04beta, and when I try to print an invoice as pdf GnuCash crashes. I've attached the log form the out put.

Revision history for this message
Mark Reitblatt (mark-reitblatt) wrote :

Ramesh: Are you fully updated? Try 'sudo apt-get update' and then 'sudo apt-get upgrade'.

Revision history for this message
C de-Avillez (hggdh2) wrote :

@Ramesh: have you upgraded gtkhtml3.8 to 1:3.13.5-0ubuntu1, as pointed up above? The messages issued before your crash look very similar the the ones posted in this bug.

Revision history for this message
Ramesh Thiruchelvam (ramesht) wrote :

Thanks Mark, I did an upgrade and libgtkhtml got upgraded and the problem is fixed...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.