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 624097 - Taglib causes OutOfMemory Exception importing/displaying Nikon JPGs
Taglib causes OutOfMemory Exception importing/displaying Nikon JPGs
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: Metadata
GIT
Other Linux
: Normal blocker
: 0.7.1
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2010-07-11 12:25 UTC by Paul Wellner Bou
Modified: 2010-07-18 15:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Complete debug output (16.38 KB, text/x-log)
2010-07-11 12:25 UTC, Paul Wellner Bou
Details
Test case (Nikon JPG, Size reduced) (29.92 KB, image/jpeg)
2010-07-11 12:27 UTC, Paul Wellner Bou
Details
Test case (Nikon JPG, Size reduced, portrait orientation) (36.26 KB, image/jpeg)
2010-07-13 06:52 UTC, Paul Wellner Bou
Details
Another test case, directly out of the camera without reducing size with imagemagick (267.38 KB, image/jpeg)
2010-07-13 07:16 UTC, Paul Wellner Bou
Details

Description Paul Wellner Bou 2010-07-11 12:25:53 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.
Comment 1 Paul Wellner Bou 2010-07-11 12:27:26 UTC
Created attachment 165679 [details]
Test case (Nikon JPG, Size reduced)
Comment 2 Ruben Vermeersch 2010-07-12 16:04:27 UTC
This should be fixed now. Please test and let me know if you still run into trouble.
Comment 3 Paul Wellner Bou 2010-07-13 06:51:15 UTC
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.
Comment 4 Paul Wellner Bou 2010-07-13 06:52:17 UTC
Created attachment 165775 [details]
Test case (Nikon JPG, Size reduced, portrait orientation)
Comment 5 Paul Wellner Bou 2010-07-13 07:16:34 UTC
Created attachment 165777 [details]
Another test case, directly out of the camera without reducing size with imagemagick
Comment 6 Ruben Vermeersch 2010-07-13 10:04:24 UTC
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.
Comment 7 Paul Wellner Bou 2010-07-18 15:33:14 UTC
Done. https://bugzilla.gnome.org/show_bug.cgi?id=624672