GNOME Bugzilla – Bug 171827
Assertion failure during scanning.
Last modified: 2008-01-15 12:51:02 UTC
Please describe the problem: The following error: (gimp:13363): LibGimpWidgets-CRITICAL **: gimp_offset_area_set_pixbuf: assertion `GDK_IS_PIXBUF (pixbuf)' failed is written to STDOUT. I'm also having slight stability problems with The GIMP and suspect it may be related. So far though, this assertion failure is reported but GIMP remains running and completely functional. Steps to reproduce: 1. Start up XSane and scan an image. 2. Once the image is loaded in GIMP, hit the acquire preview button in XSane, and as fast as you can, right-click the just-scanned image and bring up the Canvas Size window. 3. The message should now have been printed to STDOUT. I think the timing isn't extremely important. Just make sure the Canvas Size window is up before the preview is aqcuired and the message is printed. Actual results: The following error: (gimp:13363): LibGimpWidgets-CRITICAL **: gimp_offset_area_set_pixbuf: assertion `GDK_IS_PIXBUF (pixbuf)' failed is written to STDOUT. Expected results: No output on STDOUT. Does this happen every time? Yes. Other information: I'm using XSane version 0.97 with the HP backend. Debian packages: gimp-data_2.2.4-2_all.deb gimp_2.2.4-2_i386.deb libgimp2.0_2.2.4-2_i386.deb xsane_0.97-3_i386.deb
Heh. It's not even scanner related. Just bringing up the Canvas Size window on any image gives that assertion failure. I'll leave the bug open just to make sure people know about it, but my guess is that whatever it is it's something that's already being taken care of in the code.
Do you have layer & channel previews turned off in your preferences? Also, well, the warning output goes to stderr, not stdout. ;)
Just a missing check in the caller. The called function catches it and outputs this warning. This shouldn't affect stability of GIMP. You might however have run into a similar problem elsewhere which isn't caught by such a check. This problem is now fixed in both branches: 2005-03-28 Sven Neumann <sven@gimp.org> * app/dialogs/resize-dialog.c (resize_dialog_new): handle gimp_viewable_get_pixbuf() returning NULL. Fixes bug #171827.