Crash on wrong exif date



Hi

I just installed 0.3.0 yesterday, and while importing some pictures I
ran into an out of memory crash.
It happened because of an invaild exif date into the file.

I've seen bug 330785 which refers to wrong date. But in my case f-spot
filled the whole ram/swap and then crashed.

I attached a log of the import session and exif info of the first
imported image.

Ciao
maxxer
item ImportCommand+SourceItem
Scanning /home/maxxer/img/foto/20060624SoleMichele
item changed
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-03.jpg
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-03.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-03.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-03.jpg
old = "" new = "" heading = "ASCII"
value = 2006:06:24 18:19:16 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:07 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:07 len = 19
Saved 10729 bytes
item changed
open uri = file:///home/maxxer/Photos/2006/6/24/img-03.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-03.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-03.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-03.jpg
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-04.jpg
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-04.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-04.jpg
cleanup context
cleanup context
open uri = file:///home/maxxer/Photos/2006/6/24/img-04.jpg
old = "" new = "" heading = "ASCII"
value = 2006:06:24 18:21:04 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:08 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:08 len = 19
Saved 8124 bytes
open uri = file:///home/maxxer/Photos/2006/6/24/img-03.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-03.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-04.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-04.jpg
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-05.jpg
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-05.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-05.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-05.jpg
old = "" new = "" heading = "ASCII"
value = 2006:06:24 18:24:52 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:09 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:09 len = 19
Saved 7647 bytes
open uri = file:///home/maxxer/Photos/2006/6/24/img-03.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-03.jpg
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-06.jpg
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-06.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-06.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-06.jpg
old = "" new = "" heading = "ASCII"
value = 2006:06:24 18:30:26 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:09 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:09 len = 19
Saved 8975 bytes
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-07.jpg
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-07.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-07.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-07.jpg
old = "" new = "" heading = "ASCII"
value = 2006:06:24 19:00:50 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:10 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:10 len = 19
Saved 6919 bytes
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-08.jpg
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-08.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-08.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-08.jpg
old = "" new = "" heading = "ASCII"
value = 2006:06:24 19:07:47 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:10 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:10 len = 19
Saved 8906 bytes
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-09.jpg
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-09.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-09.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-09.jpg
old = "" new = "" heading = "ASCII"
value = 2006:06:24 19:09:08 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:10 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:10 len = 19
Saved 6266 bytes
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-1.jpg
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-1.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-1.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-1.jpg
old = "" new = "" heading = "ASCII"
value = 2006:06:24 18:18:21 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:10 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:10 len = 19
Saved 10913 bytes
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-10.jpg
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-10.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-10.jpg
open uri = file:///home/maxxer/Photos/2006/6/24/img-10.jpg
old = "" new = "" heading = "ASCII"
value = 2006:06:24 19:19:24 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:10 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:10 len = 19
Saved 9903 bytes
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-100.jpg
System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: Parameters describe an unrepresentable DateTime.
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond) [0x00000] 
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second) [0x00000] 
  at FSpot.Tiff.DirectoryEntry.DateTimeFromString (System.String dt) [0x00000] 
  at FSpot.JpegFile.get_Date () [0x00000] 
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-100.jpg
System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: Parameters describe an unrepresentable DateTime.
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond) [0x00000] 
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second) [0x00000] 
  at FSpot.Tiff.DirectoryEntry.DateTimeFromString (System.String dt) [0x00000] 
  at FSpot.JpegFile.get_Date () [0x00000] 
open uri = file:///home/maxxer/Photos/2006/6/27/img-100.jpg
error parsing 0000:00:00 00:00:00
System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: Parameters describe an unrepresentable DateTime.
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond) [0x00000] 
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second) [0x00000] 
  at FSpot.Tiff.DirectoryEntry.DateTimeFromString (System.String dt) [0x00000] 
  at FSpot.Tiff.DirectoryEntry.get_ValueAsDate () [0x00000] 
  at FSpot.Tiff.Header.SelectDirectory (FSpot.Tiff.ImageDirectory dir, StatementSink sink) [0x00000] 
error parsing 0000:00:00 00:00:00
System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: Parameters describe an unrepresentable DateTime.
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond) [0x00000] 
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second) [0x00000] 
  at FSpot.Tiff.DirectoryEntry.DateTimeFromString (System.String dt) [0x00000] 
  at FSpot.Tiff.DirectoryEntry.get_ValueAsDate () [0x00000] 
  at FSpot.Tiff.Header.SelectDirectory (FSpot.Tiff.ImageDirectory dir, StatementSink sink) [0x00000] 
error parsing 0000:00:00 00:00:00
System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: Parameters describe an unrepresentable DateTime.
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond) [0x00000] 
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second) [0x00000] 
  at FSpot.Tiff.DirectoryEntry.DateTimeFromString (System.String dt) [0x00000] 
  at FSpot.Tiff.DirectoryEntry.get_ValueAsDate () [0x00000] 
  at FSpot.Tiff.Header.SelectDirectory (FSpot.Tiff.ImageDirectory dir, StatementSink sink) [0x00000] 
open uri = file:///home/maxxer/Photos/2006/6/27/img-100.jpg
old = "" new = "" heading = "ASCII"
value = 2006:06:28 00:04:51 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:11 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:11 len = 19
Saved 5971 bytes
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-101.jpg
System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: Parameters describe an unrepresentable DateTime.
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond) [0x00000] 
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second) [0x00000] 
  at FSpot.Tiff.DirectoryEntry.DateTimeFromString (System.String dt) [0x00000] 
  at FSpot.JpegFile.get_Date () [0x00000] 
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-101.jpg
System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: Parameters describe an unrepresentable DateTime.
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond) [0x00000] 
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second) [0x00000] 
  at FSpot.Tiff.DirectoryEntry.DateTimeFromString (System.String dt) [0x00000] 
  at FSpot.JpegFile.get_Date () [0x00000] 
open uri = file:///home/maxxer/Photos/2006/6/27/img-101.jpg
error parsing 0000:00:00 00:00:00
System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: Parameters describe an unrepresentable DateTime.
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond) [0x00000] 
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second) [0x00000] 
  at FSpot.Tiff.DirectoryEntry.DateTimeFromString (System.String dt) [0x00000] 
  at FSpot.Tiff.DirectoryEntry.get_ValueAsDate () [0x00000] 
  at FSpot.Tiff.Header.SelectDirectory (FSpot.Tiff.ImageDirectory dir, StatementSink sink) [0x00000] 
error parsing 0000:00:00 00:00:00
System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: Parameters describe an unrepresentable DateTime.
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond) [0x00000] 
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second) [0x00000] 
  at FSpot.Tiff.DirectoryEntry.DateTimeFromString (System.String dt) [0x00000] 
  at FSpot.Tiff.DirectoryEntry.get_ValueAsDate () [0x00000] 
  at FSpot.Tiff.Header.SelectDirectory (FSpot.Tiff.ImageDirectory dir, StatementSink sink) [0x00000] 
error parsing 0000:00:00 00:00:00
System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: Parameters describe an unrepresentable DateTime.
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond) [0x00000] 
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second) [0x00000] 
  at FSpot.Tiff.DirectoryEntry.DateTimeFromString (System.String dt) [0x00000] 
  at FSpot.Tiff.DirectoryEntry.get_ValueAsDate () [0x00000] 
  at FSpot.Tiff.Header.SelectDirectory (FSpot.Tiff.ImageDirectory dir, StatementSink sink) [0x00000] 
open uri = file:///home/maxxer/Photos/2006/6/27/img-101.jpg
old = "" new = "" heading = "ASCII"
value = 2006:06:28 00:04:55 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:11 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:11 len = 19
Saved 5973 bytes
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-102.jpg
System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: Parameters describe an unrepresentable DateTime.
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond) [0x00000] 
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second) [0x00000] 
  at FSpot.Tiff.DirectoryEntry.DateTimeFromString (System.String dt) [0x00000] 
  at FSpot.JpegFile.get_Date () [0x00000] 
open uri = file:///home/maxxer/img/foto/20060624SoleMichele/img-102.jpg
System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: Parameters describe an unrepresentable DateTime.
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond) [0x00000] 
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second) [0x00000] 
  at FSpot.Tiff.DirectoryEntry.DateTimeFromString (System.String dt) [0x00000] 
  at FSpot.JpegFile.get_Date () [0x00000] 
open uri = file:///home/maxxer/Photos/2006/6/27/img-102.jpg
error parsing 0000:00:00 00:00:00
System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: Parameters describe an unrepresentable DateTime.
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond) [0x00000] 
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second) [0x00000] 
  at FSpot.Tiff.DirectoryEntry.DateTimeFromString (System.String dt) [0x00000] 
  at FSpot.Tiff.DirectoryEntry.get_ValueAsDate () [0x00000] 
  at FSpot.Tiff.Header.SelectDirectory (FSpot.Tiff.ImageDirectory dir, StatementSink sink) [0x00000] 
error parsing 0000:00:00 00:00:00
System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: Parameters describe an unrepresentable DateTime.
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond) [0x00000] 
  at System.DateTime..ctor (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second) [0x00000] 
  at FSpot.Tiff.DirectoryEntry.DateTimeFromString (System.String dt) [0x00000] 
  at FSpot.Tiff.DirectoryEntry.get_ValueAsDate () [0x00000] 
  at FSpot.Tiff.Header.SelectDirectory (FSpot.Tiff.ImageDirectory dir, StatementSink sink) [0x00000] 
open uri = file:///home/maxxer/Photos/2006/6/27/img-102.jpg
old = "" new = "" heading = "ASCII"
value = 2006:06:28 00:04:58 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:12 len = 19
value = f-spot version 0.3.0 len = 20
value = 2006:11:30 22:30:12 len = 19
Error syncing metadata to file
System.OutOfMemoryException: Out of memory
  at <0x00000> <unknown method>
  at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_array_new_specific (intptr,int)
  at Exif.ExifData.Save () [0x00000] 
  at JpegHeader.SetExif (Exif.ExifData value) [0x00000] 
  at FSpot.JpegFile.SaveMetaData (System.IO.Stream input, System.IO.Stream output) [0x00000] 
  at FSpot.JpegFile.SaveMetaData (System.String path) [0x00000] 
  at Photo.WriteMetadataToImage () [0x00000] 
  at MainWindow.HandleDbItemsChanged (System.Object sender, .DbItemEventArgs args) [0x00000] 
exiftool img/foto/20060624SoleMichele/img-100.jpg
ExifTool Version Number         : 6.57
File Name                       : img-100.jpg
Directory                       : img/foto/20060624SoleMichele
File Size                       : 128 kB
File Modification Date/Time     : 2006:06:27 23:04:51
File Type                       : JPEG
MIME Type                       : image/jpeg
JFIF Version                    : 1.1
Image Description               : 
Make                            : NIKON
Camera Model Name               : E950
Orientation                     : Horizontal (normal)
X Resolution                    : 300
Y Resolution                    : 300
Resolution Unit                 : inches
Software                        : v981-78
Modify Date                     : 0000:00:00 00:00:00
Y Cb Cr Positioning             : Co-sited
Exposure Time                   : 1/60
F Number                        : 2.6
Exposure Program                : Program AE
ISO                             : 80
Exif Version                    : 0210
Date/Time Original              : 0000:00:00 00:00:00
Create Date                     : 0000:00:00 00:00:00
Components Configuration        : YCbCr
Compressed Bits Per Pixel       : 4
Exposure Compensation           : 0
Max Aperture Value              : 2.5
Metering Mode                   : Multi-segment
Light Source                    : Unknown (0)
Flash                           : Fired
Focal Length                    : 7.2mm
Quality                         : 12
Color Mode                      : 1
Image Adjustment                : 0
CCD Sensitivity                 : 0
White Balance                   : 0
Focus                           : inf
Digital Zoom                    : 0
Converter                       : 0
User Comment                    : 
Flashpix Version                : 0100
Color Space                     : sRGB
Exif Image Width                : 1600
Exif Image Length               : 1200
Interoperability Index          : R98 - DCF basic file (sRGB)
Interoperability Version        : 0100
File Source                     : Digital Camera
Scene Type                      : Directly photographed
Compression                     : JPEG (old-style)
Thumbnail Offset                : 2066
Thumbnail Length                : 4917
Image Width                     : 640
Image Height                    : 480
Aperture                        : 2.6
Image Size                      : 640x480
Shutter Speed                   : 1/60
Thumbnail Image                 : (Binary data 4917 bytes, use -b option to extract)
Focal Length                    : 7.2mm
Light Value                     : 9.0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]