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 463789 - Import fails on JPG image : "error parsing ImageWidth"
Import fails on JPG image : "error parsing ImageWidth"
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: Import
0.4.x
Other All
: Normal normal
: ---
Assigned To: F-spot maintainers
F-spot maintainers
: 470331 471709 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-08-05 22:25 UTC by chicha
Modified: 2007-08-30 09:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description chicha 2007-08-05 22:25:36 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
Comment 1 chicha 2007-08-05 22:28:50 UTC
This bug may be linked to (solved) bug 457083 ?

Thank you very much for your help !
Cheers,
Chicha
Comment 2 Stephane Delcroix 2007-08-06 07:59:43 UTC
fixed in r3288
Comment 3 chicha 2007-08-06 18:58:23 UTC
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
Comment 4 Stephane Delcroix 2007-08-06 19:24:59 UTC
marked as fixed
Comment 5 Stephane Delcroix 2007-08-26 08:33:39 UTC
*** Bug 470331 has been marked as a duplicate of this bug. ***
Comment 6 Stephane Delcroix 2007-08-30 09:00:49 UTC
*** Bug 471709 has been marked as a duplicate of this bug. ***