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 406764 - Crash when cropping
Crash when cropping
Status: RESOLVED DUPLICATE of bug 382382
Product: f-spot
Classification: Other
Component: Editing
0.2.1
Other All
: Normal critical
: ---
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2007-02-11 17:18 UTC by Boris Goldowsky
Modified: 2007-03-29 18:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Boris Goldowsky 2007-02-11 17:18:21 UTC
Steps to reproduce:
1. Select any of certain photos in my library
2. Drag region
3. Click crop button

Memory usage increases quickly for a while, then app crashes.

This always happens for these pictures (but not all pictures)


Stack trace:
[bc@ant ~]$ f-spot
Starting new FSpot server
open uri = file:///home/bc/photos/library/2007/01/a/IMG_0585.JPG
read = 10317
approximate quality = 78
open uri = file:///home/bc/photos/library/2007/01/a/IMG_0585.JPG
Reloading
open uri = file:///home/bc/photos/library/2006/12/a/IMG_0257 (Modified).JPG
read = 9880
approximate quality = 0
open uri = file:///home/bc/photos/library/2006/12/a/IMG_0257 (Modified).JPG
open uri = file:///home/bc/photos/library/2003/09/24/P1010006.JPG
read = 9001
approximate quality = 92
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/bc/photos/library/2003/09/24/P1010006.JPG
read = 9001
approximate quality = 92
open uri = file:///home/bc/photos/library/2003/09/24/P1010006.JPG
open uri = file:///home/bc/photos/library/2003/09/24/P1010006.JPG
read = 9001
approximate quality = 92
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/bc/photos/library/2003/09/24/P1010006.JPG
read = 9001
approximate quality = 92
no options
no options
loading exif data
loading exif data
loading exif data
loading exif data
value = f-spot version 0.2.1 len = 20
value = 2007:02:11 12:06:50 len = 19
loading exif data

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

Stacktrace:

  at (wrapper managed-to-native) Exif.ExifData.exif_data_save_data (System.Runtime.InteropServices.HandleRef,intptr&,uint&) <0x00012>
  at (wrapper managed-to-native) Exif.ExifData.exif_data_save_data (System.Runtime.InteropServices.HandleRef,intptr&,uint&) <0xffffffff>
  at Exif.ExifData.Save () <0x00047>
  at JpegHeader.SetExif (Exif.ExifData) <0x0002c>
  at FSpot.JpegFile.SaveMetaData (System.IO.Stream,System.IO.Stream) <0x00061>
  at FSpot.JpegFile.Save (Gdk.Pixbuf,System.IO.Stream) <0x002bf>
  at Photo.SaveVersion (Gdk.Pixbuf,bool) <0x00166>
  at FSpot.PhotoView.ProcessImage (bool) <0x0036b>
  at FSpot.PhotoView.HandleCropButtonClicked (object,System.EventArgs) <0x0001d>
  at (wrapper delegate-invoke) System.MulticastDelegate.invoke_void_object_EventArgs (object,System.EventArgs) <0xffffffff>
  at GLib.Signal.voidObjectCallback (intptr,intptr) <0x000c9>
  at (wrapper native-to-managed) GLib.Signal.voidObjectCallback (intptr,intptr) <0xffffffff>
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x0000b>
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0xffffffff>
  at Gtk.Application.Run () <0x00008>
  at Gnome.Program.Run () <0x0000c>
  at FSpot.Driver.Main (string[]) <0x0086e>
  at (wrapper runtime-invoke) System.Object.runtime_invoke_void_string[] (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        f-spot(mono_handle_native_sigsegv+0xe7) [0x517337]
        f-spot [0x4e490d]
        /lib64/libpthread.so.0 [0x302ac0dde0]
        /usr/lib64/libexif.so.12(exif_set_sshort+0xb) [0x2aaab695bc3b]
        /usr/lib64/libexif.so.12 [0x2aaab6954eea]
        /usr/lib64/libexif.so.12 [0x2aaab6955219]
        /usr/lib64/libexif.so.12(exif_data_save_data+0xef) [0x2aaab695656f]
        [0x40710cd6]
Aborted


Other information:
Comment 1 Larry Ewing 2007-02-12 20:02:01 UTC
looks like a libexif loop, can you attach a sample image please.
Comment 2 Boris Goldowsky 2007-02-13 13:02:28 UTC
libexif seems plausible, since the same images seem to cause problems in gthumb, gimp, etc.  Sample image is too large to attach, but available at the following URL:
  http://goldowsky.com/P1010007.JPG

Comment 3 Stephane Delcroix 2007-02-13 13:26:42 UTC
libexif bug confirmed. it works fine if you throw out the exif part (using jhead -purejpg)
Comment 4 Larry Ewing 2007-03-29 18:50:22 UTC

*** This bug has been marked as a duplicate of 382382 ***