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 685420 - Critical warnings when GtkPrintJob is released too early
Critical warnings when GtkPrintJob is released too early
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Printing
3.5.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2012-10-03 17:45 UTC by Carlos Garcia Campos
Modified: 2013-04-14 10:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (1.45 KB, patch)
2012-10-03 17:45 UTC, Carlos Garcia Campos
committed Details | Review

Description Carlos Garcia Campos 2012-10-03 17:45:46 UTC
Created attachment 225699 [details] [review]
Patch

If the GtkPrintJob is freed too early when the surface has been created but the job hasn't been sent to the printer, it's possible that the file print backend tries to write to the io chaneel when it is already closed. This produces runtime critical warnings: 
                                                                                                                                                                                              
GLib-CRITICAL **: g_io_channel_write_chars: assertion `channel->is_writeable' failed
Comment 1 Carlos Garcia Campos 2012-10-03 17:46:40 UTC
This is related to bug #685419, since when this happens we end up in an inifinite loop.
Comment 2 Marek Kašík 2013-04-11 12:28:42 UTC
Review of attachment 225699 [details] [review]:

Hi Carlos,

thank you for the report and the patch. I'll just ask you for placing link to this bug to the commit message. After that, feel free to commit it to gtk-3-8 and master.

Marek
Comment 3 Carlos Garcia Campos 2013-04-14 10:22:21 UTC
Comment on attachment 225699 [details] [review]
Patch

Pushed to both branches