Bug 15953 - Scanner gets stuck and never stops if disk is full
: Scanner gets stuck and never stops if disk is full
Status: RESOLVED WONTFIX
Product: SB Touch
Classification: Unclassified
Component: TinySC
: 7.5.0
: PC Windows XP
: -- normal (vote)
: Future
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-03-25 16:33 UTC by Mickey Gee
Modified: 2019-01-25 10:11 UTC (History)
5 users (show)

See Also:
Category: ---


Attachments
Message log with scanner debug enabled (135.57 KB, text/plain)
2010-03-25 16:35 UTC, Mickey Gee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mickey Gee 2010-03-25 16:33:20 UTC
Running TinySC/Fab4 combo with firmware r8665. Testing with 16GB SD card with >8500 MP3 tracks (copies of audio CDs). Don't remember how many tracks total, but that's probably closer to the end.

Scanner gets stuck around 8500 tracks. Tried it twice, go stuck twice. Not sure if related to SD card capacity.

Message log enclosed with scanner debug switches enabled.
Comment 1 Mickey Gee 2010-03-25 16:35:18 UTC
Created attachment 6705 [details]
Message log with scanner debug enabled

In chatting with Andy, it appeared that scanner is in a loop and running, so "stuck" is not a precise term.
Comment 2 Mickey Gee 2010-03-25 16:57:43 UTC
Turns out 16GB card is full. Need to handle this case gracefully.
Comment 3 Chris Owens 2010-03-29 09:43:15 UTC
Andy suggests that we calculate free space in a nonblocking manner after drive mount, and stop the server if there's not enough to store the DB or artwork cache.

We can also look for write errors while writing files.

Felix notes that if we detect we're out of space, we could not bother with the artwork cache.
Comment 4 Chris Owens 2010-03-29 09:53:20 UTC
It occurs to me that maybe some kind of a placeholder file on the media to prevent the user from filling it up might be, and we would then delete that file when we start our scan.  I don't know how that might work, though.
Comment 5 Andy Grundman 2010-03-29 09:55:55 UTC
Hmm interesting idea.  We could write a large-ish test file filled with zeros to see if that much disk space is available, if writing this file fails we know the disk is full.  Of course we don't know how large their drive or library is so we'd have to pick a size that works for most people.
Comment 6 Michael Herger 2019-01-25 10:11:11 UTC
TinySC will not be updated any more.