Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 11-05-2019, 11:03 AM   #1
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 25,139
Default If a Serial Storage Device drops during recording, Reaper doesn't know it = data loss

[REPRO STEPS]

1. Create a project.
2. Set the record path so that the media is written to an external serial device aka USB drive.
3. Begin recording a track.
4. Once the track is recording, unplug the USB cable (to replicate what occurs if the connection drops on it's own for various reasons).

Expected behavior: Reaper throws an error or otherwise informs the user that the media has failed etc.

Actual behavior: Reaper continues "recording" as if nothing is wrong though the file is no longer accessible. Reaper could record for hours with the user assuming everything is OK.


[DETAILS]

See this post/thread...

https://forum.cockos.com/showpost.ph...1&postcount=33

It appears that while recording is in progress, if the serial drive/device inadvertently blips or disappears after record is pressed, Reaper either doesn't see or ignores the fact that the storage media no longer exists and continues to report to the user that everything is just fine and that the recording is still occurring - but it isn't...



It appears there are a couple of possibilities...

1. Being External the OS (Win) uses IRP_MJ_WRITE, when the drive is no longer present, the return value switches to FILE INVALID and Reaper isn't actually informed that the write failed, possibly due to caching/lazy writes.

2. The same as above but Reaper is informed and it is a missed case.

In all cases, IF Reaper can detect this, it probably should because someone theoretically can (and actually has per other thread), record for hours thinking everything is fine when in reality no data is being written to disk. It's also possible it went somewhere else (memory/page et al), but too much work to investigate further when the devs likely already know the answer.

Can the devs look into this and comment? We are a little concerned with risk of users losing hours of recording since Reaper doesn't give any clues that something went wrong. Even if recording external USB media is a bad idea, would be nice to know if Reaper can detect this.

Confirmed on Windows and Mac (and linux based on clepsydrae's reply below).
__________________
Clever is not the same as good, clever is from the head, good is from the heart. -Benmont Tench

Last edited by karbomusic; 11-09-2019 at 10:16 AM.
karbomusic is offline   Reply With Quote
Old 11-05-2019, 11:10 AM   #2
clepsydrae
Human being with feelings
 
clepsydrae's Avatar
 
Join Date: Nov 2011
Posts: 2,457
Default

Just confirmed on linux, too. Same behavior: recording appears to continue without issue.
clepsydrae is offline   Reply With Quote
Old 11-09-2019, 10:12 AM   #3
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 25,139
Default

Bumping since I added repro steps to the first post.
__________________
Clever is not the same as good, clever is from the head, good is from the heart. -Benmont Tench
karbomusic is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:44 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.