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
translations translations
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
| | |-+  Database needs to be reset after every update
« previous next »
  • Print
Pages: [1]

Author Topic: Database needs to be reset after every update  (Read 1564 times)

Offline gnomacor

  • Member
  • *
  • Posts: 26
Database needs to be reset after every update
« on: February 08, 2025, 06:22:25 PM »
Hello,

I've been having this issue for as long as I've used the ErosQ native port instead of hosted port. Whenever a database update is initiated, manual or auto, after some time it stops playing and hangs (or, if I try to get around it, results in OOM error). When I force restart, it complains "Database not ready" and has to rewrite the entire database, which removes my play history. If I don't play a song when updating in the background, it doesn't hang but nevertheless complains that "Database is not ready", prompting reset.

It happens basically every time it updates, so I cannot enable database auto update as it will basically reinstate the database after every other boot.

Some basic info:
  • The player I am using is Surfans F20, shipped with firmware 2.7.
  • The microSD is 256GB and was formatted via the player's original firmware. (Yes I double checked, it's FAT32.)
  • The song count currently lies at over 10k, with several thousand lines of playtime history exported/imported.
  • Load In RAM is set to Fast.
  • Skin engine usage lies at 257508 bytes.
  • There's no particular affected version; every (native) firmware I've tried is affected. I am currently on the latest nightly (20250209).
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 1194
Re: Database needs to be reset after every update
« Reply #1 on: February 08, 2025, 07:23:21 PM »
There is a database commit plugin that will print out debug info you can also disable all updates with it too
Logged

Offline gnomacor

  • Member
  • *
  • Posts: 26
Re: Database needs to be reset after every update
« Reply #2 on: March 06, 2025, 04:08:59 AM »
Thanks for the direction. Turns out the Load in RAM setting was the culprit for database corruption.

However the freezing issue still persists. Manually updating through the plugin is fine, but once I enable auto commit it hangs. Any idea how I can remedy it?
« Last Edit: March 06, 2025, 04:12:11 AM by gnomacor »
Logged

Offline SoloBSD

  • Member
  • *
  • Posts: 4
Re: Database needs to be reset after every update
« Reply #3 on: April 03, 2025, 08:44:52 PM »
I have experienced the same with same port for a HiFi Walker H2.
Each and every time I power on the device is telling me that Database is not ready and have to rebuild and then music plays for 10 seconds and stops.
On choosing another song I get the OOM error and then it panics. I power off and power on and the same story.

Edit: Raised bug: FS#13591 - Database is not ready
« Last Edit: April 03, 2025, 08:58:25 PM by SoloBSD »
Logged

Offline SoloBSD

  • Member
  • *
  • Posts: 4
Re: Database needs to be reset after every update
« Reply #4 on: April 04, 2025, 01:03:10 PM »
Today I started the device and again: "Database is not ready".
I hit other key to avoid submitting again and all worked fine, old database and playlist were there, music played normally.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Database needs to be reset after every update
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.059 seconds with 17 queries.