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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Device hangs while trying to update the database
« previous next »
  • Print
Pages: [1]

Author Topic: Device hangs while trying to update the database  (Read 251 times)

Offline dev4223

  • Member
  • *
  • Posts: 5
Device hangs while trying to update the database
« on: February 03, 2023, 09:47:04 AM »
Hifi Walker H2
Rockbox AIGO EROS Q / K

Since the dev build from January 27th my device hangs when I try to update the database. I waited for more than 15 minutes. Only a shutdown is possible.
The database initialization works like expected, after deleting all "database_" files on my device.

I went back to the dev build from January 26th (last changes from January 24th) and the datebase update worked.

The changelog from January 27th is here: https://download.rockbox.org/daily/changelogs/changes-20230127.html

Could these changes have something to do with these effects?
Logged

Offline dconrad

  • Developer
  • Member
  • *
  • Posts: 135
Re: Device hangs while trying to update the database
« Reply #1 on: February 03, 2023, 12:17:47 PM »
It sure seems possible that it could be related - there do seem to be a couple quick fixes there around midnight when the nightly builds would've happened though. Could you try it with the latest dev build and see if it's reproducible there?

For what it's worth, I just tried it here and the database update worked as expected. I'm on the native port, but I would think this isn't device- or port-specific.

Also, about how large of a library is this?
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 880
Re: Device hangs while trying to update the database
« Reply #2 on: February 03, 2023, 03:35:44 PM »
I haven't noticed any issues with those patches having updated my db 2 or 3 times since but I did see an area I need to look at here: https://github.com/Rockbox/rockbox/blob/master/apps/tagcache.c#L747

I think i need to add a lseek when skipping the tag data

Does updating work after you reinitialized the db?
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 880
Re: Device hangs while trying to update the database
« Reply #3 on: February 03, 2023, 03:43:59 PM »
Also if you goto debug>database info you should be able to see the progress of the update now (it doesn't auto update often so scroll up and down to redraw faster) that should give you an idea of how fast its moving
Logged

Offline dev4223

  • Member
  • *
  • Posts: 5
Re: Device hangs while trying to update the database
« Reply #4 on: February 03, 2023, 07:51:19 PM »
Yes, it's the same with the dev build from January 3rd. And no, updating doesn't work after reinitializing the db neither. I have  ~6200 files in my database.
And while it hangs on updating I can't do any actions, just a reboot. So I can't have a look into debug>database to see the progress, because I can't get there.
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 880
Re: Device hangs while trying to update the database
« Reply #5 on: February 04, 2023, 02:26:35 AM »
Ive verified its an issue in the sim it looks like corruption so probably something Im missing, check back in  day or two
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 880
Re: Device hangs while trying to update the database
« Reply #6 on: February 04, 2023, 11:45:55 AM »
Fixed as of today
https://gerrit.rockbox.org/r/c/rockbox/+/5117
Logged

Offline dev4223

  • Member
  • *
  • Posts: 5
Re: Device hangs while trying to update the database
« Reply #7 on: February 05, 2023, 11:49:34 AM »
Great, thanx for the fix! Tested it and updating the db works again!
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 880
Re: Device hangs while trying to update the database
« Reply #8 on: February 05, 2023, 05:03:52 PM »
Great! Thanks for the report!!
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Device hangs while trying to update the database
 

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

Page created in 0.059 seconds with 18 queries.