Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  iPod 4g database update slows, then stops.
« previous next »
  • Print
Pages: [1]

Author Topic: iPod 4g database update slows, then stops.  (Read 1678 times)

Offline Lunk

  • Member
  • *
  • Posts: 2
iPod 4g database update slows, then stops.
« on: June 05, 2009, 10:37:11 PM »
I just got around to installing Rockbox (version 3.2-090323) on my greyscale 40GB 4th generation iPod.  I'm enjoying it for the most part, but I'm having some trouble with updating the database.

I've got roughly 6500 songs on the player, and have successfully initialized the database (although I can't remember if I had similar problems when initializing as I'm having while updating - it took me a little while to figure out what the heck  I was doing).  When I run a database update, the first 1500 or so go very quickly, then it gradually starts to slow down and as it gets to the end it stops completely.  It doesn't finish; I can still hear the hard drive cranking away, and if I leave it there long enough the iPod itself gets very warm and the battery gets drained heavily.  Rather, it just appears to get endlessly hung up on the last file it tries to process.  Originally it was freezing on some non-music files I had stored on there, so I figured that was the problem and just added "database.ignore" files to those folders, but now it just freezes on the last subfolder in the music directory instead.  If I shutdown the iPod while it's stuck on the last file and turn it back on the database appears to be complete, but it would be nice to be able to hit update without worrying that I'll drain the battery or overheat the player if I walk away for a bit.  For reference in case it matters, I don't currently have the database set to load to RAM, and auto-update is turned off.  I tried turning on auto-update and had the same problem as I'm having with manual updates.

Is this standard behavior?  A known bug?  A problem with my iPod hardware?  Am I just doing something wrong or missing a simple option somewhere that'll fix it?  I've looked through the manual and FAQ and didn't find anything.  Any help is very much appreciated.

Thanks for reading!
« Last Edit: June 05, 2009, 10:38:51 PM by Lunk »
Logged

Offline yapper

  • Rockbox Expert
  • Member
  • *
  • Posts: 794
Re: iPod 4g database update slows, then stops.
« Reply #1 on: June 05, 2009, 10:46:44 PM »
Check the tags on the problem file(s). Things like embedded album art are known to give problem. Mp3tag is a good program for tagging.
Logged
G2 iPod 20GB / Sansa c240 v1 + 2GB microSD / Sansa c250 v1 / Sansa e250 v1 + 8GB microSDHC / Sansa Fuze v2 + 32GB microSDHC

Offline Lunk

  • Member
  • *
  • Posts: 2
Re: iPod 4g database update slows, then stops.
« Reply #2 on: June 06, 2009, 03:39:05 AM »
Thanks for the quick reply. 

I don't think it's a tagging problem.  There wasn't any artwork associated with the specific files that it was getting hung up on, but just to be sure I installed Mp3tag and stripped out what little embedded art there was in the entire collection, to no effect.  No abnormal characters or anything in the tags, either.

It doesn't seem to matter which specific file or folder it's reading, just that it's the last one.  For example, if I have exactly 6500 files it seems to read files 1 through 6499 and then freeze on the 6500th.  However, if I delete or tell the database to ignore file 6500 and leave the rest unchanged, it will then freeze on file 6499 that it had previously passed without a problem.  And if I delete that one it'll freeze on 6498, and so on. 

Since my first post I've tried a few other things as well.  Loading the database in the RAM didn't have any impact on the problem.  I tried reinitializing it thinking maybe something got corrupted the first time around, and while the initialization went fine, subsequent database updates still froze.  I remembered all the hidden crap that Apple puts on the harddrive and thought that might be mixing it up, so I added a blanket database.ignore file to the root of the drive and a single database.unignore to my Music folder, which is nothing but .mp3 and .flac files and subfolders filled with the same.  Now, ironically, the file it's freezing on is the database.unignore file.  :(

[Edited to update]:

I seem to have fixed it.  I'm not entirely clear on why what I did fixed it - initialization had been working all along, so I don't see why initial library size would matter - but as long as it's working I'm not all that concerned with the details.  Still, in case it's of any use to anyone else having similar problems or any of the developers, here are the things I tried since my last post that didn't work, and what eventually did:

I found a corrupted .mp3 file on the drive, so I ran chkdisk and cleaned up the disk.   
I uninstalled and reinstalled the release version I was using to begin with (v 3.2-090323) and reinitialized the database.
I uninstalled the release version and installed the current build (v r21200-090607) and reinitialized the database.

When none of that worked, I went back to the release version and started with a much smaller collection of around 500 songs whose tags I was absolutely sure weren't in any way unusual and initialized again.  I turned on directory caching, database load to ram, and database auto-update one by one and started adding about 200 songs at a time, updating the database in between each set.  I eventually got to the end of the files without any problems, and database updates seem to still be working fine.

Thanks for taking the time to read this thread, and for breathing new life into my ipod. :)
« Last Edit: June 08, 2009, 03:37:25 AM by Lunk »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  iPod 4g database update slows, then stops.
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.063 seconds with 15 queries.