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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  H3xx Database Issues with v3.2 and Current Build.
« previous next »
  • Print
Pages: [1]

Author Topic: H3xx Database Issues with v3.2 and Current Build.  (Read 1851 times)

Offline alienrider

  • Member
  • *
  • Posts: 10
H3xx Database Issues with v3.2 and Current Build.
« on: April 05, 2009, 08:17:51 PM »
Hello,

I have been using a build from 11 July 2008 for several months and have had no problems with that build. However the new v3.x Rockbox sounds great and I would like to get it working on my iriver H360.

However I cannot get a DB built. It seems to be similar to this problem http://forums.rockbox.org/index.php?topic=19811.0 but it doesn't look like from the posts like they got it solved.

I tried these steps first with the v3.2 stable release.

I removed the old .rockbox directory.
Using the RBUtil 1.2 I installed the 3.2 RB successfully (from XP).
I booted into RB, the splash screen confirmed the "Ver. 3.2-090323”
I access the database menu and it asks me to Initialize the DB I respond Yes.
It finds approx 12500 entries and then asks for to reboot the system.
Returns to main menu.
Hold Stop to shut down.
Error Message and Freeze.
Error is “I04:IllInstr at 3113E0F4”
On reset it freezes at the splash screen. Left it for 10 mins no response, doesn't respond to key presses.
A second reset once again freezes on splash screen.
Boot into Iriver Firmware and connect to the drive. Can see a database_tmp.tcd file. Move this file off the player along with nvram.bin and reboot the player.
Reboot into RB. this succeeds and try to access DB, asks to initialize.
It finds 12832 entries and stops with message “Building Database... 12832 Found (Stop to Return)” and does nothing. Disk Indicator light blinks regularly. Though it hasn’t frozen. I left it for 1 hr still showing this message.

If I look at debug info for database this is what I see:
Database Info
Initialized: Yes
DB Ready: No
Ram Cache: No
Ram: 0/0B
Progress: -1% (12832 entries)
Curfile: ---
Commit step: 0
Commit delayed: No
Queue length: 0

So I removed everything from the disk leaving only the .rockbox folder and asked it to build the database. It found 576 entries and then stopped paused “Building Database... 576 Found (Stop to Return)”.

I then tried the above empty disk with the most current build version r20632-090405. And it too finds 576 entries and then stopped paused with the message the same as before.

I would like to get this running on my machine but I seemed to be having no luck so far. However as soon as I put back the previous release from the 11 Jul 08 the database functionality works no problem.

Can anyone please offer any suggestions ?

Thanks in advance for any help.

AR

UPDATE:

I have reformatted the drive with Compuapps Swissknife and done a chkdsk using XP Disk tools and asked to fix errors and scan for bad sectors... none found.  I have installed the latest current build r20635-090406 onto the device with defualt settings that come with the new build (there are just 2 folders on the device .rockbox and "System Volume Information") and tried initializing the DB again.

This pauses with the message “Building Database... 362 Found (Stop to Return)” and remains there however as before the rest of rockbox is accessible, DB debug info reads:

Database Info
Initialized: Yes
DB Ready: No
Ram Cache: No
Ram: 0/0B
Progress: -1% (362 entries)
Curfile: ---
Commit step: 0
Commit delayed: No
Queue length: 0

Thanks.

Update 2:

I have put all my music back onto the H360. and I have used the first songdb.exe from this flyspray http://www.rockbox.org/tracker/task/9508?project=1&string=database&type[0]=&sev[0]=&pri[0]=&due[0]=&reported[0]=&cat[0]=&status[0]=open&percent[0]=&opened=&dev=&closed=&duedatefrom=&duedateto=&changedfrom=&changedto=&openedfrom=&openedto=&closedfrom=&closedto=&order=dateopened&sort=desc. The songdb.exe can create the db no problem and when I access the db from the player, it correctly finds all expected tracks and seems complete from my cursory investigation.

I have since moved that correctly generated database and then asked the player to generate its own database from scratch. It stated it succeeded with approx 12500 entries, it asks for a reboot and returns me to the main menu. I unplugged the AC power and it froze. I reset the player and it the database functionality is there but the database is only half complete. It only has artitsts up until 'O' . The songdb.exe generated db had all the artists.

So it would seem I can only generate a full and complete working db using the songdb.exe, the player itself simply cannot do this. These last few tests were with the r20635-090406 build. I am going to see if I can repeat the behaviour seen in the last test again.

Thanks again in advance for any help

A
 R
« Last Edit: April 06, 2009, 07:15:04 AM by alienrider »
Logged

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: H3xx Database Issues with v3.2 and Current Build.
« Reply #1 on: April 06, 2009, 07:08:08 AM »
The test without any music files doesn't tell anything, there's a bug which causes the database initialisation to fail when there are no music files (tracker task #9093). I believe this bug is there since the current database implementation was introduced, ages ago. - Could you try with maybe one known "good" file?

If this works, I would imagine that there is one or two files with bad tags (or too large ones) that break database initialisation for you. So it would be good to know which these are exactly to find out why they break it now and didn't half a year ago. You could try to track them down with a "binary search": put half of the songs on your H300, try building the database - if it works, try the other half - if it doesn't, halve this part again and repeat. If you can find the offending file(s) and could post or send them somewhere or find a difference to working files, this could help fixing the possible bug.
Logged

Offline alienrider

  • Member
  • *
  • Posts: 10
Re: H3xx Database Issues with v3.2 and Current Build.
« Reply #2 on: April 06, 2009, 07:20:04 AM »
Thank you Pixelma for your reply and your information, it is much appreciated.

I will try the binary search and report back with my findings.

btw does the songdb.exe use different code to the RB DB code? As from my latest update to my original post says songdb.exe generated a fully working db no problem, just curious.

Thanks again and I will let you know the outcome.

Kind regards,

A
 R

Update:

I have tried the binary search to locate a file that is causing these DB issues. When I do this the indivdual binary searches work!!  ??? I was fortunate that my first half worked, then I got rid of that half, and copied over half of the remaining records to be tested, they worked, so I removed those files and copied over the rest of the files still to be tested and they worked. In other words when divided up the DB functions seems to function ok. However when all of the music files are on the device it doesn't seem to complete.

I am going to try the whole library to see if it is working now. Will report back.

Kind regards,

A
 R

Update 2:

I have tried my whole music library back on the H360 (~ 10000 songs) and rebuilt the DB and watched it through the debug info under Rockbox System. It seemed to choke on a file called $Recycle Bin/desktop.ini . However it completed and asked for a reboot. When I did this the DB functionality was available but the DB was incomplete missing artists past letter 'P'.

I am deleting the $Recycle Bin folder (as I have seen someone else say this folder causes problems with DB functionality) and I rebuilding the DB again on the full library. I will update as I know more.

Kind regards,

A
 R

Update 3:

I have tried my whole music library back on the H360 after deleting $Recycle Bin/desktop.ini and rebuilt the DB and watched it through the debug info under Rockbox System. It completed at the 12400 entry mark and asked for a reboot. When I did this the DB functionality was available but the DB was incomplete.


So what have I observed:

1. It would seem that somewhere around the 12500 entry point the DB Build routine chokes and fails to build the DB correctly.
2. I can build a complete and working db with songdb.exe.
3. I can build DB's if they are less than half of the size of my total music collection.
4. When building DB's with my full collection, when it asks me to reboot to enable, when it returns me to the main menu, pulling out the AC power (I plug it in for the DB build) freezes the machine and a reset is required. To give further detail prior to pulling out the plug and can go through the RB menus, as soon as I pull out the power it freezes.

Thanks for any help that can be given. I am running out of ideas.  :(

Kind regards,

A
 R
« Last Edit: April 06, 2009, 11:07:31 AM by alienrider »
Logged

Offline floatingkiwi

  • Member
  • *
  • Posts: 4
Re: H3xx Database Issues with v3.2 and Current Build.
« Reply #3 on: April 07, 2009, 07:29:39 PM »
Yes, I never got my problem sorted out either (other post is mine), but I will try the songdb generator as well, thanks for that.  The queer thing for me is that I hadn't put ANY NEW tracks on the machine, but still this problem with all the new releases/builds etc - wish I still had a copy of the old old builds...

However - I now am only having the problem with my 140, not the 340...

Matt
Logged

Offline alienrider

  • Member
  • *
  • Posts: 10
Re: H3xx Database Issues with v3.2 and Current Build.
« Reply #4 on: April 09, 2009, 04:50:00 AM »
Hi,

Can anyone please give me some further pointers on what to try, I am happy to go off and try further suggestions but I have tried a number of scenarios and they seem to be inconclusive, I am unsure of what I should do next to produce meaningful result data.

Even if someone could confirm on the H3xx that they have succesfully created a db with more than 13000 entries (during the db creation process) or with more than 9276 tracks on the player this would be useful, in narrowing down possible causes.

I still believe it might be a be rogue file or tag but the binary search I did couldn't find it (it created dbs fine during the process), and I am unsure what is the ideal tag format to use with RockBox (I have both mp3 VBR/CBR and OGG), to ensure they are tagged correctly for RockBoxs DB.

As I pointed out before r18013-080711 works perfectly no DB problems at all.

Thanks in advance for any assistance anyone can give.


@ floatingkiwi,

Hiya,

Thanks for dropping by, glad to know I am not the only one with this problem. btw how did you get the H340 to build the DB ?

I have 9276 tracks on my machine, how many tracks are on your irivers ? Just trying to get a feel for what kind of usage may generate this issue.

Thanks again hopefully someone may give us some further pointers/insight into this problem.

Kind regards all,

A
 R



Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  H3xx Database Issues with v3.2 and Current Build.
 

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

Page created in 0.072 seconds with 15 queries.