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 682454 - JPEG Plug-in crashes
JPEG Plug-in crashes
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
2.8.0
Other Windows
: Normal normal
: 2.8
Assigned To: GIMP Bugs
GIMP Bugs
: 677066 681317 682655 683857 684671 685485 686292 690475 691070 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-08-22 12:19 UTC by Valerio Messina
Modified: 2013-07-03 12:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Win error got at first (9.74 KB, image/png)
2012-08-22 12:23 UTC, Valerio Messina
Details
plugin crash got after pressing "Do not send" (160.77 KB, image/png)
2012-08-22 12:24 UTC, Valerio Messina
Details

Description Valerio Messina 2012-08-22 12:19:17 UTC
Cannot open the attached .JPG image, the jpeg open plugin crash every time.

Steps:
- File menù, Open, select the image, the preview is shown
- Open button
- At first the Windows error is shown:
"GNU Image Manipulation Program Plug-In
Si è verificato un errore in GNU Image Manipulation
Program Plug-In. L'applicazione verrà chiusa."
- Then pressing "Do not send", appear the following error:
"
Messaggio GIMP
Plug-In bloccato: "file-jpeg.exe"
(P:\Programmi\GIMP 2\lib\gimp\2.0\plug-ins\file-jpeg.exe)
La morte del plugin potrebbe aver condizionato lo stato
interno di GIMP. Dovreste salvare le immagini e riavviare il
programma per maggiore sicurezza.

Messaggio GIMP
Apertura di "D:\Documenti\Immagini\VarieMessina\CIMG4040.JPG" fallita:
La procedura "file-jpeg-load" non ha restituito valori di ritorno
"

that is about:

"
Plug-in crashed: "file-jpeg.exe"
(C:\Programmi\GIMP 2\lib\gimp\2.0\plug-ins\file-jpeg.exe)
The dying plug-in may have messed up GIMP's internal state. You may want to
save your images and restart GIMP to be on the safe side.

Opening "D:\Documenti\Immagini\VarieMessina\CIMG4040.JPG" failed:
Procedure "file-jpeg-load" returned no return values
"

At the end the image cannot be opened with GIMP.
This is specific with this image (and one other I have), and happen on one PC of three I tested, and on WinXP only. I cannot understand why the error is generated on this specific PC only.
Suggestions on debugging steps appreciated.


The bug seems related to:
https://bugzilla.gnome.org/show_bug.cgi?id=681317
but on this PC is always reproducible.
Comment 1 Valerio Messina 2012-08-22 12:23:05 UTC
Cannot load the image on bugzilla. I got the error:

The file you are trying to attach is 1807 kilobytes (KB) in size. Non-patch attachments cannot be more than 1000 KB.

I will try to link the image externally
Comment 2 Valerio Messina 2012-08-22 12:23:46 UTC
Created attachment 222136 [details]
Win error got at first
Comment 3 Valerio Messina 2012-08-22 12:24:32 UTC
Created attachment 222137 [details]
plugin crash got after pressing "Do not send"
Comment 4 Valerio Messina 2012-08-23 07:51:24 UTC
The image that crash the plugin is linked here:
http://users.libero.it/efa/linkedImages/CIMG4040.JPG
Comment 5 Max Mustermann 2012-08-26 10:33:41 UTC
Bug triaging results: 

I couldn't reproduce this bug with 2.8.2 on Win7 (32 bit). 

Can you try again with the current 2.8.2 build on
sourceforge.net from 25.08.2012? Let us know withing the next 6 weeks, if the bug doesn't occur anymore and close it then as RESOLVED.
Comment 6 Michael Natterer 2012-08-26 13:06:11 UTC
Please do as Sven said and report back.
Comment 7 Massimo 2012-08-26 15:47:12 UTC
loading the linked image on linux, valgrind reported invalid reads.

fixed in master and gimp-2-8:
commit 2f274f09047532ace6ec622b6c704eb398cb639a
Author: Massimo Valentini <mvalentini@src.gnome.org>
Date:   Sun Aug 26 17:41:24 2012 +0200

    Bug 682454: Plug-in crashed
Comment 8 Massimo 2012-08-27 17:56:47 UTC
*** Bug 682655 has been marked as a duplicate of this bug. ***
Comment 9 Massimo 2012-08-27 17:59:46 UTC
*** Bug 681317 has been marked as a duplicate of this bug. ***
Comment 10 Valerio Messina 2012-08-28 07:55:56 UTC
the link is this:
http://sourceforge.net/projects/gimp-win/?source=directory
this evening I will try
Comment 11 Massimo 2012-08-28 11:10:54 UTC
That link points to the 2.8.2 release which did not include
the fix.

If you're able to build from sources, you have to patch that 
tarball with the patch found at:

http://git.gnome.org/browse/gimp/patch/?id=2f274f09047532ace6ec622b6c704eb398cb639a
Comment 12 Valerio Messina 2012-08-28 12:20:40 UTC
sure I can easily compile on Linux, but I'm feeling not so sure on Windows.
GIMP is quite a big and complicate piece of software, with lot of dependencies.
Anyway I will try, probably before to crosscompile to Win32 from Linux.
Any hints?
Comment 13 Massimo 2012-08-28 16:23:28 UTC
A thread on the GEGL developers ML could be of help 
cross-compilubg from linux:

https://mail.gnome.org/archives/gegl-developer-list/2012-May/msg00003.html


another option is the Windows nightly build recently started:

https://mail.gnome.org/archives/gimp-developer-list/2012-August/msg00072.html

perhaps extracting only the plug-in to load jpegs
Comment 14 Michael Natterer 2012-08-30 07:35:30 UTC
*** Bug 677066 has been marked as a duplicate of this bug. ***
Comment 15 Michael Natterer 2012-08-30 07:36:45 UTC
This has been fixed in git.
Comment 16 Valerio Messina 2012-08-30 22:00:17 UTC
- updated to 2.8.2
- replaced the P:\Programmi\GIMP 2\lib\gimp\2.0\plug-ins\file-jpeg.exe with the one from nightly build.
Work, the two JPG images that previously crash the plugin, now always load correctly on that PC.
Comment 17 czerwinski1977 2012-09-17 06:58:09 UTC
*** Bug 683857 has been marked as a duplicate of this bug. ***
Comment 18 Max Mustermann 2012-10-07 08:22:04 UTC
*** Bug 685485 has been marked as a duplicate of this bug. ***
Comment 19 Max Mustermann 2012-10-31 20:20:39 UTC
*** Bug 686292 has been marked as a duplicate of this bug. ***
Comment 20 Max Mustermann 2012-11-08 20:57:23 UTC
*** Bug 684671 has been marked as a duplicate of this bug. ***
Comment 21 Max Mustermann 2012-12-23 19:32:07 UTC
*** Bug 690475 has been marked as a duplicate of this bug. ***
Comment 22 Frank Freundin 2013-01-03 19:52:48 UTC
*** Bug 691070 has been marked as a duplicate of this bug. ***
Comment 23 Valerio Messina 2013-07-03 12:54:05 UTC
GIMP 2.8.6 on Win32 still correctly preview and load the image