Fatal error after start of Banshee 2.0

Bug #766303 reported by typo
28
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Banshee
Fix Released
Medium
banshee (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

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

.NET Version: 2.0.50727.1433
OS Version: Unix 2.6.38.8

Assembly Version Information:

Banshee.AudioCd (2.0.0.0)
Banshee.CoverArt (2.0.0.0)
Banshee.Daap (2.0.0.0)
notify-sharp (0.4.0.0)
Banshee.SoundMenu (2.0.0.0)
Banshee.Mpris (2.0.0.0)
Migo (2.0.0.0)
Banshee.Podcasting (2.0.0.0)
Banshee.Dap (2.0.0.0)
Banshee.MultimediaKeys (2.0.0.0)
Banshee.Bpm (2.0.0.0)
Banshee.WebBrowser (2.0.0.0)
Banshee.Wikipedia (2.0.0.0)
pango-sharp (2.12.0.0)
Banshee.Fixup (2.0.0.0)
Banshee.Widgets (2.0.0.0)
gio-sharp (2.14.0.0)
gudev-sharp (1.0.0.0)
Banshee.Gio (2.0.0.0)
Banshee.GStreamer (2.0.0.0)
System.Configuration (2.0.0.0)
NDesk.DBus.GLib (1.0.0.0)
gconf-sharp (2.24.0.0)
Banshee.Gnome (2.0.0.0)
Banshee.NowPlaying (2.0.0.0)
Mono.Cairo (2.0.0.0)
System.Xml (2.0.0.0)
Banshee.Core (2.0.0.0)
Hyena.Data.Sqlite (2.0.0.0)
System.Core (3.5.0.0)
gdk-sharp (2.12.0.0)
Mono.Addins (0.4.0.0)
atk-sharp (2.12.0.0)
Hyena.Gui (2.0.0.0)
gtk-sharp (2.12.0.0)
Banshee.ThickClient (2.0.0.0)
Nereid (2.0.0.0)
NDesk.DBus.Proxies (0.0.0.0)
Mono.Posix (2.0.0.0)
Hyena (2.0.0.0)
NDesk.DBus (1.0.0.0)
glib-sharp (2.12.0.0)
System (2.0.0.0)
Banshee.Services (2.0.0.0)
Banshee (2.0.0.0)
mscorlib (2.0.0.0)

Platform Information: Linux 2.6.38-8-generic-pae i686 i386 GNU/Linux

Disribution Information:

[/etc/lsb-release]
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.04
DISTRIB_CODENAME=natty
DISTRIB_DESCRIPTION="Ubuntu Natty (development branch)"

[/etc/debian_version]
squeeze/sid

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: banshee 2.0.0-2ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic-pae 2.6.38.2
Uname: Linux 2.6.38-8-generic-pae i686
Architecture: i386
Date: Tue Apr 19 19:36:18 2011
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release i386 (20100816.1)
ProcEnviron:
 LANGUAGE=de:en
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: banshee
UpgradeStatus: Upgraded to natty on 2011-04-17 (2 days ago)

Related branches

Revision history for this message
typo (gnomeuser8) wrote :
Revision history for this message
Victor Vargas (kamus) wrote :

typo, are you still getting that message with banshee?

Changed in banshee (Ubuntu):
importance: Undecided → Low
Revision history for this message
typo (gnomeuser8) wrote :

No, I just got it one time.

Revision history for this message
Chow Loong Jin (hyperair) wrote : Re: [Bug 766303] Re: Fatal error after start of Banshee 2.0

On Thursday 21,April,2011 02:51 PM, typo wrote:
> No, I just got it one time.
>

It looks like the database was locked at that time. Perhaps you had another
Banshee instance open?

--
Kind regards,
Loong Jin

Revision history for this message
typo (gnomeuser8) wrote :

Presumably, but normally there should be no problem executing "banshee", when an instance of banshee is already running.

Revision history for this message
typo (gnomeuser8) wrote :
Download full text (9.7 KiB)

I got the error again!

In terminal:
[Info 20:14:27.532] Running Banshee 2.0.0: [Ubuntu Natty (development branch) (linux-gnu, i686) @ 2011-04-18 16:21:33 UTC]
[Warn 20:14:28.780] MPRIS service couldn't grab bus name
[Info 20:14:28.790] Updating web proxy from GConf
[Info 20:14:28.820] All services are started 1,04819
[Warn 20:14:28.879] Caught an exception - Hyena.Data.Sqlite.SqliteException: Sqlite error 5: database is locked (SQL:
                BEGIN TRANSACTION;
                    DELETE FROM CoreSmartPlaylistEntries WHERE SmartPlaylistID IN (SELECT SmartPlaylistID FROM CoreSmartPlaylists WHERE IsTemporary = 1);
                    DELETE FROM CoreSmartPlaylists WHERE IsTemporary = 1;
                COMMIT TRANSACTION) (in `Hyena.Data.Sqlite')
  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.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Hyena.Data.Sqlite.SqliteException: Sqlite error 5: database is locked (SQL:
                BEGIN TRANSACTION;
                    DELETE FROM CoreSmartPlaylistEntries WHERE SmartPlaylistID IN (SELECT SmartPlaylistID FROM CoreSmartPlaylists WHERE IsTemporary = 1);
                    DELETE FROM CoreSmartPlaylists WHERE IsTemporary = 1;
                COMMIT TRANSACTION)
  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
  --- End of inner exception stack trace ---
  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

In Fatal Error window:
Exception has been thrown by the target of an invocation.

An unhandled exception was thrown: ...

Read more...

Revision history for this message
typo (gnomeuser8) wrote :

And database is locked again:

$ banshee
[Info 20:17:59.676] Running Banshee 2.0.0: [Ubuntu Natty (development branch) (linux-gnu, i686) @ 2011-04-18 16:21:33 UTC]
[Warn 20:18:00.826] MPRIS service couldn't grab bus name
[Info 20:18:00.835] Updating web proxy from GConf
[Info 20:18:00.863] All services are started 0,96083
[Warn 20:18:01.297] Caught an exception - Hyena.Data.Sqlite.SqliteException: Sqlite error 5: database is locked (SQL:
                INSERT INTO CoreSmartPlaylists
                    (Name, Condition, OrderBy, LimitNumber, LimitCriterion, PrimarySourceID, IsTemporary, IsHiddenWhenEmpty)
                    VALUES ('audiobook-playback-source', NULL, NULL, NULL, NULL, 6, 1, 0)) (in `Hyena.Data.Sqlite')
  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
[Info 20:18:01.550] nereid Client Started
[Info 20:18:01.643] GStreamer version 0.10.32.0, gapless: True, replaygain: True
[Info 20:18:01.786] Unable to bind DAAP Proxy to port 8089

Revision history for this message
typo (gnomeuser8) wrote :
Download full text (7.0 KiB)

You need to execute "banshee" in terminal and start banshee from the sound menu at the same time, but it's not always reproducible. Maybe you have to try a few times.

Terminal:
$ banshee
[Info 20:22:40.327] Running Banshee 2.0.0: [Ubuntu Natty (development branch) (linux-gnu, i686) @ 2011-04-18 16:21:33 UTC]
[Warn 20:22:41.497] MPRIS service couldn't grab bus name
[Info 20:22:41.506] Updating web proxy from GConf
[Info 20:22:41.541] All services are started 0,983538
[Warn 20:22:41.742] Caught an exception - Hyena.Data.Sqlite.SqliteException: Sqlite error 5: database is locked (SQL:
                    DELETE FROM CoreCache WHERE ModelID = 7;
                        INSERT INTO CoreCache (ModelID, ItemID) SELECT 7, CoreAlbums.AlbumID
                FROM CoreAlbums WHERE CoreAlbums.AlbumID IN
                        (SELECT CoreTracks.AlbumID FROM CoreTracks, CoreCache
                            WHERE CoreCache.ModelID = 43 AND
                                  CoreCache.ItemId = CoreTracks.TrackID )
                    ORDER BY CoreAlbums.TitleSortKey, CoreAlbums.ArtistNameSortKey) (in `Hyena.Data.Sqlite')
  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.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Hyena.Data.Sqlite.SqliteException: Sqlite error 5: database is locked (SQL:
                    DELETE FROM CoreCache WHERE ModelID = 7;
                        INSERT INTO CoreCache (ModelID, ItemID) SELECT 7, CoreAlbums.AlbumID
                FROM CoreAlbums WHERE CoreAlbums.AlbumID IN
                        (SELECT CoreTracks.AlbumID FROM CoreTracks, CoreCache
                            WHERE CoreCache.ModelID = 43 AND
                                  CoreCache.ItemId = CoreTracks.TrackID )
                    ORDER BY CoreAlbums.TitleSortKey, CoreAlbums.ArtistNameSortKey)
  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
  --- End of inner exception stack trace ---
  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 (S...

Read more...

Revision history for this message
Chow Loong Jin (hyperair) wrote :

On Sunday 24,April,2011 02:24 AM, typo wrote:
> You need to execute "banshee" in terminal and start banshee from the
> sound menu at the same time, but it's not always reproducible. Maybe you
> have to try a few times.

I see. It sounds like a race condition somewhere, and is reproducible by running
"banshee & banshee" in the terminal, which launches two Banshee's at the same time.

  status confirmed

--
Kind regards,
Loong Jin

Changed in banshee (Ubuntu):
status: New → Confirmed
status: Confirmed → Triaged
Changed in banshee:
importance: Unknown → Medium
status: Unknown → New
Changed in banshee:
status: New → Confirmed
Changed in banshee:
status: Confirmed → Fix Released
Changed in banshee (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package banshee - 2.3.4.ds-1ubuntu1

---------------
banshee (2.3.4.ds-1ubuntu1) precise; urgency=low

  * Merge from Debian Experimental, remaining changes:
    + Enable and recommend SoundMenu and Disable NotificationArea by default
    + Disable boo and karma extensions
    + Enable and suggest u1ms
    + Move desktop file for Meego UI to /usr/share/une/applications
    + Change the url for the Amazon store redirector
    + [08dea2c] Revert "Fix invalid cast causing ftbfs with libgpod"
  * [b617fe0] Convert Ubuntu-specific patches to gbp-pq patches
  * Also fixes Launchpad bugs:
    - Fixes race condition while starting (LP: #766303)

banshee (2.3.4.ds-1) unstable; urgency=low

  * [c56a9ec] Imported Upstream version 2.3.4
  * [654e70a] Imported Upstream version 2.3.4.ds
    A manual make dist since the original 2.3.4 tarball came without icons due
    to a Makefile.am bug
  * [b526608] Drop deprecated watch urls
  * [984690c] Drop ltmain patch (no longer needed)
  * [8c8b907] Refresh all patches with gbp-pq
  * [72b914a] Add s/\.ds// dversionmangle for watchfile
  * [9ed5dce] Update email address
 -- Chow Loong Jin <email address hidden> Mon, 23 Jan 2012 23:16:49 +0800

Changed in banshee (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.