After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 323836 - Critical warnings inside libgnomeprint
Critical warnings inside libgnomeprint
Status: RESOLVED OBSOLETE
Product: gnome-print
Classification: Deprecated
Component: print preview
unspecified
Other Linux
: High critical
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2005-12-12 01:46 UTC by Emmanuele Bassi (:ebassi)
Modified: 2008-08-10 18:48 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Emmanuele Bassi (:ebassi) 2005-12-12 01:46:16 UTC
Distribution/Version: Ubuntu Dapper

1. Open a file with gedit using the console
2. Ctrl+P to print
3. Display the preview
4. Close the preview
5. Close the print dialog
6. Ctrl+P

You'll notice these warnings:

(gedit:32756): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(gedit:32756): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion
`G_TYPE_CHECK_INSTANCE (instance)' failed

This is not a gedit bug, since I can reproduce it by writing a simple printing
application using libgnomeprint.

It seems that the print dialog keeps around a pointer to the preview dialog even
if the dialog has been destroyed.

Since January 2006, this will make every printing-capable application crash.
Comment 1 André Klapper 2006-11-02 23:36:43 UTC
emmanuele, is this still an issue?
Comment 2 Emmanuele Bassi (:ebassi) 2006-11-03 09:09:22 UTC
I can still reproduce it with gnome-dictionary, for instance; not that it really matters, now that we have GtkPrint - actually, having applications using libgnomeprintui crash if --g-fatal-criticals is enabled might be a good incentive to port them. :-)
Comment 3 Emmanuele Bassi (:ebassi) 2008-08-10 18:48:07 UTC
I think we can close this: libgnomeprint and libgnomeprintui have been finally deprecated with GNOME 2.23/2.24 and the desktop is not using them anymore. plus I don't have any incentive to look into the code right now.