Rockbox Technical Forums

Support and General Use => Audio Playback, Database and Playlists => Topic started by: hintzy64 on October 12, 2011, 06:59:54 PM

Title: e260 freezes since upgrading from 3.7 to 3.9.1
Post by: hintzy64 on October 12, 2011, 06:59:54 PM
I've been having some trouble with my Sansa e260 (v1) since upgrading Rockbox from version 3.7 to 3.9.1.  

It started right after the upgrade, when the player asked me to reinitialize my database.  A box popped up with a number of tracks, which quickly ran up somewhere into the 1700s, and then stopped and froze.  The player was completely unresponsive and I had to hold the power button for 15 secs to shut it off.  I tried a few more times and got the same result, even if I let it sit for several hours.  (The definition of insanity, I believe...)  I have a 8GB microSD card in the player, so I tried removing that and initializing the database, and that time it worked.  I reinserted the card and tried updating the database, and it froze again.  I've even reinstalled Rockbox (just installing over the previous installation, I haven't tried uninstalling and reinstalling) and still have the same result.

I've run both chkdsk and fsck on the player's internal memory and the card, and neither report any errors.  It is the same card that I was using previously under 3.7, and no files have been added or removed from it.

As a short-term workaround, I found that I could still add all of the files on the card and internal memory to a playlist from the file browser, so I've been using that to listen to music until I get the database fixed.  However, the player also freezes occasionally during playback.  It has happened both on songs stored in internal memory and on the card.

Any ideas?

Thanks,
-John
Title: Re: e260 freezes since upgrading from 3.7 to 3.9.1
Post by: Lear on October 13, 2011, 03:17:34 PM
There has been some changes in the tag reading since 3.7, and a bug there could cause freezes during database initialization. As for how to find the problem, let me quote what another developer (saratoga) wrote on this kind of problem recently:

Quote
... try enabling database logging from the debug menu.  That should generate a log in the root of your player that will hopefully end with whatever file crashed the player.  Remove it from the device and see if that fixes it.  If it does, file a bug report with a link to the file so that it gets fixed.

As for freezes during playback, I get those too, but very infrequently (on a Fuze V2). How often are we talking about here, roughly? Note that some of the freezes could be due to the same problem that causes the freeze during initialize.
Title: Re: e260 freezes since upgrading from 3.7 to 3.9.1
Post by: hintzy64 on October 13, 2011, 03:49:12 PM
Excellent, I'll try enabling that and see what happens.  If I do find a particular file that is the culprit, is it the mp3 file itself that you need a link to?  I can easily put it up on my server, but I want to make sure that's what you're looking for.

As for playback freezes, it's pretty sporadic.  Maybe once a week?  Sometimes when it happens I can just move to the next song in the playlist after restarting the player and it'll be fine.  Other times it will hang again and I have to reload (reshuffle) the playlist to get it to continue.  It's rare enough that I haven't quite figured out the pattern yet of what triggers it.  It could be the song that it is playing.  It could be reading the tags of the next song that is queued.  Many possibilities.
Title: Re: e260 freezes since upgrading from 3.7 to 3.9.1
Post by: saratoga on October 13, 2011, 04:51:08 PM
If you find a file that crashes the database parser, please file a bug report (bugs link on the left side of the screen) with a link to the file.  Its almost impossible to fix bugs without an example file.

Title: Re: e260 freezes since upgrading from 3.7 to 3.9.1
Post by: hintzy64 on October 13, 2011, 07:27:30 PM
This is proving a bit more difficult than expected.  I don't see an option to enable database logging anywhere under settings, or in the system>debug menu.  I did figure out that I could tell the player to update the database, and then go to system>debug>view database info, and watch the progress as it builds the database.  It gets up to
Code: [Select]
Progress: 22% (694 entries)
Curfile: /<microSD1>/Music/Litt
and then stops, so I know it's something from the Little Miss Sunshine soundtrack.  I don't see any sort of log in the root folder of the player, but I found that while it is working on updating the database there is a database_tmp.tcd file in the .rockbox folder that I can open with the text viewer.  (If I reset the player, this file disappears.)  The last entry in this file was
Code: [Select]
/<microSD1>/Music/Little Miss Sunshine/Devotchka - Little Miss Sunshine [Original Soundtrack] - 03 - You Love Me.mp3
You Love Me
Devotchka
Little Miss Sunshine [Original So
and then a lot of gibberish symbols.  So I figured that song was the culprit.  I deleted it, tried again, and it again got stuck at 22%, 694 entries.  I returned to the file to see what the last item was now, but the player froze while trying to open the text viewer, and now it won't boot at all.  It is stuck at the Rockbox splash screen with "Ver. 3.9.1" at the bottom.  Any ideas?

EDIT: Got it to boot again, whew!
Title: Re: e260 freezes since upgrading from 3.7 to 3.9.1
Post by: saratoga on October 13, 2011, 09:40:27 PM
I don't see an option to enable database logging anywhere under settings, or in the system>debug menu.

System > Database > metadata log.

Also, probably a good idea to recheck your file system for errors.
Title: Re: e260 freezes since upgrading from 3.7 to 3.9.1
Post by: hintzy64 on October 13, 2011, 11:28:06 PM
I'm still not seeing that option anywhere... ???

Under System I have: Time & Date, Rockbox Info, Credits, Running Time, Debug

My database settings are under Settings> General Settings > Database, and the choices are: Load to RAM, Auto Update, Initialize Now, Update Now, Gather Runtime Data, Export Modifications, Import Modifications

There's also Settings > General Settings > System, which includes: Start Screen, Disk, Idle Poweroff, Limits, Use Morse Code Input, Car Adapter Mode, Wheel Light Timeout, Keyclick, USB HID, USB Keypad Mode


As for running fsck, the sd card returned no errors.  The internal memory had two errors: the free cluster summary was wrong (which I let it correct), and differences between the boot sector and its backup.  That one I left alone, I'm not sure which is correct or, since Rockbox replaces the bootloader, if that could potentially break things.

Thanks for your help and patience, we'll figure it out eventually!  ;)
Title: Re: e260 freezes since upgrading from 3.7 to 3.9.1
Post by: yapper on October 14, 2011, 12:13:33 AM
Try System > Debug > metadata log
Title: Re: e260 freezes since upgrading from 3.7 to 3.9.1
Post by: hintzy64 on October 14, 2011, 09:00:06 AM
Ah! There it is!  I had seen "View database info" just below it, but missed "Metadata log".  My bad.  So now I see what file it is getting stuck on.  If I can find a way to transfer it off of the player while at work, I'll upload it and post a link.  Otherwise, I'll take care of it when I get home tonight.
Title: Re: e260 freezes since upgrading from 3.7 to 3.9.1
Post by: hintzy64 on October 15, 2011, 01:11:06 PM
The database update actually got stuck on three different files. I've uploaded all of them to my server and created a bug with a link to the files: http://www.rockbox.org/tracker/task/12335

I'm wondering if something happened to the card or those files on the card, because when the player was connected to my PC, I could not copy the files off of the player, and if I tried to delete them, they would reappear.  I was, however, able to delete them from the file browser on the player itself.  The copies I uploaded for the bug report came from my PC, not from the player.  Either way, with those three songs removed, the database update now completes successfully.

Thanks!
-John
Title: Re: e260 freezes since upgrading from 3.7 to 3.9.1
Post by: Buschel on October 24, 2011, 01:06:11 AM
Just as a notice as there was no reaction to my comment on the bug report in flyspray. The files are scanned fine, there is no issue with the files and the metadata parser. To me it seems the filesystem on your card was the cause.
Title: Re: e260 freezes since upgrading from 3.7 to 3.9.1
Post by: hintzy64 on October 24, 2011, 08:15:01 AM
My apologies, I was away last week and didn't get to respond to your comment.  Given the difficulty I had removing the files from the player and that they scanned okay for you, I agree, the files on the card had become corrupted somehow.  I will replace them with clean copies from my PC, and make sure the database builds again, but I don't anticipate there will be any trouble.

Thanks!
-John