Details

[Home]

Issue of the Implementation # S0624

Brief

Calling gdk_pixbuf_loader_close causes "GError set over the top of a previous GError" warning

Detailed Description

Glib-WARNING appears when one tries to close a corrupted jpeg file. It states that the existing GError is overwritten by the new one: "Glib-WARNING: GError set over the top of a previous GError".

See the example code and the corresponding jpeg file here.

An output of the test on Fedora 8 (glib2-2.14.3-1.fc8, gtk2-2.12.1-5.fc8) looks like as follows:

(process:919): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. 
You must ensure an error is NULL before it's set.
The overwriting error message was: 
Error interpreting JPEG image file (Improper call to JPEG library in state 202)
Closing of module was perfomed with error:
Error interpreting JPEG image file (Quantization table 0x00 was not defined).

Problem location(s) in the standard

Gdk-pixbuf 2.6.2 API Reference, GdkPixbufLoader

Component

gtk-gdk-pixbuf 2.10 or later

Accepted

Gnome Bugzilla 517233

Status

Fixed in gtk-gdk-pixbuf 2.14.2

[Home]