FS#7253 - Dircache goes crazy

Attached to Project: Rockbox
Opened by Kévin Ferrare (TiMiD) - Saturday, 02 June 2007, 14:46 GMT
Last edited by Kévin Ferrare (TiMiD) - Friday, 06 February 2009, 00:17 GMT
Task Type Bugs
Category Operating System/Drivers
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No



I've got a strange behaviour with dircache : one reboot on 2 dircache is enabled, and the other one it isn't.
1 time on 2 (when dircache will be enabled for this session) I get the message "scanning disk ..." at boot time.
I don't know if I'm clear, here is what I get :

Power on
"scanning disk ..."
I can use direcache
Power off
Power on
No message and dircache is not activated (it is in the options, but disk spins in file browser)
Power off

I've tried reseting the settings, changed nothing.
I don't really get what's going on.

I'm using the today's build (2007/06/02) but I've got this problem since ... well maybe 2 or 3month after an update, I don't remember exactly.

I don't think it's related to bug #6735 because it's easily repeatable and doesn't depends of the font used.

Am I the only one to get this behavior ?
This task depends upon

Closed by  Kévin Ferrare (TiMiD)
Friday, 06 February 2009, 00:17 GMT
Reason for closing:  Out of Date
Additional comments about closing:  I could be wrong but it seems to be working now
Comment by Peter D'Hoye (petur) - Saturday, 14 July 2007, 21:10 GMT
can't reproduce.... I also sometimes get the 'Scanning' splash at boot but have yet to find a way to reproduce that
Comment by Steve Bavin (pondlife) - Friday, 05 October 2007, 12:44 GMT
If I repeatedly start and immediately shut down my H340, I get a "Scanning disk..." splash every OTHER time I start up.

USB is not involved at all.

If I let the player run for awhile before shutting down, this doesn't happen. So perhaps it's a result of shutting down while the audio is still being buffered?

Whenever I check the dircache status, it's active, and size is well below it's limit (about 1MB, 13829 entries).
Comment by Steve Bavin (pondlife) - Friday, 05 October 2007, 16:37 GMT
Just discovered I can reproduce this without actually playing any music, just starting up to the file browser and shutting down while the disk is active.

I am starting with a completed build of the dircache, and assuming that the fact that a scan had completed would mean that no further foreground scan was needed, but if I shut down during a background scan, it then triggers another foreground scan on the next boot.
Comment by Andrew Mahone (Unhelpful) - Friday, 12 December 2008, 04:28 GMT
I am starting my Gigabeat S, opening the file browser, and shutting down while the disk is still active. This does not seem to cause any problems on the next boot, although the shutdown takes a few seconds longer than if I wait until the disk stops - perhaps at some point RB started waiting for background scans to finish before shutting down?
Comment by Kévin Ferrare (TiMiD) - Saturday, 13 December 2008, 01:02 GMT
This bug was the main reason that pushed me to flash my player ; but now that dircache isn't executed at every startup (by feature) even on background, I cannot tell whether it's fixed or not
Comment by Thomas Martitz (kugel.) - Thursday, 05 February 2009, 18:30 GMT
Is this a bug after all? I thought it's intended to only show the splash if the dircache was invalidated and needs to be rebuilt. As in you should NOT always get the scanning disk splash.