GNOME Bugzilla – Bug 619282
Crash when finding file with invalid encoded name in file system
Last modified: 2010-06-08 09:44:02 UTC
System.NullReferenceException: Object reference not set to an instance of an object at FSpot.JpegFile.get_Date () [0x00000] in /usr/src/f-spot/src/Imaging/JpegFile.cs:329 Exception in Gtk# callback delegate Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception. GLib.GException: Error stating file '/home/paul/.mozilla-thunderbird/default/Mail/Local Folders/Gel�scht.msf': No such file or directory at GLib.FileAdapter.QueryInfo (System.String attributes, FileQueryInfoFlags flags, GLib.Cancellable cancellable) [0x0005e] in /usr/src/f-spot/lib/gio-sharp/gio/generated/FileAdapter.cs:1818 at FSpot.ImageFile.GetLoaderType (System.Uri uri) [0x0002a] in /usr/src/f-spot/src/Imaging/ImageFile.cs:208 at FSpot.ImageFile.HasLoader (System.Uri uri) [0x00000] in /usr/src/f-spot/src/Imaging/ImageFile.cs:198 at FileImportBackend.Prepare () [0x00057] in /usr/src/f-spot/src/FileImportBackend.cs:74 at ImportCommand.Start () [0x000bb] in /usr/src/f-spot/src/ImportCommand.cs:754 at FSpot.Delay.HandleOperation () [0x0000d] in /usr/src/f-spot/src/Core/Delay.cs:40 at GLib.Idle+IdleProxy.Handler () [0x00000] at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal) at GLib.Idle+IdleProxy.Handler() at Gtk.Dialog.gtk_dialog_run(IntPtr ) at Gtk.Dialog.Run() at ImportCommand.ImportFromUri(.PhotoStore store, System.Uri uri) in /usr/src/f-spot/src/ImportCommand.cs:line 629 at FSpot.MainWindow.HandleImportCommand(System.Object sender, System.EventArgs e) in /usr/src/f-spot/src/MainWindow.cs:line 1471 Nautilus says: Gel�scht.msf (invalid encoding) Anyway, F-Spot should not crash.
Created attachment 161636 [details] [review] Fix catching exception while scanning
Created attachment 161647 [details] [review] Check if file exists for GIO
Attachment 161647 [details] pushed as f690055 - Check if file exists for GIO Great, thanks!