Fatal Error message when adding image node
| Project: | Exif |
| Version: | 5.x-1.1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
I just received the following message when submitting a new image node:
Fatal error: Uncaught exception 'PelDataWindowWindowException' with message 'Window [8084, 756] does not fit in window [0, 756]' in /home/sites/disscamera.org.uk/public_html/modules/exif/pel/PelDataWindow.php:175 Stack trace: #0 /home/sites/disscamera.org.uk/public_html/modules/exif/pel/PelDataWindow.php(222): PelDataWindow->setWindowStart(8084) #1 /home/sites/disscamera.org.uk/public_html/modules/exif/pel/PelIfd.php(530): PelDataWindow->getClone(8084, -7328) #2 /home/sites/disscamera.org.uk/public_html/modules/exif/pel/PelIfd.php(248): PelIfd->safeSetThumbnail(Object(PelDataWindow), 8084, 8512) #3 /home/sites/disscamera.org.uk/public_html/modules/exif/pel/PelTiff.php(164): PelIfd->load(Object(PelDataWindow), 8) #4 /home/sites/disscamera.org.uk/public_html/modules/exif/pel/PelExif.php(121): PelTiff->load(Object(PelDataWindow)) #5 /home/sites/disscamera.org.uk/public_html/modules/exif/pel/PelJpeg.php(244): PelExif->load(Object(PelDataWindow)) #6 /home/sites/disscamera.org.uk/public_html/modules/exif/pel/PelJpeg.php(315): P in /home/sites/disscamera.org.uk/public_html/modules/exif/pel/PelDataWindow.php on line 175

#1
Looks like a problem in PEL. Do you get this with any image, or just some files in particular?
#2
Hmmm... Now I just tried again and it let me upload something, however last time I ran cron it came up with the same series of error messages. Re-running it again it has had no error messages. Everything seems to be working fine again. Very odd....
#3
I ran into this issue just last night. What I found was that some JPEG/TIFF images contain an embedded image thumbnail as part of it's exif code.
What I ended up doing was this:
exiv2 rm -t t image_with_bad_embedded_thumbnail.jpg
Then, the image file uploads and gets handled correctly by the Exif/PEL modules.
Please give it a try and see if it doesn't resolve it. I couldn't find a ticket/post that fixed this when I was scratching my head over it before.
Hope this helps.
Hopefully, in the next release, when the PEL/tiff PEL/jpg detects or faults/errors out on trying to process the embedded thumbnail, that it will gracefully discard or ignore that information, instead of crashing.... :)
Wing.
#4
I just had the message again from running cron.
Where do I put that code to sort it out?
#5
btw, thanks for the post and help!