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 619282 - Crash when finding file with invalid encoded name in file system
Crash when finding file with invalid encoded name in file system
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: Import
GIT
Other Linux
: Normal major
: 0.7.0
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2010-05-21 12:16 UTC by Paul Wellner Bou
Modified: 2010-06-08 09:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix catching exception while scanning (1.03 KB, patch)
2010-05-21 12:29 UTC, Paul Wellner Bou
none Details | Review
Check if file exists for GIO (1.18 KB, patch)
2010-05-21 14:20 UTC, Paul Wellner Bou
committed Details | Review

Description Paul Wellner Bou 2010-05-21 12:16:32 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.
Comment 1 Paul Wellner Bou 2010-05-21 12:29:04 UTC
Created attachment 161636 [details] [review]
Fix catching exception while scanning
Comment 2 Paul Wellner Bou 2010-05-21 14:20:42 UTC
Created attachment 161647 [details] [review]
Check if file exists for GIO
Comment 3 Ruben Vermeersch 2010-05-22 19:44:55 UTC
Attachment 161647 [details] pushed as f690055 - Check if file exists for GIO

Great, thanks!