GNOME Bugzilla – Bug 470346
when trying to import, it says "null value" error, and refuses to import
Last modified: 2007-08-26 08:25:21 UTC
Please describe the problem: mahir@jt-laptop:~$ f-spot --debug ** Running f-spot in Debug Mode ** ** Running Mono with --debug ** Initializing Mono.Addins Starting new FSpot server /bin/sh: /usr/bin/esd: No such file or directory Query: SELECT photos.id, photos.time, photos.directory_path, photos.name, photos.description, photos.roll_id, photos.default_version_id FROM photos WHERE photos.id NOT IN (SELECT photo_id FROM photo_tags WHERE tag_id = 2) ORDER BY photos.time Query: SELECT photos.id, photos.time, photos.directory_path, photos.name, photos.description, photos.roll_id, photos.default_version_id FROM photos WHERE photos.id NOT IN (SELECT photo_id FROM photo_tags WHERE tag_id = 2) ORDER BY photos.time (f-spot:4381): Gtk-WARNING **: gtk_menu_attach_to_widget(): menu already attached to GtkMenuItem (f-spot:4381): Gtk-WARNING **: gtk_menu_attach_to_widget(): menu already attached to GtkMenuItem Query: SELECT photos.id, photos.time, photos.directory_path, photos.name, photos.description, photos.roll_id, photos.default_version_id FROM photos WHERE photos.id NOT IN (SELECT photo_id FROM photo_tags WHERE tag_id = 2) ORDER BY photos.time Reloading Query: SELECT photos.id, photos.time, photos.directory_path, photos.name, photos.description, photos.roll_id, photos.default_version_id FROM photos WHERE photos.id NOT IN (SELECT photo_id FROM photo_tags WHERE tag_id = 2) ORDER BY photos.time item changed open uri = file:///home/mahir/Photos/2007/01/17/01097_rockface_1920x1200.jpg error checking orientation open uri = file:///home/mahir/Photos/2007/01/17/01097_rockface_1920x1200.jpg System.IO.FileNotFoundException: Could not find uri "file:///home/mahir/Photos/2007/01/17/01097_rockface_1920x1200.jpg". at Gnome.Vfs.VfsStream..ctor (System.String text_uri, FileMode mode, Boolean async) [0x00000] at Gnome.Vfs.VfsStream..ctor (System.String uri, FileMode mode) [0x00000] at (wrapper remoting-invoke-with-check) Gnome.Vfs.VfsStream:.ctor (string,System.IO.FileMode) at FSpot.ImageFile.Open () [0x00000] at FSpot.ImageFile.PixbufStream () [0x00000] at FSpot.AsyncPixbufLoader.Load (System.Uri uri) [0x00000] at FSpot.PhotoImageView.PhotoItemChanged (FSpot.BrowsablePointer item, FSpot.BrowsablePointerChangedArgs args) [0x00000] System.IO.FileNotFoundException: file:///home/mahir/Photos/2007/01/17/01097_rockface_1920x1200.jpg at Gnome.Vfs.Vfs.ThrowException (System.String uri, Result result) [0x00000] at Gnome.Vfs.Vfs.ThrowException (Gnome.Vfs.Uri uri, Result result) [0x00000] at Gnome.Vfs.FileInfo..ctor (Gnome.Vfs.Uri uri, FileInfoOptions options) [0x00000] at Gnome.Vfs.FileInfo..ctor (System.String uri, FileInfoOptions options) [0x00000] at Gnome.Vfs.FileInfo..ctor (System.String uri) [0x00000] at FSpot.ThumbnailGenerator.ThumbnailIsValid (Gdk.Pixbuf thumbnail, System.Uri uri) [0x00000] open uri = file:///home/mahir/Photos/2007/01/17/01097_rockface_1920x1200.jpg System.IO.FileNotFoundException: Could not find uri "file:///home/mahir/Photos/2007/01/17/01097_rockface_1920x1200.jpg". at Gnome.Vfs.VfsStream..ctor (System.String text_uri, FileMode mode, Boolean async) [0x00000] at Gnome.Vfs.VfsStream..ctor (System.String uri, FileMode mode) [0x00000] at (wrapper remoting-invoke-with-check) Gnome.Vfs.VfsStream:.ctor (string,System.IO.FileMode) at FSpot.ImageFile.Open () [0x00000] at FSpot.ImageFile.PixbufStream () [0x00000] at FSpot.ImageFile.Load (Int32 max_width, Int32 max_height) [0x00000] at PixbufLoader.ProcessRequest (.RequestItem request) [0x00000] at FSpot.ThumbnailGenerator.ProcessRequest (.RequestItem request) [0x00000] windows - gnome-dev-harddisk - Mountpoint file:///media/windows True True Harddrive Harddrive (f-spot:4381): GdkPixbuf-WARNING **: GdkPixbufLoader finalized without calling gdk_pixbuf_loader_close() - this is not allowed. You must explicitly end the data stream to the loader before dropping the last reference. item ImportCommand+SourceItem cleanup context Scanning /home/mahir/Pictures item changed open uri = file:///home/mahir/Pictures/.arab.gif item changed open uri = file:///home/mahir/Pictures/.arab.gif open uri = file:///home/mahir/Pictures/01097_rockface_1920x1200.jpg open uri = file:///home/mahir/Pictures/01097_rockface_1920x1200.jpg Error importing /home/mahir/Pictures/01097_rockface_1920x1200.jpg System.NullReferenceException: A null value was found where an object instance was required. 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 open uri = file:///home/mahir/Pictures/02560001.JPG open uri = file:///home/mahir/Pictures/02560001.JPG Error importing /home/mahir/Pictures/02560001.JPG System.NullReferenceException: A null value was found where an object instance was required. 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 Steps to reproduce: 1. open f-spot 2. import large collection of photos, disselect "copy to directory" 3. click import Actual results: you can see the f-spot process crawling the directories to import, and when import starts, an error message comes up saying "A null value was found where an object instance was required." Expected results: that it would import the photos and put them into the database Does this happen every time? yes! Other information:
also filed here https://bugs.launchpad.net/ubuntu/+source/f-spot/+bug/133425
Reporting the same bug twice won't speed up the resolution process... *** This bug has been marked as a duplicate of 470331 ***