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 549297 - some tif images fail to import ("object reference not set to an instance of an object")
some tif images fail to import ("object reference not set to an instance of a...
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: Import
0.4.x
Other Linux
: Normal normal
: 0.7.1
Assigned To: F-spot maintainers
F-spot maintainers
Depends on: 622147 623861
Blocks:
 
 
Reported: 2008-08-25 13:21 UTC by Pedro Villavicencio
Modified: 2010-07-08 18:06 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Pedro Villavicencio 2008-08-25 13:21:56 UTC
this report has been filed here:

https://bugs.edge.launchpad.net/ubuntu/+source/f-spot/+bug/260706

"I am using f-spot 0.4.3.1 on ubuntu 8.04. I have a bunch of tif images from a photo cd that I am trying to import. The jpg versions import just fine, but the tif versions give me the import error, "object reference not set to an instance of an object." If I select "skip" the program continues happily importing more jpgs, but it will give me that error for every one of the tif files.

Document viewer also has trouble with these files, but gthumb can open them just fine. I opened one of them in Gimp and re-saved as another tif file and that can be imported just fine, so it's something about the specific encoding that's not being supported, I think. I will attach both files."

file which won't import:

http://launchpadlibrarian.net/17037191/0005116-R1-025-11_1.tif

file after editing it with gimp:

http://launchpadlibrarian.net/17037204/0005116-R1-025-11_1_new.tif

Error message of f-spot:

"
[Info  09:13:43.749] Initializing DBus
[Info  09:13:43.854] Initializing Mono.Addins
[Info  09:13:44.620] Starting new FSpot server
uri = file:///home/pedro/tests/0005116-R1-025-11_1.tif
Failed to initialize TTM buffer manager.  Falling back to classic.
Found Unknown Tiff Marker ffe0
System.OverflowException: Number overflow.
  at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_array_new_specific (intptr,int)
  at FSpot.Tiff.DirectoryEntry.ParseStream (System.Byte[] data, Int32 start) [0x00000] 
  at FSpot.Tiff.DirectoryEntry..ctor (System.Byte[] data, Int32 start, Endian endian) [0x00000] 
  at FSpot.Tiff.ImageDirectory.CreateEntry (FSpot.Tiff.ImageDirectory parent, System.Byte[] input, Int32 start, Endian header_endian) [0x00000] 
  at FSpot.Tiff.ImageDirectory.ReadEntries (System.IO.Stream stream) [0x00000] 
  at FSpot.Tiff.ImageDirectory.Load (System.IO.Stream stream) [0x00000] 
  at FSpot.Tiff.ImageDirectory..ctor (System.IO.Stream stream, UInt32 start_position, Endian endian) [0x00000] 
  at FSpot.Tiff.Header..ctor (System.IO.Stream stream) [0x00000] 
  at FSpot.Tiff.TiffFile..ctor (System.Uri uri) [0x00000] 
System.NullReferenceException: Object reference not set to an instance of an object
  at FSpot.Tiff.TiffFile.GetOrientation () [0x00000] 
  at FSpot.ImageFile.get_Orientation () [0x00000] 
  at FSpot.AsyncPixbufLoader.Load (System.Uri uri) [0x00000] 
  at FSpot.PhotoImageView.PhotoItemChanged (FSpot.BrowsablePointer item, FSpot.BrowsablePointerChangedArgs args) [0x00000] 

(f-spot:8690): Gtk-WARNING **: gtk_menu_attach_to_widget(): menu already attached to GtkMenuItem
"

Thanks,
Comment 1 Ruben Vermeersch 2010-07-07 09:12:11 UTC
(In reply to comment #0)
> http://launchpadlibrarian.net/17037191/0005116-R1-025-11_1.tif

This one is a JPEG, not a TIFF. We can probably solve this by loading using mime-detection.

Still, saving a jpeg with .tif extension is a great way to run into trouble :-)
Comment 2 Ruben Vermeersch 2010-07-08 18:06:22 UTC
This should work now, although it might require fixing bug 623861 before it will actually work as intended.