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 552951 - WIN32: gdk_pixbuf_new_from_file() often fails on JPEG files
WIN32: gdk_pixbuf_new_from_file() often fails on JPEG files
Status: RESOLVED DUPLICATE of bug 552678
Product: gdk-pixbuf
Classification: Platform
Component: general
git master
Other Windows
: Normal blocker
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-09-19 22:14 UTC by Dieter Klimow
Modified: 2010-07-10 04:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Small example tarball for gdk_pixbuf_new_from_file() error on WIN32 (121.58 KB, application/x-compressed-tar)
2008-09-19 22:18 UTC, Dieter Klimow
Details

Description Dieter Klimow 2008-09-19 22:14:00 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:
Comment 1 Dieter Klimow 2008-09-19 22:18:04 UTC
Created attachment 119016 [details]
Small example tarball for gdk_pixbuf_new_from_file() error on WIN32
Comment 2 Tor Lillqvist 2008-09-20 10:29:32 UTC
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 ***
Comment 3 Tor Lillqvist 2008-09-20 10:30:48 UTC
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.