GNOME Bugzilla – Bug 667038
metadata issu: Error on line 41 char 1: End of element <exif:Flash> not expected in this context
Last modified: 2014-11-02 17:37:05 UTC
Created attachment 204353 [details] hte picture - just open it ans see the error on gdb I am on openSUSE12.1 64bit with GIMP 2.7.5 git 1324799282. I´ve opened an .jpeg which causes in gdb: jpeg-load: found XMP packet (385 bytes) Detaching after fork from child process 11125. While parsing XMP metadata: Error on line 41 char 1: End of element <exif:Flash> not expected in this context The picture is small enought to be attached here(7z). Additional: I do not know if this is related, but GIMP recognize it as a picture with over 8MB size, while dolphin(KDE4.7.4) is on the line that is just under 1MB.
Opens without any problems in 2.6.11, so this is most likely caused by more recent changes.
Created attachment 234569 [details] The extracted file It's actually smaller than the compressed version...
*** Bug 692522 has been marked as a duplicate of this bug. ***
*** Bug 666865 has been marked as a duplicate of this bug. ***
I can reproduce the error with a GIMP 2.8 and the attached image. Thanks a lot for the report.
I've looked into the parser. From my point of view, the problem is caused due to missing functionality in the parser. It is not an empty tag, but rather a subtree which <exif:Flash /> defines, eg: <exif:Flash rdf:parseType="Resource"> <exif:Fired>False</exif:Fired> <exif:Return>0</exif:Return> </exif:Flash> Using the debugging output with the parser, once it's parsing <exif:Flash /> it assumes a toplevel description with a namespace. That's what is causing the error.
Fixed in master: commit 21bed1e2fb438fa5721bddb0573a724ae0024455 Author: Hartmut Kuhse <onkelhatti@gimp.org> Date: Sat Oct 19 18:38:01 2013 +0200 Completely rewrite metadata handling using gexiv2 Based on original patches from Hartmut Kuhse and modified by Michael Natterer. Changes include: - remove libexif dependency and add a hard dependency on gexiv2 - typedef GExiv2Metadata to GimpMetadata to avoid having to include gexiv2 globally - add basic GimpMetadata handling functions to libgimpbase - add image and image file specific metadata functions to libgimp, including the exif orientation image rotate dialog - port plug-ins to use the new APIs - port file-tiff-save's UI to GtkBuilder - add new plug-in "metadata" to view the image's metadata - keep metadata around as GimpImage member in the core - update the image's metadata on image size, resolution and precision changes - obsolete the old metadata parasites - migrate the old parasites to new GimpMetadata object on XCF load
*** Bug 710937 has been marked as a duplicate of this bug. ***
*** Bug 729229 has been marked as a duplicate of this bug. ***
*** Bug 729991 has been marked as a duplicate of this bug. ***