GNOME Bugzilla – Bug 161303
For some Fink users, printing doesnt work.
Last modified: 2006-07-07 01:27:14 UTC
I am a fink packager and I dont have this problem but a few users have reported this problem. At the same time, the user is reporting that printing from "abiword and other X applications" works fine. here is the complete email. ==== I've got fink's gnumeric-1.4.0-2 package installed. I've seen at least one report that this version should be able to print, but I still can't make it happen on my machine. If I select Print Preview, I see a red message at the top of the page "No visible output was created." If I select Page Setup, the Page Size is listed as "No options are defined" in a greyed-out drop down menu. If I select Print, nothing happens, but I get a long list of complaints in Xterm where I launched gnumeric: ** (gnumeric:3117): WARNING **: Incomplete locale library, dates will be month day year (gnumeric:3117): GnomePrintCupsPlugin-WARNING **: iconv does not support ppd character encoding: UTF-8, trying CSISOLatin1 ** (gnumeric:3117): WARNING **: Could not find child for option "PhysicalSize" with id "na-letter" ** (gnumeric:3117): WARNING **: rebuild_menu_cb, could not set value of PhysicalSize to na-letter ** (gnumeric:3117): CRITICAL **: file gpa-key.c: line 533 (gpa_key_insert): assertion `GPA_IS_KEY (parent)' failed (gnumeric:3117): GLib-GObject-WARNING **: invalid (NULL) pointer instance (gnumeric:3117): GLib-GObject-CRITICAL **: file gsignal.c: line 1634 (g_signal_connect_data): assertion `G_TYPE_CHECK_INSTANCE (instance)' failed ** (gnumeric:3117): CRITICAL **: file gpa-spinbutton.c: line 160 (gpa_spinbutton_load): assertion `gpa_spinbutton_is_connected (s)' failed ** (gnumeric:3117): CRITICAL **: file gpa-key.c: line 533 (gpa_key_insert): assertion `GPA_IS_KEY (parent)' failed (gnumeric:3117): GLib-GObject-WARNING **: invalid (NULL) pointer instance (gnumeric:3117): GLib-GObject-CRITICAL **: file gsignal.c: line 1634 (g_signal_connect_data): assertion `G_TYPE_CHECK_INSTANCE (instance)' failed ** (gnumeric:3117): CRITICAL **: file gpa-spinbutton.c: line 160 (gpa_spinbutton_load): assertion `gpa_spinbutton_is_connected (s)' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-font.c: line 291 (gnome_font_find_closest): assertion `face != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gp-gc.c: line 919 (gp_ctx_new): assertion `ctx->font != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gp-gc.c: line 107 (gp_gc_new): assertion `ctx != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print.c: line 181 (gnome_print_beginpage): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 873 (gnome_print_setfont): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 682 (gnome_print_setrgbcolor): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print.c: line 292 (gnome_print_gsave): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 338 (gnome_print_newpath): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 363 (gnome_print_moveto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 389 (gnome_print_lineto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 389 (gnome_print_lineto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 389 (gnome_print_lineto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 447 (gnome_print_closepath): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 59 (gnome_print_clip): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 363 (gnome_print_moveto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 948 (gnome_print_show): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print.c: line 322 (gnome_print_grestore): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 873 (gnome_print_setfont): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 682 (gnome_print_setrgbcolor): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print.c: line 292 (gnome_print_gsave): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 338 (gnome_print_newpath): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 363 (gnome_print_moveto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 389 (gnome_print_lineto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 389 (gnome_print_lineto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 389 (gnome_print_lineto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 447 (gnome_print_closepath): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 59 (gnome_print_clip): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 363 (gnome_print_moveto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 948 (gnome_print_show): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print.c: line 322 (gnome_print_grestore): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 338 (gnome_print_newpath): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 363 (gnome_print_moveto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 389 (gnome_print_lineto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 389 (gnome_print_lineto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 389 (gnome_print_lineto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 447 (gnome_print_closepath): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 59 (gnome_print_clip): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 338 (gnome_print_newpath): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 314 (gnome_print_concat): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print.c: line 292 (gnome_print_gsave): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 338 (gnome_print_newpath): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 363 (gnome_print_moveto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 389 (gnome_print_lineto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 389 (gnome_print_lineto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 389 (gnome_print_lineto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 447 (gnome_print_closepath): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 59 (gnome_print_clip): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 682 (gnome_print_setrgbcolor): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 873 (gnome_print_setfont): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 363 (gnome_print_moveto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 948 (gnome_print_show): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print.c: line 322 (gnome_print_grestore): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print.c: line 292 (gnome_print_gsave): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 338 (gnome_print_newpath): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 363 (gnome_print_moveto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 389 (gnome_print_lineto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 389 (gnome_print_lineto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 389 (gnome_print_lineto): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 447 (gnome_print_closepath): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print-stdapi.c: line 59 (gnome_print_clip): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print.c: line 322 (gnome_print_grestore): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gnome-print.c: line 225 (gnome_print_showpage): assertion `pc->gc != NULL' failed (gnumeric:3117): GnomePrint-CRITICAL **: file gp-gc.c: line 127 (gp_gc_unref): assertion `gc != NULL' failed ====================== Printing from Abiword and other X11 apps works fine. I've got gnome-print 0.37-3 installed. It seems that I maybe need to set something up in gnumeric, gnome-print, CUPS, or somewhere else, but all my Googling hasn't pointed me at any useful hints. Does anyone have any suggestions on how to get gnumeric to print? The complaints about "PhysicalSize" with id "na-letter" look important, but so far my grepping hasn't found where "na-letter" is defined. % fink --version Package manager version: 0.23.3 Distribution version: 0.7.1.rsync % sw_vers ProductName: Mac OS X ProductVersion: 10.3.6 BuildVersion: 7R28 Thanks for any advice, Kevin Horton ====
From another email... here is the list of gnome packages he has got installed. % fink list -i gnome Information about 4238 packages read in 1 seconds. i gnome-base 2.4.1-1 GNOME Removal convenience package i gnome-core 2.6.2-8 placeholder for gnome-core to allow upgrading over gnome 1.4 packages i gnome-desktop 2.6.2-8 The Gnome desktop i gnome-desktop4-shlibs 2.6.2-8 The Gnome desktop i gnome-icon-theme 1.2.3-5 The GNOME icon themes i gnome-keyring 0.2.1-3 GNOME Key Ring i gnome-keyring-dev 0.2.1-3 GNOME Key Ring i gnome-keyring-shlibs 0.2.1-3 GNOME Key Ring i gnome-libs 1.4.2-19 Base libraries for GNOME i gnome-libs-shlibs 1.4.2-19 Base libraries for GNOME i gnome-mime-data 2.4.1-4 The GNOME MIME database i gnome-print 0.37-3 Gnome Print - Printing libraries for GNOME i gnome-print-shlibs 0.37-3 Gnome Print - Printing libraries for GNOME i gnome-themes-panther 0.0-3 GTK2 themes matching the Panther default look i gnome-vfs2-ssl 2.6.1.1-14 The GNOME virtual file-system libraries i gnome-vfs2-ssl-dev 2.6.1.1-14 The GNOME virtual file-system libraries i gnome-vfs2-ssl-shlibs 2.6.1.1-14 The GNOME virtual file-system libraries i libgnome2 2.6.1.2-8 The GNOME 2 library i libgnome2-dev 2.6.1.2-8 The GNOME 2 library i libgnome2-shlibs 2.6.1.2-8 The GNOME 2 library i libgnomecanvas2 2.6.1.1-7 The GNOME 2 canvas library i libgnomecanvas2-dev 2.6.1.1-7 The GNOME 2 canvas library i libgnomecanvas2-shlibs 2.6.1.1-7 The GNOME 2 canvas library i libgnomedb-shlibs 1.0.3-4 Shared libraries for libgnomedb package i libgnomeprint2.2 2.6.2-9 The GNOME printing library i libgnomeprint2.2-shlibs 2.6.2-9 The GNOME printing library i libgnomeprintui2.2-s... 2.6.2-8 The GNOME printing library i libgnomeui2 2.6.1.1-8 The GNOME 2 UI Library i libgnomeui2-dev 2.6.1.1-8 The GNOME 2 UI Library i libgnomeui2-shlibs 2.6.1.1-8 The GNOME 2 UI Library i libgsf-gnome-shlibs 1.10.1-1 GNOME Structured File library
To avoid a common question - no, I wasn't trying to print a blank spreadsheet. There was text in several cells.
Having experienced this problem for the past few months (I don't recall the last version that printed), I was surprised to see it resurface. I have a full, up-to-date fink gnome install, unstable tree. Print preferences do not allow any selection or modification of paper size. Print preview produces the results mentioned above.
I also could not get the stable fink port of gnumeric to print. The print preview behaved as above and I also got the many assertion errors about null pointers. Plus gnumeric would segfault from time to time. Finally I gave up. I compiled the gnome libraries that gnumeric needs and I compiled gnumeric 1.4.1. There was one small printing problem that I will report separately, which was easily patched. Now I have a working gnumeric - print preview works, it has fonts, it does not generate all those warnings, and it prints fine. I am pretty sure that most of the problems mentioned above are caused by the fink gconf. At one point I accidentally started up my shiny new gnumeric while the fink gconfd was running, and I got many of the same warnings and broken behavior that I was getting with old fink gnumeric.
Are you using cups as your printing system? In any case, the main issue are the warnings starting with: ** (gnumeric:3117): WARNING **: Could not find child for option "PhysicalSize" with id "na-letter" gnome-print fails in creating a print job. Then all drawing commands fail. Can you successfully print to a postscript or pdf file? In any csae, this is clearly a gnomeprint issue rather than a gnumeric one.
I'm using Mac OS X 10.3.7, which uses cups as the printing system. I can't print to a pdf file. There are no errors presented in gnumeric when I try to create the pdf file, but there are myriad lines in the console like "(gnumeric:2451): GnomePrint-CRITICAL **: file gnome- print-stdapi.c: line 948 (gnome_print_show): assertion `pc->gc != NULL' failed". I can't figure out how to create a postscript file, so I haven't tried that one yet. There is no obvious postscript option anywhere in the print dialog box.
In response to Spunden's question, I have not been able to print to a pdf file. My method of printing has been to save as an excel file and print from that. Horrors. There goes my reason to use Gnumeric. I also have Mac OS X 10.3.7. I am unable to print or print preview when connected via Airport (Appletalk active) to a network (ethernet) printer. I am also unable to print on a direct ethernet connection to a networked ethernet printer via ip printing. As mentioned before, I can print via either connection from AbiWord and other Gnome apps. I would be happy to supply logs or further information as requested; please request via my email address as I don't regularly monitor this page. Thanks-
Adding Stan and Kevin to the CClist for this bug, that way they will not have to visit this page to monitor it. hope this helps Spundun
The key here is to find out where the 'na-letter' comes from. I suspect that is breaking the creation of the config which causes all the remaining issues. can you get a break point into option_list_new_with_default to help track it ?
"can you get a break point into option_list_new_with_default to help track it ?" Sure, if you can give me a good hint as to how to do that. I assume I need to set an option when I compile gnomeprint, but I can't find any documentation in the tarball. Note that fink is using gnomeprint 2.6.2.
Created attachment 38054 [details] Planner error log - printing I have the same problem, with Planner and with Gnumeric. I have attached an error log.
Does anyone know if there is any work ongoing on this bug?
Jody asked for a back trace... getting a backtrace after breaking in that function has turned out to be too tricky for me right now... the symbol table doesnt seem to be loading properly.. on top of which the libraries are loaded at runtime so there are too many things in the way of setting a break point... btw I dont have that error.. but I was trying to provide instructions to the others so that they can provide the back trace.. I will try to give this some time again soon. If someone else can help.. please do so... getting the backtrace seems far from trivial in this case. Spundun
Printing now works for me, on OS X 10.4.2, with fink packages for gnumeric-1.4.1-11 and libgnomeprint2.2-2.10.3-1.
OS 10.3.9, Gnumeric 1.4.1-1, libgnomeprint2.2 2.10.3-1 Printing now works. Thanks to all who contributed to the solution (intentional or accidental!)
I'm running Tiger 10.4.5, gnumeric 1.4.1-11, and libgnomeprint 2.6.2-9 and have the exact same problem. is there something I can do to help debug this?
Regarding comment #16: I also am running Tiger 10.4.5, gnumeric 1.4.1-11 and do _not_ have any problems with printing. I am curious why your libgnomeprint is only at 2.6.2-9. My libgnomeprint(s) are as follows: i libgnomeprint2.2 2.10.3-2 The GNOME printing library i libgnomeprint2.2-dev 2.10.3-2 The GNOME printing library i libgnomeprint2.2-shlibs 2.10.3-2 The GNOME printing library i libgnomeprintui2.2 2.10.2-1 The GNOME printing library i libgnomeprintui2.2-dev 2.10.2-1 The GNOME printing library i libgnomeprintui2.2-sh... 2.10.2-1 The GNOME printing library I am using the Fink distribution (unstable tree).
Version 2.6.2-9 is the latest in the Fink stable tree. Is it advisable to switch to the unstable tree? The very word, unstable, concerns me.
In this context, unstable just means that this tree changes more often. The stable tree only changes once every many months. The unstable tree changes several times a day. New version of packages first go to the unstable tree. Then, if enough users take the time to provide feedback, that version will get moved to the stable tree, the next time it is updated. Quite often the new versions fix bugs, so the packages in the unstable tree often work better than the ones in the stable tree. If a bad package does happen to get into the unstable tree, it is usually fixed very quickly. If a buggy package gets in the stable tree, it is there for many, many months. I recommend you move to the unstable tree.
Considering this to be FIXED on reasonably recent gnome-print versions (>= 2.10.x) according to comment 14 and comment 15.