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 504149 - PSD loading regression; 'layer extra data block signature'
PSD loading regression; 'layer extra data block signature'
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
2.4.x
Other All
: Normal normal
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2007-12-17 23:31 UTC by Rick Yorgason
Modified: 2008-10-30 20:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
A PSD image that doesn't open in GIMP 2.4. (232.33 KB, image/photoshop)
2007-12-17 23:33 UTC, Rick Yorgason
  Details
Patch to fix crash on loading blank layer name (887 bytes, patch)
2007-12-18 20:28 UTC, John Marshall
committed Details | Review

Description Rick Yorgason 2007-12-17 23:31:33 UTC
Please describe the problem:
The attached file will not open under any version of GIMP 2.4.  It does open under 2.2.

Steps to reproduce:
1. Open the attached file


Actual results:
Error message says:

"Photoshop image Message

Unexpected end of file while reading
'layer extra data block signature' chunk


GIMP Message
Opening 'C:\Users\Skorpion
\TMLogoTread_Bright.psd' failed: Photoshop image
plug-In could not open image"

Expected results:
The file opens, exactly as it does under 2.2.

Does this happen every time?
Yes!

Other information:
The test system is Windows Vista 64bit.  I have yet to test any other systems.
Comment 1 Rick Yorgason 2007-12-17 23:33:19 UTC
Created attachment 101153 [details]
A PSD image that doesn't open in GIMP 2.4.
Comment 2 Sven Neumann 2007-12-18 10:10:58 UTC
I can confirm the error message and the fact that the image doesn't open in trunk. I can't tell though if the image file is broken or not. But if 2.2 opened it, then 2.4 should probably open it as well.
Comment 3 John Marshall 2007-12-18 19:37:31 UTC
The image file seems to be OK.  It opens without problem in the new plug-in and in PS CS3.  I will see if I can track down the fault.
Comment 4 John Marshall 2007-12-18 20:27:17 UTC
The problem is caused by blank layer names in the psd file.  I have attached a small patch against 2.4.2 that fixes the problem.
Comment 5 John Marshall 2007-12-18 20:28:19 UTC
Created attachment 101214 [details] [review]
Patch to fix crash on loading blank layer name
Comment 6 Sven Neumann 2007-12-18 20:38:49 UTC
Thanks a lot for the quick fix. I have committed this change to both branches:

2007-12-18  Sven Neumann  <sven@gimp.org>

        * plug-ins/common/psd-load.c: applied patch from John Marshall
        that fixes handling of PSD files with blank layer names (bug #504149).
Comment 7 Rick Yorgason 2007-12-18 23:14:53 UTC
Cool beans.  Thanks guys.