GNOME Bugzilla – Bug 624097
Taglib causes OutOfMemory Exception importing/displaying Nikon JPGs
Last modified: 2010-07-18 15:33:14 UTC
Created attachment 165678 [details] Complete debug output 1. Open F-Spot (clean instance), drag and drop a Nikon D90 generated JPG onto F-Spot to import it. 2. F-Spot will crash. [1 Warn 14:24:14.907] Caught an exception - System.OutOfMemoryException: Out of memory (in `TagLib') at (wrapper managed-to-native) object:__icall_wrapper_mono_array_new_specific (intptr,int) at TagLib.IFD.IFDReader.ReadUIntArray (UInt32 count) [0x00000] at TagLib.IFD.IFDReader.CreateIFDEntry (UInt16 tag, UInt16 type, UInt32 count, Int64 base_offset, TagLib.ByteVector offset_data, UInt32 max_offset) [0x0022f] in /usr/src/f-spot/lib/TagLib/TagLib/src/TagLib/IFD/IFDReader.cs:362 at TagLib.IFD.IFDReader.ReadIFD (Int64 base_offset, UInt32 offset, UInt32 max_offset) [0x00102] in /usr/src/f-spot/lib/TagLib/TagLib/src/TagLib/IFD/IFDReader.cs:228 at TagLib.IFD.IFDReader.Read (Int32 count) [0x00010] in /usr/src/f-spot/lib/TagLib/TagLib/src/TagLib/IFD/IFDReader.cs:176 at TagLib.IFD.Makernotes.Nikon3MakernoteReader.ParseIFDEntry (UInt16 tag, UInt16 type, UInt32 count, Int64 base_offset, UInt32 offset) [0x00030] in /usr/src/f-spot/lib/TagLib/TagLib/src/TagLib/IFD/Makernotes/Nikon3MakernoteReader.cs:114 at TagLib.IFD.IFDReader.CreateIFDEntry (UInt16 tag, UInt16 type, UInt32 count, Int64 base_offset, TagLib.ByteVector offset_data, UInt32 max_offset) [0x00023] in /usr/src/f-spot/lib/TagLib/TagLib/src/TagLib/IFD/IFDReader.cs:287 at TagLib.IFD.IFDReader.ReadIFD (Int64 base_offset, UInt32 offset, UInt32 max_offset) [0x00102] in /usr/src/f-spot/lib/TagLib/TagLib/src/TagLib/IFD/IFDReader.cs:228 See attached file for the complete debug output.
Created attachment 165679 [details] Test case (Nikon JPG, Size reduced)
This should be fixed now. Please test and let me know if you still run into trouble.
Works now (this means F-Spot does not crash anymore and is able to display the JPGs), but the orientation is not recognized yet. I attach another test case image.
Created attachment 165775 [details] Test case (Nikon JPG, Size reduced, portrait orientation)
Created attachment 165777 [details] Another test case, directly out of the camera without reducing size with imagemagick
Please open a new bug for new issues. I don't want to reopen this one because it has been fixed, but I also don't want to lose track of this issue. One issue per bug please.
Done. https://bugzilla.gnome.org/show_bug.cgi?id=624672