GNOME Bugzilla – Bug 463789
Import fails on JPG image : "error parsing ImageWidth"
Last modified: 2007-08-30 09:00:49 UTC
Please describe the problem: Hello, While importing a directory I have the error "Object reference not set to an instance of an object". Having a look at my .xsession-erros file it seems the error is raised at "parsing ImageWidth" (see the stack below). Steps to reproduce: 1. Import the image located at http://cdadhemar.free.fr/f-spot/31_2006_-000003.JPG Actual results: I have a popup window with the message "Object reference not set to an instance of an object". Expected results: I would expect the image to be imported correctly Does this happen every time? yes Other information: Please notice that I used Digikam before f-spot. The image may contains digikam infos not recognized by f-spot (exif data, tags, descriptions ...). Here is the stack for info : item ImportCommand+SourceItem Scanning /home/chicha/tmp item changed open uri = file:///home/chicha/tmp/31_2006_-000003.JPG open uri = file:///home/chicha/tmp/31_2006_-000003.JPG error parsing ImageWidth System.NullReferenceException: Object reference not set to an instance of an object at FSpot.Tiff.Header.SelectDirectory (FSpot.Tiff.ImageDirectory dir, StatementSink sink) [0x00000] error parsing ImageLength System.NullReferenceException: Object reference not set to an instance of an object at FSpot.Tiff.Header.SelectDirectory (FSpot.Tiff.ImageDirectory dir, StatementSink sink) [0x00000] System.NullReferenceException: Object reference not set to an instance of an object at FSpot.Tiff.Header.SelectDirectory (FSpot.Tiff.ImageDirectory dir, StatementSink sink) [0x00000] at FSpot.Tiff.Header.SelectDirectory (FSpot.Tiff.ImageDirectory dir, StatementSink sink) [0x00000] Error importing /home/chicha/tmp/31_2006_-000003.JPG System.NullReferenceException: Object reference not set to an instance of an object at FSpot.Xmp.XmpTagsImporter.ProcessStore (FSpot.MetadataStore store, .Photo photo) [0x00000] at FSpot.Xmp.XmpTagsImporter.Import (.Photo photo, System.String path, System.String orig_path) [0x00000] at FileImportBackend.Step (.Photo& photo, Gdk.Pixbuf& thumbnail, System.Int32& count) [0x00000] Could not import file Stopping
This bug may be linked to (solved) bug 457083 ? Thank you very much for your help ! Cheers, Chicha
fixed in r3288
Hello Stephane, I am quite impressed by your reactivity ! Your fix worked perfectly on 0.4.0 release (I patched 0.4.0 with your fix from trunk). I am not sure whether I am supposed to mark this bug as Fixed or this belong to f-spot's developers ? Thank you very much for your help and all your work :-) Cheers, Chicha
marked as fixed
*** Bug 470331 has been marked as a duplicate of this bug. ***
*** Bug 471709 has been marked as a duplicate of this bug. ***