GNOME Bugzilla – Bug 300186
JPEG plug-in crashes when loading EXIF data (bug in libexif 0.6.12, used in e.g. the Windows installer)
Last modified: 2008-01-15 12:51:52 UTC
Version details: downloaded 11/4/2005 from Dublin, Ireland Distribution/Version: XP Professional, Version 2002, Service Pack 2 - Select JPEG photograph taken by Sony camera. - Try to open
Created attachment 45135 [details] Window displayed when JPEG plug-in crashed I have already used GIMP successfully to resize pictures on other systems, running Mandrake Linux and Windows XP Home. Dunno if this is related to the jpeg images themselves being corrupted (have been stored on flash disk for a while) or the system (Dell Optiplex SX280, Pentium 4, 504 MB RAM, running WinXP Pro as described earlier). I am able to reproduce, please mail back to request example of jpeg which crashes plug-in, or further screen captures of bug output (please specify). Have also now tested with JPEG image NOT from Sony, and that works fine.
Please attach a JPEG that causes this problem.
JPEG photograph too big to attach, will e-mail if I have an address to send to.
I got the image via mail. Loads without problems with GIMP 2.2.4, this means that libexif 0.6.11 can handle the image. I can confirm the crash with GIMP 2.2.6. Don't know if this is a problem with libexif 0.6.12 or GIMP's JPEG plug-in.
I can't reproduce this with the libexif 0.6.12 and GIMP 2.2.6 I built myself. I'll assign this to the Installer component.
*** Bug 300257 has been marked as a duplicate of this bug. ***
I also experienced this problem with pictures taken with Sony DSC-P7 camera. (Win XP Home) Uninstalling GIMP 2.2.6 and reinstalling 2.2.4 did not resolve the problem - even though GIMP 2.2.4 worked previously. The JPEG plugin continues to crash when I attempt to load a sony image.
*** Bug 300291 has been marked as a duplicate of this bug. ***
The summary seems to indicate that GIMP crashes but the description of the problem sounds like the plug-in is crashing. Could someone please clear this and change the summary accordingly.
*** Bug 300317 has been marked as a duplicate of this bug. ***
A comment attached to bug #300257 indicates that it is the plugin that is crashing, and that the crash is occurring specifically in the libexif dll.
Created attachment 45177 [details] this picture crashes the gimp
Created attachment 45178 [details] attempt #2 to attach xp crash info
Created attachment 45179 [details] attempt #3 to attach xp crash info
for comment #13 and #14, at least in IE6 if you view the source then you can see the crash info. Thats kinda odd.
I have exactly the same problem (Pictures taken with Nikon D70, but that has nothing to do with it) I downloaded 2.2.6 yesterday and installed it on a Toshiba SatPro, WinXP Pro SP1. GIMP has never been installed on that PC before. It works fine. Today, new laptop, Compaq, WinXP Pro SP2, no GIMP ever installed before. The same JPEGs with can be opened with SP1 can not be opened with SP2. JPEG plugin crashed as described before and in other bug-reports.
Created attachment 45184 [details] libexif-12.dll from a different build I'm attaching the libexif-12.dll from my system. I built it myself, and I don't have problems opening any JPEG file, including the one this bug is about (got it by mail). Please replace the dll on your system (should be in GIMP's bin directory) and try again.
did a save target as and replaced the dll in the bin dir. still doesnt work. i have a amd xp 2600 barton core, non oc. the error is still in libexif-12.dll and the offset is 000009de3
Hm, then the error has to be in the jpeg.exe or even deeper in Jernej's build. As I said before, this dll is from a system where none of these errors occur.
Created attachment 45186 [details] jpeg.exe from same system as the dll This is the jpeg.exe from my system, replace the one in GIMP's plug-ins folder. I don't know if it runs on any other system, so maybe moving the original one instead of simply overwriting is a good choice.
*** Bug 300368 has been marked as a duplicate of this bug. ***
i copied your new jpeg.exe (81kb) over the old one (35kb) and it still wont open up the sony jpeg... it will open up jpegs from a apex though. the error looks the same with the same hex addres, with this new jpeg.exe and libexif- 12.dll. 2.2.6 also errors on sony pics that i have croped and saved in 2.2.3, but if i resize it in 2.2.3 and open it in 2.2.6 it doesnt error. so i hope that helps. only confermed this once.
Created attachment 45194 [details] Raw image taken by unknown digital camera. Here's the image referenced in duplicate bug 300368. Note that it causes jpeg.exe to crash, not GIMP, although GIMP fails to open the image once jpeg.exe crashes.
I have now copied the attached jpeg.exe into it's directory. It works! Thank you.
I tried to solve the problem with replacing the dll and the jpeg.exe, but without succes. Jorgen, did you just replace the jpeg.exe ?
I submitted the duplicate Bug 300291, 2.2.6 also errors on my olympus pics that i have cropped and saved in 2.2.4. I have downloaded the new dll and exe. I right clicked on the new dll and exe, they both had an security option saying the file originated from a different computer and I selected unblock on the security option tab. I have then tried to replace: 1. just the old libexif-12.Dll (244kb) with the new dll (256kb) 2. just the old jpeg.exe (36kb) with the new dll (82kb) 3. Both the old jpeg.exe and old with the new jpeg.exe and the new dll I didn't delete the old jpeg and dll, just renamed them to jpeg._exe and libexif-12._Dll I have tried this while running GIMP when I am logged on with full administrator access. None of these options have fixed the problem.
Neither has fixed this on my test system with the official installers. We could try all combinations, but this was never intended to be a fix, just a try to locate the problem. Seems like this has failed.
I also tried several combinations without succes. I must have something to do with SP2 of XP because I installed exactly the same software on 2 machines (1 with SP1 and 1 with SP2) and it works on SP1 and not on SP2.
It seems to work for me with a libexif-12.dll from a previous version of GIMP and my jpeg.exe. Jernej, any idea what might be wrong?
*** Bug 300465 has been marked as a duplicate of this bug. ***
I installed the latest release of GTK and GIMP (2.2.6) over the previous release on a Windows 2000 SP4 machine, and I have the error discussed here. I installed the same as a new install on my home Windows XP SP2 machine and it runs fine. Maybe this bug has something to do with update vs new install? Some additional things I've noted while playing. On the W2000 machine, jpegs below ~200k load fine, while jpegs above ~500k fail every time. I didn't have any files of intermediate size handy to play with. As reported above, the error seems to be in jpeg.exe (at least this is what windows says on my machine). The windows error message reports missing dll's on the search path. Copying the dll's into the search path makes the windows errors messages go away, but importing still fails with the same GIMP error. I've also tried the jpeg.exe and .dll files provided (thanks guys) in various combinations, with no success. I'll keep playing. BTW: Should this be classed as a "Major" severity? At least for me, I work almost exclusively with larger jpegs, with this bug I can't work at all. (This isn't a complaint! I've made enough use of GIMP that you won't find me complaining. I love the software, just a question about classification.)
Michael Schumacher, can you put an attachment with that version of the dll and your version of the jpeg.exe Thanks
Since another user reported to me that svg.exe crashed in librsvg-2-2.dll, it's possible that I accidentally compiled the libraries with wrong CFLAGS (I can load the JPEGs attached here without problems, although jpeg.exe does crash with an image that was attached to another bug report [from before libexif was updated]). I'll test the 2.2.6 installer on slightly older machine later today.
I just tried to open some pictures which are much smaller (<500kb) and that works. Pictures are taken with a very cheep machine, so without much exif. So what has influence on the bug; 1) SP1 and SP2 (must be because I installed the same version the same moment on 2 clean machines) 2) size of the pictures 3) ...
This happens on UNIX too, it's not Windows specific. It seems libexif is here to blame. http://bugs.gentoo.org/show_bug.cgi?id=86740 Special attention to comment #7.
Just want to add that when saving a file as .jpeg, if the option Save EXIF data is selected, the same crash happens. When I cleared the option, the file saved correctly.
The crash when opening file was fixed for me by applying rev. 1.68 of libexif/exif-data.c from libexif CVS.
I appear to have found a fix for my installation at least, I took the libexif- 12.dll from an archived backup which contained the previous gimp 2.2.4 installation and used that in my bugged gimp 2.2.6 version (2.2.6 version jpeg.exe), this appeared to fix the problem allowing me to loaded the jpegs, i haven't checked the intactness of exif info yet, but at but at least Gimp 2.2.6 now loads the jpegs! The 2.2.6 libexif-12.dll is 244 kb in size and my old 2.2.4 libexif-12.dll is 251 kb in size. Dan
It works for me too with the dll I got from Dan (thanks Dan)
Following Dan's suggestion, but not having a previous installation handy, I downloaded libexif-12.dll (package libexif-0.6.11.zip)from http://www.gimp.org/~tml/gimp/win32/downloads.html (Note that I am on windows), and replaced the libexif-12.dll in the GIMP/bin directory. So far that seems to have fixed things.
I had same problem with the jpeg.exe crashing with 2.2.6. My installation of Gimp was totally new, it had never been installed on my laptop(win2000 sp4) before and I had never used Gimp before. So I was a bit surprised that Gimp could not open my jpeg where as every other graphics application i had could. I got the dll from the location specified in comment #40. All working now, but I think it should be raised above a 'normal' severity level bug.
With regards to comment #41: My jpeg was created from a Canon scanner and it had been manipulated and saved using Photoshop CS before attempting to load it into Gimp. All Jpegs that had been created using the sacanner failed to load into Gimp.
For me helped also the libexif-0.6.11.zip mentioned in comment #40. I have had WinGimp from version 1.0 in my computer - nearly all stable and some unstable versions. I have not had any earlier problems with jpg-files. My jpeg:s have been created with Fujifilm, Canon and Olympus cameras (during last year with 8 Mpix versions). JPG:s created by UFraw 0.4 and saved by this Gimp 2.2.6 seems to function all right.
The dll from comment #40 fixed my gimp in win xp sp2. here is a link directly to the download. http://www.gimp.org/~tml/gimp/win32/libexif-0.6.11.zip copy the libexif-12.dll to the GIMP-2.0\bin dir. :) i am using the moded jpeg.exe (82kb) as well so someone should check to make sure it works with both jpeg.exe versions. I think this fixed the bug. at least for me.
Yes, the dll fix worked fine! Working 100% error free for me now.
wow, #40 thanks! i just installed GIMP for the first time ever yesterday, and i couldn't load JPEGs because i got that same error message. i replaces that .dll and now it works fine - at least, on my first test... gotta love open source - don't understand a bit about the programming part but i managed to fix my gimp with the download you pointed me to! http://eti-eti.blogspot.com
*** Bug 300863 has been marked as a duplicate of this bug. ***
*** Bug 300901 has been marked as a duplicate of this bug. ***
GIMP 2.2.6 on Win XP Pro SP2 I recieved an error opening any pictures taken with a Sony DSC-S75. It said that the jpeg.exe plugin failed. however, If I went to the Images window, I could see a thumbnail of it. If I clicked on the thumbnail and pressed "create a new display for this image" it would open a window for me to veiw/edit the picture and would save the picture just fine. but After following comment #40 I replaced libexif-12.dll with the one from http://www.gimp.org/~tml/gimp/win32/libexif-0.6.11.zip I don't have any problems now. (I didn't need to change jpeg.exe)
*** Bug 301092 has been marked as a duplicate of this bug. ***
*** Bug 301088 has been marked as a duplicate of this bug. ***
Updating the summary of this bug report because it is not camera-specific. Let's hope that the few users looking for duplicates will be able to find this easily...
*** Bug 301297 has been marked as a duplicate of this bug. ***
*** Bug 301375 has been marked as a duplicate of this bug. ***
I had the same problem. Replacing the dll (from #40) seems to have fixed it. One thing that I found was that if I opened the image in Photodraw and saved it to a different place with the same name, it would work fine.
*** Bug 301731 has been marked as a duplicate of this bug. ***
I, also, replaced libexif-12.dll and it works fine now, so far. You who actually know the nuts and bolts of this might be interested in these observations: 1- The problem was not dependent upon file size. 2- Prior to the fix, the program would open SOME jpg images and not others. I can supply one of each if anyone wants to play with that. 3- It MAY have been camera specific, but I failed to notice before I loaded the new .dll file, and I am not going to re-break it to do the experiment. Both cameras in question are Olympus Camedias, one new, the other about four years old. Since the bug was preventing me from opening about half my images, I also think it should be considered a high-priority problem, though I have no sense of how many users have had this problem. Thanks to you experts, the fix seems to be out there, it just took a bit of digging to find it. May I suggest that maybe on the main GIMP web site there could be a link to something like "Big problems and their solutions." This incident really validates the open-source concept for me as well; I, an untutored user, was able to fix this problem in 10 minutes thanks to the generous population of the assembled experts. Thanks!
*** Bug 301822 has been marked as a duplicate of this bug. ***
I had the same problem, it doesn't seems to depend on the camera because I own an Olympus C-5000 Zoom. I replaced jpeg.exe file with the one provided in #20 and now it works fine. Thanks a lot!
*** Bug 301330 has been marked as a duplicate of this bug. ***
*** Bug 301948 has been marked as a duplicate of this bug. ***
*** Bug 301972 has been marked as a duplicate of this bug. ***
*** Bug 301964 has been marked as a duplicate of this bug. ***
I installed Gimp 2.2.6 today on a dual Athlon running XP. I can open jpeg files from my Pentax but not from my Nikon. I get the dread "jpeg plugin crashed" message upon open.
I followed the comments in comment #40 and I am now able to load my Nikon shots. Both the Pentax and Nikon images are over 1MB in size.
*** Bug 302107 has been marked as a duplicate of this bug. ***
*** Bug 302140 has been marked as a duplicate of this bug. ***
*** Bug 302247 has been marked as a duplicate of this bug. ***
*** Bug 302292 has been marked as a duplicate of this bug. ***
*** Bug 302298 has been marked as a duplicate of this bug. ***
Created attachment 45806 [details] this picture also crashed the GIMP This picture, along with EVERY picture from my Olympus D-580 ZOOM camera, crashes the GIMP. I'm also running a Dell computer, but its a laptop, a 9100 Inspiron with 512MB ram, 256MB ATI Radeon 9800, P4 3.2 GHZ HT Tech.
Thanks a lot, I had the same problem since I installed 2.2.6 and latest GTK on an XP SP1 machine. I replaced libexif as suggested and it fixed the problem (so far).
I also replaced libexif and now everything works perfectly for me as well.
*** Bug 302424 has been marked as a duplicate of this bug. ***
I replaced libexif as detailed above and it all works fine :). Thanks for the assistance, Luke R. Anderson BSc. (hons.)
*** Bug 302576 has been marked as a duplicate of this bug. ***
*** Bug 302795 has been marked as a duplicate of this bug. ***
*** Bug 302816 has been marked as a duplicate of this bug. ***
*** Bug 303078 has been marked as a duplicate of this bug. ***
*** Bug 303157 has been marked as a duplicate of this bug. ***
*** Bug 303229 has been marked as a duplicate of this bug. ***
*** Bug 301266 has been marked as a duplicate of this bug. ***
I released an updated installer with libexif 0.6.9 from Debian, and a fix which just updates jpeg.exe and libexif for people who already installed GIMP 2.2.6 previously.
I have just run the patch provided with no success. The patch reported success after replacing two files: jpeg.exe and libexif-10.dll. I'm running XP Pro SP2. Any other thoughts? This gimp install is my first. I just installed it yesterday. Apparently the gimp doesn't love me :(. I'm still going to try and love it. though. Any help is appreciated.
Can you attach a file that causes crashes?
I was having exactly the same problem with all photos taken on an Olympus C-750 UZ (using a Dell Inspiron 9100, XP SP2 and a brand new install of GIMP 2.2.6). #40 solved all my problems - awesome!
*** Bug 303701 has been marked as a duplicate of this bug. ***
*** Bug 303720 has been marked as a duplicate of this bug. ***
Solved in the version 2.2.7. JPEG is opened much faster.
In 2.2.7, I don't think it's really been solved: the libexif library version is older than in 2.2.6....
See comment #84.
*** Bug 304043 has been marked as a duplicate of this bug. ***
Can we close this report? As we can see from the numbers of duplicates, it doesn't matter whether it is open or not, IMO it is safe to consider it fixed and new issues should go into a new report anyway.
As far as I am concerned it is closed.
*** Bug 306047 has been marked as a duplicate of this bug. ***
*** Bug 307682 has been marked as a duplicate of this bug. ***
*** Bug 309517 has been marked as a duplicate of this bug. ***
*** Bug 314463 has been marked as a duplicate of this bug. ***
*** Bug 317973 has been marked as a duplicate of this bug. ***
*** Bug 318054 has been marked as a duplicate of this bug. ***
*** Bug 314679 has been marked as a duplicate of this bug. ***
*** Bug 320662 has been marked as a duplicate of this bug. ***
*** Bug 321363 has been marked as a duplicate of this bug. ***
*** Bug 315968 has been marked as a duplicate of this bug. ***
*** Bug 343691 has been marked as a duplicate of this bug. ***
*** Bug 357326 has been marked as a duplicate of this bug. ***
*** Bug 429475 has been marked as a duplicate of this bug. ***