GNOME Bugzilla – Bug 504149
PSD loading regression; 'layer extra data block signature'
Last modified: 2008-10-30 20:06:25 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.
Created attachment 101153 [details] A PSD image that doesn't open in GIMP 2.4.
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.
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.
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.
Created attachment 101214 [details] [review] Patch to fix crash on loading blank layer name
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).
Cool beans. Thanks guys.