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 171827 - Assertion failure during scanning.
Assertion failure during scanning.
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: User Interface
2.2.x
Other All
: Normal minor
: 2.2
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-03-27 23:03 UTC by gimp_bugzilla
Modified: 2008-01-15 12:51 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description gimp_bugzilla 2005-03-27 23:03:28 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
Comment 1 gimp_bugzilla 2005-03-27 23:12:48 UTC
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.
Comment 2 Manish Singh 2005-03-27 23:54:24 UTC
Do you have layer & channel previews turned off in your preferences?

Also, well, the warning output goes to stderr, not stdout. ;)
Comment 3 Sven Neumann 2005-03-28 00:15:44 UTC
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.