id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,mlocked 813,LiveTV fails when frontend timesout before backend starts writing,nooneimprt4nt@…,danielk,"As per Daniel's request, I'm opening a new ticket, pasting text from #804 When changing channels (DVB-S) during LiveTV it often takes more than 4 tries for the frontend to see the file the backend is creating (this may be due to having a 98% full EXT3 drive). When this happens, the frontend needs to be restarted to be functional again. As a temporary solution, I have changed the default retries in RingBuffer::OpenFile() to 20, which works every time. I don't know whether this issue is DVB related or not. {{{ 2005-12-13 22:12:37.003 Invalid file handle when opening /var/lib/mythtv/1110_20051213221236.mpg. 4 retries remaining. 2005-12-13 22:12:37.505 Invalid file handle when opening /var/lib/mythtv/1110_20051213221236.mpg. 3 retries remaining. 2005-12-13 22:12:37.580 NVP: Prebuffer wait timed out 10 times. 2005-12-13 22:12:38.007 Invalid file handle when opening /var/lib/mythtv/1110_20051213221236.mpg. 2 retries remaining. 2005-12-13 22:12:38.400 NVP: Prebuffer wait timed out 10 times. 2005-12-13 22:12:38.512 Invalid file handle when opening /var/lib/mythtv/1110_20051213221236.mpg. 1 retries remaining. 2005-12-13 22:12:39.013 Invalid file handle when opening /var/lib/mythtv/1110_20051213221236.mpg. 0 retries remaining. 2005-12-13 22:12:39.224 NVP: Prebuffer wait timed out 10 times. 2005-12-13 22:12:39.518 RingBuf(/var/lib/mythtv/1110_20051213221236.mpg) Error: File I/O problem in 'safe_read()' eno: Bad file descriptor (9) 2005-12-13 22:12:39.580 RingBuf(/var/lib/mythtv/1110_20051213221236.mpg) Error: File I/O problem in 'safe_read()' eno: Bad file descriptor (9) 2005-12-13 22:12:39.642 RingBuf(/var/lib/mythtv/1110_20051213221236.mpg) Error: File I/O problem in 'safe_read()' eno: Bad file descriptor (9) 2005-12-13 22:12:39.644 RingBuf(/var/lib/mythtv/1110_20051213221236.mpg) Error: File I/O problem in 'safe_read()' eno: Bad file descriptor (9) 2005-12-13 22:12:39.706 RingBuf(/var/lib/mythtv/1110_20051213221236.mpg) Error: File I/O problem in 'safe_read()' eno: Bad file descriptor (9) 2005-12-13 22:12:39.768 RingBuf(/var/lib/mythtv/1110_20051213221236.mpg) Error: File I/O problem in 'safe_read()' eno: Bad file descriptor (9) 2005-12-13 22:12:40.044 NVP: Prebuffer wait timed out 10 times. 2005-12-13 22:12:40.864 NVP: Prebuffer wait timed out 10 times. 2005-12-13 22:12:41.685 NVP: Prebuffer wait timed out 10 times. 2005-12-13 22:12:42.507 NVP: Prebuffer wait timed out 10 times. 2005-12-13 22:12:43.327 NVP: Prebuffer wait timed out 10 times. ... }}} Daniel said: nooneimprt4nt, I believe you are experiencing a different problem; we don't wait for the recorder to begin writing data before setting the ringbuffer ready flag, so if it takes longer than the timeout on the ringbuffer reads, things go badly. You should open a seperate ticket on that problem.",defect,closed,minor,0.19,mythtv,head,medium,wontfix,,,0