GNOME Bugzilla – Bug 648522
Race condition when starting multiple Banshee instances
Last modified: 2012-01-08 11:39:18 UTC
Originally reported at: https://bugs.launchpad.net/bugs/766303 Binary package hint: banshee After the start of Banshee 2.0 I got a Fatal Error. (Exception has been thrown by the target of an invocation.) Error details: An unhandled exception was thrown: Sqlite error 5: database is locked (SQL: UPDATE CorePrimarySources SET CachedCount = 95 WHERE PrimarySourceID = 1) at Hyena.Data.Sqlite.Connection.CheckError (Int32 errorCode, System.String sql) [0x00000] in <filename unknown>:0 at Hyena.Data.Sqlite.Connection.Execute (System.String sql) [0x00000] in <filename unknown>:0 at Hyena.Data.Sqlite.HyenaSqliteCommand.Execute (Hyena.Data.Sqlite.HyenaSqliteConnection hconnection, Hyena.Data.Sqlite.Connection connection) [0x00000] in <filename unknown>:0 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 System.Activator.CreateInstance (System.Type type) [0x00000] in <filename unknown>:0 at Banshee.Gui.GtkBaseClient.Startup () [0x00000] in <filename unknown>:0 at Hyena.Gui.CleanRoomStartup.Startup (Hyena.Gui.StartupInvocationHandler startup) [0x00000] in <filename unknown>:0 A reliable way to reproduce this is running this in the terminal when no Banshee instance is already running:- banshee & banshee
I can reproduce this. Weird - I would think our dbus single-instance stuff would take care of this.
There was indeed a race condition, fixed in this commit : http://git.gnome.org/browse/banshee/commit/?id=b780ebce