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 648522 - Race condition when starting multiple Banshee instances
Race condition when starting multiple Banshee instances
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: general
git master
Other Linux
: Normal normal
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-04-23 20:34 UTC by Chow Loong Jin
Modified: 2012-01-08 11:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Chow Loong Jin 2011-04-23 20:34:06 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
Comment 1 Gabriel Burt 2011-05-02 22:54:48 UTC
I can reproduce this.  Weird - I would think our dbus single-instance stuff would take care of this.
Comment 2 Bertrand Lorentz 2012-01-08 11:39:18 UTC
There was indeed a race condition, fixed in this commit :

http://git.gnome.org/browse/banshee/commit/?id=b780ebce