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 555280 - some gif files will not be open
some gif files will not be open
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
2.6.0
Other All
: Normal minor
: 2.6
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2008-10-06 19:44 UTC by Michael Schmidt
Modified: 2008-10-06 21:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
It is on eof the pictures I can not open with GIMP (223.31 KB, image/gif)
2008-10-06 20:19 UTC, Michael Schmidt
  Details
patch that turns the fatal error into just a warning (817 bytes, patch)
2008-10-06 20:32 UTC, Sven Neumann
accepted-commit_now Details | Review

Description Michael Schmidt 2008-10-06 19:44:18 UTC
Please describe the problem:
I have some gif files which where createt with an other application. GIMP get an error if I try to open these gif-files. Other grafic-programs (photoshop or photoline) open it without any errors!
The error are:
Error in reading DataBlock
Ran off the end of my bits
Das Öffnen von »G:\PCR Gelfotos\17HSD7\test.gif« ist fehlgeschlagen:
Prozedur »file-gif-load« hat sich ohne Rückgabewerte beendet

Steps to reproduce:
1. I have an example here. Will sent it to you. Tell me a way!



Actual results:


Expected results:


Does this happen every time?
Yes

Other information:
You can download a sample on this adress:
http://www.rip-the-bones.de/test1.gif
Comment 1 Sven Neumann 2008-10-06 20:00:45 UTC
Please attach a file to this bug report.
Comment 2 Michael Natterer 2008-10-06 20:07:07 UTC
The image on http://www.rip-the-bones.de/test1.gif is *not*
displayed by ImageMagick, eog and gthumb. So I guess the image is
simply broken and that whatever program displays it is less
strict in error checking.
Comment 3 Michael Schmidt 2008-10-06 20:19:23 UTC
Created attachment 120049 [details]
It is on eof the pictures I can not open with GIMP
Comment 4 Michael Schmidt 2008-10-06 20:27:40 UTC
(In reply to comment #2)
> The image on http://www.rip-the-bones.de/test1.gif is *not*
> displayed by ImageMagick, eog and gthumb. So I guess the image is
> simply broken and that whatever program displays it is less
> strict in error checking.
> 

Ok, I opend it with these programs:
photoshop, photoline32, windows paint, opera-browser without errors
Inkscape crashed while trying to import it. 

Maybe other programs are less strict. They give me the chance to "fix" the "simply broken" image. This is very usefull. But I prefer GIMP. So do you know a way to open it? Oh by the way, I try to open it with GIMP 2.4. It did it (but with showing me the errors on start).

Greetings from Germany 
and thanks for your fast answer!
Comment 5 Sven Neumann 2008-10-06 20:32:26 UTC
Created attachment 120052 [details] [review]
patch that turns the fatal error into just a warning
Comment 6 Sven Neumann 2008-10-06 20:34:02 UTC
I guess we should apply that patch to trunk. It makes the file load after throwing some warning messages.
Comment 7 Michael Natterer 2008-10-06 20:53:44 UTC
If you are sure that this patch is safe, please go ahead.
Comment 8 Sven Neumann 2008-10-06 21:19:15 UTC
2008-10-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-gif-load.c (GetCode): be more tolerant and
	continue loading with a warning message if there are bits missing
	at the end of the file. Fixes bug #555280.
Comment 9 Michael Schmidt 2008-10-06 21:39:14 UTC
It is great to see how fast you are react! 
Thanks a lot.