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 649298 - System.Exception: Can't start a recursive transaction
System.Exception: Can't start a recursive transaction
Status: RESOLVED NOTGNOME
Product: banshee
Classification: Other
Component: Importing
2.0.0
Other OpenBSD
: Normal critical
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-05-03 16:51 UTC by Antoine Jacoutot
Modified: 2012-04-30 08:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
banshee terminal start errors (27.06 KB, text/plain)
2011-06-13 20:08 UTC, Peter Klaassen
  Details
transaction patch in import process (976 bytes, patch)
2011-08-21 15:22 UTC, olivier dufour
needs-work Details | Review
transaction fix (3.93 KB, patch)
2011-08-23 08:34 UTC, olivier dufour
needs-work Details | Review
debug log (41.08 KB, text/plain)
2011-08-24 07:59 UTC, Antoine Jacoutot
  Details

Description Antoine Jacoutot 2011-05-03 16:51:01 UTC
Hi.

I'm currently in the process of porting banshee to OpenBSD.
So far so good, the application starts except that when I try to import music, I get the following error (when running with --debug).
Google shows a reference to that same issue from 2 years ago but that's it.

[6 Debug 15:32:51.144] Full import exception: System.Exception: Can't start a recursive transaction
  at Hyena.Data.Sqlite.HyenaSqliteConnection.BeginTransaction () [0x0009e] in /usr/obj/ports/banshee-2.0.0/banshee-2.0.0/src/Hyena/Hyena.Data.Sqlite/Hyena.Data.Sqlite/HyenaSqliteConnection.cs:267
  at Banshee.Collection.Database.DatabaseImportManager.ImportTrack (Hyena.SafeUri uri) [0x00027] in /usr/obj/ports/banshee-2.0.0/banshee-2.0.0/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseImportManager.cs:175 
  at Banshee.Collection.Database.DatabaseImportManager.ImportTrack (System.String path) [0x00000] in /usr/obj/ports/banshee-2.0.0/banshee-2.0.0/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseImportManager.cs:156 
  at Banshee.Collection.Database.DatabaseImportManager.OnImportRequested (System.String path) [0x00000] in /usr/obj/ports/banshee-2.0.0/banshee-2.0.0/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseImportManager.cs:130 
[6 Error 15:32:51.303] /home/ajacoutot/Music/the_very_best_of/04 - Tired Of Being Alone.mp3 - Can't start a recursive transaction


Package versions:
sqlite3-3.7.5
banshee-2.0.0
mono-2.10.1

If you need any other information, don't hesitate. Thanks!
Comment 1 Peter Klaassen 2011-06-13 20:08:30 UTC
Created attachment 189848 [details]
banshee terminal start errors
Comment 2 Peter Klaassen 2011-06-13 20:10:57 UTC
The attachment sohow the eroor during start up benshee under ubuntu lucid 34 bits.

First start up went ok but hang when indexing 3700 songs about halfway.
After that banshee only starts but hangs within seconds with the attached errros.
Comment 3 olivier dufour 2011-08-21 15:22:33 UTC
Created attachment 194324 [details] [review]
transaction patch in import process

Can someone with the bug test this patch ?
Comment 4 Antoine Jacoutot 2011-08-21 15:49:25 UTC
Just tried it and I still encounter the same issue.
Comment 5 Bertrand Lorentz 2011-08-22 19:04:31 UTC
Adding Olivier in CC because just attaching a patch to a bug doesn't automatically add you to the CC list :)
Comment 6 Bertrand Lorentz 2011-08-22 19:05:28 UTC
Review of attachment 194324 [details] [review]:

Marking the patch as needs-work as per previous comment.
Comment 7 olivier dufour 2011-08-23 08:34:01 UTC
Created attachment 194445 [details] [review]
transaction fix

you must face a bug elsewhere which do not close transaction.
So here is a patch to close all other transaction.

But can you post the "full" log with
banshee --debug > log 2>1&
Comment 8 Antoine Jacoutot 2011-08-24 07:59:14 UTC
> you must face a bug elsewhere which do not close transaction.
> So here is a patch to close all other transaction.
> 
> But can you post the "full" log with
> banshee --debug > log 2>1&

Ok, debug log attached (version 2.0.1, running with your patch). This doesn't seem to make any difference.
Sorry for not providing much info but I'm really not familiar enough with mono.
Comment 9 Antoine Jacoutot 2011-08-24 07:59:43 UTC
Created attachment 194558 [details]
debug log
Comment 10 olivier dufour 2011-08-24 10:01:17 UTC
the error come from sqllite.
so not know why but you database not reachable ;( 
Sqlite error 778: disk I/O error.


So check the right of you db file and banshee.
If you have run banshee as root a day it could have create db as root...
Comment 11 olivier dufour 2011-08-24 10:03:20 UTC
else delete it banshee will create it again.
Comment 12 Antoine Jacoutot 2011-08-24 14:25:15 UTC
(In reply to comment #11)
> else delete it banshee will create it again.

Sorry I forgot to mention, but I obviously removed all banshee config and files before trying, that included the db and as you can see in the output log, that didn't help :-/
Comment 13 Antoine Jacoutot 2012-04-30 08:20:25 UTC
Closing. This was most probably a thread related issue but now OpenBSD comes with kernel threads which seemed to have fixed the issue.
Version 2.4.0 runs smoothly.