This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#11965 - Database build problems and filesystem corruption on recent builds
Attached to Project:
Rockbox
Opened by Michael Huth (Progweed) - Thursday, 24 February 2011, 10:52 GMT+2
Last edited by sideral (sideral) - Thursday, 24 March 2011, 13:57 GMT+2
Opened by Michael Huth (Progweed) - Thursday, 24 February 2011, 10:52 GMT+2
Last edited by sideral (sideral) - Thursday, 24 March 2011, 13:57 GMT+2
|
DetailsPlayer: Sansa Fuze v2
Observed in r29305, the problem persists in r29387. After I installed these builds the database wouldn't update past a certain point. I cancelled the database update and checked the file system for errors. Chkdsk reported a few dozen corrupted files inside the .rockbox directory. I fixed these errors and performed a clean install, but the same thing happened again. All files are MP3 with id3v2.3 tags, no embedded album art. An older build (r29128) works fine. Related forum thread (#13 onwards): http://www.anythingbutipod.com/forum/showthread.php?t=61306 |
This task depends upon
Closed by sideral (sideral)
Thursday, 24 March 2011, 13:57 GMT+2
Reason for closing: Fixed
Additional comments about closing: Fixed in r29625/37/38. Thanks for helping debugging this, Progweed!
Thursday, 24 March 2011, 13:57 GMT+2
Reason for closing: Fixed
Additional comments about closing: Fixed in r29625/37/38. Thanks for helping debugging this, Progweed!
Can I do something to help and narrow down the cause of this bug? I suppose posting the metadata log isn’t that helpful as all my files seem to be tagged correctly and older builds work without problems. I reverted back to r29128.
After I installed these builds the database wouldn't update past a certain point.
Sansa Fuze v2.
Rockbox 3.8
I get whitescreens saying '*PANIC* Updating reserved FAT entry' or '*PANIC* Updating size on empty dir entry'.
Chkdsk find multiple errors in the .rockbox directory, after complete re-install the problem persists.
No such problem with Rockbox 3.7.
http://www.mediafire.com/?76ei0xwou83duel
Other things I noticed:
* foobar’s integrity checker does not show any warnings
* I can’t enable dircache any longer, it’s always turned off after a reset.
I'd like to try out several older builds to find the revision that introduced this bug. It there an overview of commits older than 4 weeks? I think that would help me a lot.
Thanks for trying to isolate the bug!
I assume you have already tried the more obvious ideas, such as repairing the filesystem with chkdsk / fsck.vfat, and deleting and regenerating the database (/.rockbox/database_*.*). (Please take a backup of the database files to be able to reproduce the bug in case removing the files takes care of the issue.)
The best overview of what has been committed since r29128 would be to look at the output of “svn log” or “git log”. If you use Git, you can do a tool-assisted bisect of the range of suspicious revisions with “git bisect”. This (or a manual bisect) should get you to the offending commit with trying about 10 revisions.
The “Updating reserved FAT entry” panic doesn't look like the problem originates from the database. It may just be that the database code crashes first because of something else going wrong. The database update usually is the first major computation that occurs after booting up.
Out of a whim, may I ask you to revert r29169? This change has caused media errors for me on another AMSv2 platform; see
FS#12001, which also has a patch to revert it.Yes, I already tried these more obvious ideas. The filesystem is okay, but becomes quite heavily corrupted during the database build process. It's impossible to even boot Rockbox after that.
I'll try the patch to see if it cures the problem.
If this bug is happens everytime, a binary search might be the fastest way to find the broken revision. Theres maybe ~1000 revisions to check, so thats ~10 builds to compile and test.
sideral, you were right:
I compiled r29567 and applied the patch. No database hiccups and no filesystem corruption so far.
Thank you very much!
Mine says "AMS v2 variant 0".
Moreover, the MicroSD isn't detected.
Can the SD card be detected if removed and reinserted while Rockbox is running? This is a known issue tracked as
FS#11870.Can the DB generaion complete in case the SD card is detected after reinsertion?