This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#5852 - Running out of space corrupts recorded file
Attached to Project:
Rockbox
Opened by TheHYPO (TheHYPO) - Saturday, 19 August 2006, 02:03 GMT+1
Last edited by Peter D'Hoye (petur) - Sunday, 16 December 2007, 01:03 GMT+1
Opened by TheHYPO (TheHYPO) - Saturday, 19 August 2006, 02:03 GMT+1
Last edited by Peter D'Hoye (petur) - Sunday, 16 December 2007, 01:03 GMT+1
|
DetailsThis could be in other players but I use the H100 iriv. I took the player to a show to record a show but forgot to check the space on it. I ran out of space on the second set and the 200-plus meg file was corrupted and useless (despite almost making it the entire set, and thus losing that data). It would be very desirable for the player to know when there is no longer enough room to save the file and cutoff the recording and save correctly. I admit I'm using a somewhat old firmware so if this has been reported or even fixed, I appologize for wasting time.
|
This task depends upon
Closed by Peter D'Hoye (petur)
Sunday, 16 December 2007, 01:03 GMT+1
Reason for closing: Fixed
Additional comments about closing: Can't reproduce anymore since last fix, I guess I'll hear if it's not ok ;)
Sunday, 16 December 2007, 01:03 GMT+1
Reason for closing: Fixed
Additional comments about closing: Can't reproduce anymore since last fix, I guess I'll hear if it's not ok ;)
http://taperssection.com/index.php?topic=87758.0
There is still an issue: after rebooting, the file becomes 0 bytes.
This seems to be an issue with a failing flush of data not closing the file properly (in file.c)
(partial fix, work in progress: only changes wav_enc, not mp3,...)
EDIT: have only had the panic once -> to be tested!
Also still only implemented for WAV
apart from the panics (which just require a reboot) the recorded file is fine and the FAT is not corrupted (except for the free cluster count)
we're not there yet
EDIT: not failing any more right now. Anybody else testing?
See http://forums.rockbox.org/index.php?topic=12500.msg99879#msg99879 for more detail.
Since this affects all targets and is a filesystem bug (according to some devs) I believe this is a high priority bug.
It is also the last bug left in term of core recording functionality on the iriver h1x0 targets.
Let me know if I can do anything in terms of testing to help with this.
Davide-NYC.
EDIT: made the amount of free space a bit bigger and now it failed... Investigating...
to me it seems as if this is the same file, that continues inte available RAM.
if i watch the size of the file recorded, it is available diskspace + 27 megs. and the result is a corrupt file which lacks those last 27 megs...
If any cached sector flush must occur before seeking and filling-in the header and the disk is already full, attempting to do the fill-in may in fact fail anyway (right?). :) If that's correct, then this unflushed sector data must be discarded first so no further attempt is made to add more data to the file. Ok, I could be full of BS too. Do we even keep a good record of available disk space at all times?
my sansa c200 records natively in WAV, i havent tried to do recordings in MP3.
the WAV file thats is left on disk is reported as corrupt and unreadable by msOS. though after a msScandisk i could import the raw data in audacity, so it seems you are right.
-----
then there's still the problem of the system freezing - if you get the message "The disk is full. Press LEFT to...", and don't press left within a few seconds the system freezes, if the display wasn't lit it just seems as if it is "dead".
Yes there are still bugs with the disk full message: on H10 it shows the incorrect key and also doesn't switch on backlight on keypress.
I'm still hunting down the actual bug that causes disk corruption, it now only happens in 50% of the cases. There is some bug in the setting of the file size, and the code that keeps track of it puzzles me. Other than that, I've had limited time to look at it :/
Personally I'd never take a device out for any serious recording without it being essentially empty. I'm surprised people fill their drives often enough to notice this particular bug.
Bleh, I babble.
But Mike, you were babbling a bit, I will not keep my 80GB drive empty for recording, 25GB free ought to do it ;)
say that you intend to do a long recording of some sort, and that you accidently forget to turn it off, or you just didn't check <u>exactly</u> how long you can record - it could easily be that you have a long recording rendered useless because you're out of space, instead of a long recording that gets cut off when disk runs out.
(it seems you are arguing to keep this bug, and people should blame them selves?) i think rockbox rules, but at the moment OF handles recordings better on the sansa c200.
for some reason my H10 freezes solid if I leave it on the DISK FULL splash too long, don't know if that is related or part of the open issue?
if nobody reports an issue I'll close this one next week