GNOME Bugzilla – Bug 622318
FolderTreeModel doesn't handle non-file URIs correctly.
Last modified: 2018-07-01 08:58:50 UTC
When trying to import a specific folder through the gnome smb:// interface, f-spot crashes and cannot start again until .config/f-spot is deleted. This is the error message: An unhandled exception was thrown: Exception has been thrown by the target of an invocation. at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0 at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in <filename unknown>:0 at Mono.Addins.RuntimeAddin.CreateInstance (System.String typeName, Boolean throwIfNotFound) [0x00000] in <filename unknown>:0 at Mono.Addins.RuntimeAddin.CreateInstance (System.String typeName) [0x00000] in <filename unknown>:0 at FSpot.Extensions.SidebarPageNode.GetPage () [0x00000] in <filename unknown>:0 at FSpot.MainWindow.OnSidebarExtensionChanged (System.Object s, Mono.Addins.ExtensionNodeEventArgs args) [0x00000] in <filename unknown>:0 at Mono.Addins.ExtensionNode.OnChildNodeAdded (Mono.Addins.ExtensionNode node) [0x00000] in <filename unknown>:0 at Mono.Addins.ExtensionNode.NotifyChildChanged () [0x00000] in <filename unknown>:0 at Mono.Addins.TreeNode.NotifyChildrenChanged () [0x00000] in <filename unknown>:0 at Mono.Addins.ExtensionContext.NotifyConditionChanged (Mono.Addins.ConditionType cond) [0x00000] in <filename unknown>:0 at Mono.Addins.ExtensionContext.OnConditionChanged (System.Object s, System.EventArgs a) [0x00000] in <filename unknown>:0 at Mono.Addins.ConditionType.NotifyChanged () [0x00000] in <filename unknown>:0 at FSpot.Extensions.ViewModeCondition.<ViewModeCondition>m__7 () [0x00000] in <filename unknown>:0 at FSpot.Extensions.ViewModeCondition.set_Mode (ViewMode value) [0x00000] in <filename unknown>:0 at FSpot.Widgets.Sidebar.HandleContextChanged (System.Object sender, System.EventArgs args) [0x00000] in <filename unknown>:0 at FSpot.Widgets.Sidebar.set_Context (ViewContext value) [0x00000] in <filename unknown>:0 at FSpot.MainWindow..ctor (.Db db) [0x00000] in <filename unknown>:0 at FSpot.App.get_Organizer () [0x00000] in <filename unknown>:0 at FSpot.App.HandleOrganize () [0x00000] in <filename unknown>:0 at FSpot.App.Organize () [0x00000] in <filename unknown>:0 at FSpot.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0 .NET Version: 2.0.50727.1433 Assembly Version Information: glade-sharp (2.12.0.0) FSpot.Bling (0.7.0.0) pango-sharp (2.12.0.0) FSpot.Query (0.7.0.0) gtk-sharp-beans (2.14.0.0) gnome-sharp (2.24.0.0) System.Transactions (2.0.0.0) System.Data (2.0.0.0) Mono.Data.SqliteClient (2.0.0.0) FSpot.JobScheduler (0.7.0.0) System.Configuration (2.0.0.0) FSpot.Widgets (0.7.0.0) System.Xml (2.0.0.0) gconf-sharp (2.24.0.0) System.Core (3.5.0.0) unique-sharp (1.0.0.0) System (2.0.0.0) Mono.Addins (0.4.0.0) FSpot.Cms (0.7.0.0) FSpot.Core (0.7.0.0) FSpot.Platform (0.7.0.0) Mono.Posix (2.0.0.0) gdk-sharp (2.12.0.0) Hyena (0.7.0.0) atk-sharp (2.12.0.0) gtk-sharp (2.12.0.0) Mono.Addins.Setup (0.4.0.0) glib-sharp (2.12.0.0) FSpot.Utils (0.7.0.0) f-spot (0.7.0.0) mscorlib (2.0.0.0) Platform Information: Linux 2.6.34-gentoo x86_64 GenuineIntel GNU/Linux Distribution Information: [/etc/gentoo-release] Gentoo Base System release 2.0.1
That's actually not an import related bug, looks like something is wrong with the addins catalog. Could you try this (should be safe): rm -rf ~/.config/f-spot/addin-db-* And then try again?
Nope, that didn't help, it works after this though: rm -rf ~/.config/f-spot/photos.db
Well, you shouldn't really do that as it contains a lot of useful information about your photos. Will close the bug then, please re-open if this occurs again.
It occurs every time, if I try to add anything when browsing an smb folder, the photos database is toasted and I have to delete it...
Created attachment 164375 [details] Broken photos.db This is my empty photos.db, right after I delete it and try to add a folder through smb, it briefly shows the dialog adding 0 of xxx and immediately f-spot crashes. I cannot start it again unless this file is deleted.
Confirmed, happens with any source that uses a different protocol.
Pushed a fix to stop it from crashing. Filtering is broken though. commit daf81201e58298df90def64e7f09b63c85412aaf Author: Ruben Vermeersch <ruben@savanne.be> Date: Tue Jul 13 15:39:25 2010 +0200 No longer crash FolderTree for non-file URIs. Filtering for those is broken though.
f-spot is not under active development anymore, has not seen code changes for five years, and saw its last tarball release in the year 2010. Its codebase has been archived: https://gitlab.gnome.org/Archive/f-spot/commits/master Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather transfer the project to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the responsibility for active development again.