Rockbox

Tasklist

FS#12228 - Database fails to commit on Fuze v2 fresh SVN build

Attached to Project: Rockbox
Opened by padavoine (padavoine) - Saturday, 13 August 2011, 20:25 GMT
Last edited by sideral (sideral) - Saturday, 13 August 2011, 20:49 GMT
Task Type Bugs
Category Database
Status Unconfirmed
Assigned To No-one
Operating System Sansa AMSv2
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Using r30284

Initialization of the database, from scratch, on the Fuze v2, using a fresh SVN build, fails when committing.

It scans all files, gets to committing 4/9, then hangs at "building database, N files found".

If I reboot, it tries to commit on reboot, stops at 4/9, then boots into rockbox with no database (ie it asks me to initialize if I try to view it).

Attached are my database* files.

This is a bug in post-3.9 code, as I don't have the problem with a 3.9 release.
This task depends upon

Comment by padavoine (padavoine) - Saturday, 13 August 2011, 20:27 GMT
Build is 30283M
Comment by sideral (sideral) - Saturday, 13 August 2011, 20:49 GMT
  • Field changed: Details
  • Field changed: Reported Version (Release 3.9 → Daily build (which?))
I guess this regression is caused by changes in the dircache, allowing old bugs in the database to pop up; so it's probably not in new code. Most likely, the bug is triggered by memory compaction in the dircache, which reduces the memory space available for the database commit (the DB defaults to using the dircache buffer for commit).
Comment by Thomas Martitz (kugel.) - Sunday, 14 August 2011, 11:41 GMT
I suggest trying to use the plugin buffer instead of the dircache one (or just not the dircache buffer as first attempt).
Comment by sideral (sideral) - Sunday, 14 August 2011, 17:48 GMT
kugel, yes, using a larger buffer certainly is a good idea, but this will only hide, not fix the database bugs. So I'd refrain from switching to a larger buffer until those problems are sorted out (except maybe on the next release branch to contain the dircache changes).
Comment by Travis Evans (TravisE) - Friday, 07 September 2012, 16:32 GMT
Any news on this? I'm having the exact same problem with Rockbox 3.11.2. The database worked fine for months; now I just added some files and it stops committing at 4/9, and I can't access my data. I'm worried I just lost many weeks of play count data, which I rely on heavily to find the songs I like to listen to.

Loading...