GNOME Bugzilla – Bug 552951
WIN32: gdk_pixbuf_new_from_file() often fails on JPEG files
Last modified: 2010-07-10 04:05:37 UTC
Please describe the problem: When using the WIN32 port of GTK+-2.14.1 with MinGW and msys (gcc-3.4.5) on windows 2000 SP4, calls to gdk_pixbuf_new_from_file() often fail when a JPEG file shall be read. The problem does not seem to lie with the JPEG files, because it is not always the same files that fail, and other applications read the JPEG files without trouble. On Linux with gtk+-2.8.3, the same program seems to work every time. Steps to reproduce: See the attachments: Build from the short C source file using the Makefile, then run the program, which will call gdk_pixbuf_new_from_file() six times. Actual results: Sometimes a call succeeds, sometimes it fails. Out of six calls, about three succeed and three fail. Sometimes five succeed and one fails. Expected results: All six calls succeed Does this happen every time? Yes Other information:
Created attachment 119016 [details] Small example tarball for gdk_pixbuf_new_from_file() error on WIN32
GTK+ 2.14.1 was built to use the GDI+ -based gdk-pixbuf image loaders. GDI+ is not preinstalled on Windows 2000 but has to be downloaded and installed separately. (But you do seem to have it as you say that it does work to load some files. Thus this is surely a duplicate of bug #552678. Btw, never attach sample code as a tarball. You want to make it as easy as possible for a maintainer or other interested person to run your sample code. Just attach a single freestanding minimal C (or Python, if you must) source code file. *** This bug has been marked as a duplicate of 552678 ***
Forgot to mention that the GTK+ 2.14.2 build on ftp.gnome.org is built with the --disable-gdiplus configure option, and again uses the separate jpeg and tiff libraries.