GNOME Bugzilla – Bug 696312
Print to file does nothing
Last modified: 2014-03-17 14:00:11 UTC
I'm using Gimp 2.8.4 on XFCE. When trying to print any image to a file (using File -> Print... -> Print to file), GIMP's dialog seems to respond as if the file were printed (the progression bar at the bottom changes state to indicate it is being done), but no file is created. I noticed that this warning message is emitted when opening the Print dialog: (print:3261): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text() So it might be related to GNOME and not Gimp itself. However, when trying to do the same thing with Eye of Gnome, for instance, I do not have the warning message and Print to file works as expected. Also, I noticed that if I click File -> Print... -> Print Preview (which opens the PDF file on Evince) and then click the "Print" button, I get the following error: Failed to print document - Operation not supported Again, if I try the same with Eye of Gnome, there is no error message and the file is created. Other than the "print preview" error message, there is nothing in Gimp indicating an error.
Works fine for me. This is done entirely in GTK+, reassigning.
We received a very similar bug in openSUSE, which hints at a regression after gtk 2.24.14 (on the gtk-2.24 branch only, which matches this issue, gimp being a gtk2 app). Downstream reference: https://bugzilla.novell.com/show_bug.cgi?id=839089 The issue is reported there to happen with Firefox; selecting print > to file and accepting the 'defaults' (incl. filename and location) does not do anything. If one changes either the file name or the location where to store the file, then the print works fine.
A easy way to reproduce the problem is: - start gtk-demo - open the 'Printing' dialog - click on 'Print to File' (default name is 'gtk-demo.pdf') - select 'Postscript' output (or SVG) - the filename changes to '.ps' instead of 'gtk-demo.ps' Everything works right after the filename is edited. The attached patch prevents the deletion of the "gtk-main-page-custom-input" property (and fixes a possible memory leak)
Created attachment 264639 [details] [review] Prevent the deletion of the "gtk-main-page-custom-input", fix possible memory leak Prevent the deletion of the "gtk-main-page-custom-input" property (and fix a possible memory leak)
*** This bug has been marked as a duplicate of bug 711177 ***