id summary reporter owner description type status priority milestone component version severity resolution keywords cc mlocked 6297 frontend crashes and colapses X because WriteAudio: buffer underrun nivw2008@… Isaac Richards "I hope this report is clear as to why the frontend crashes X: I am using gentoo and use CFLAGS with added -ggdb flag to build 0.22_alpha20041 then didnt remove the symbols , so gdb will give significant info. the logs below are from three different runs, but as you can see the backend reports audio codec missing, then the frontend crashes. gdb shows: 2009-02-23 20:32:50.052 Connected to database 'mythconverg' at host: localhost 2009-02-23 20:32:50.060 VideoOutputXv: XVideo Adaptor Name: 'ATI Radeon Video Overlay' 2009-02-23 20:32:50.121 OSD Theme Dimensions W: 640 H: 480 [New Thread 0xab4b2b90 (LWP 1734)] greedyhdeint: size changed from 0 x 0 -> 480 x 576 2009-02-23 20:32:51.177 The realtime priority setting is not enabled. 2009-02-23 20:32:51.179 Video timing method: USleep with busy wait 2009-02-23 20:32:51.185 TV: StartPlayer(0, Watching WatchingLiveTV, main) -- end ok 2009-02-23 20:32:51.185 TV: Changing from None to Watching WatchingLiveTV 2009-02-23 20:32:51.185 TV: State is LiveTV & mctx == ctx 2009-02-23 20:32:51.191 TV: UpdateOSDInput done 2009-02-23 20:32:51.191 TV: UpdateLCD done 2009-02-23 20:32:51.192 TV: ITVRestart done 2009-02-23 20:32:51.214 ScreenSaverX11Private: DPMS Deactivated 1 2009-02-23 20:32:51.228 WriteAudio: buffer underrun 2009-02-23 20:32:51.437 AO: dropping back audio_buffer_unused 2009-02-23 20:32:51.489 AO: dropping back audio_buffer_unused 2009-02-23 20:32:51.551 AO: dropping back audio_buffer_unused 2009-02-23 20:32:51.586 AO: dropping back audio_buffer_unused 2009-02-23 20:32:51.651 AO: dropping back audio_buffer_unused 2009-02-23 20:32:51.687 AO: dropping back audio_buffer_unused 2009-02-23 20:32:51.722 AO: dropping back audio_buffer_unused 2009-02-23 20:32:51.820 AO: dropping back audio_buffer_unused 2009-02-23 20:32:51.826 AO: dropping back audio_buffer_unused 2009-02-23 20:32:51.894 AO: dropping back audio_buffer_unused 2009-02-23 20:32:51.960 AO: dropping back audio_buffer_unused 2009-02-23 20:32:51.966 AO: dropping back audio_buffer_unused 2009-02-23 20:32:52.000 AO: dropping back audio_buffer_unused 2009-02-23 20:32:55.893 NVP(0): prebuffering pause 2009-02-23 20:32:55.895 WriteAudio: buffer underrun 2009-02-23 20:32:57.187 NVP(0): prebuffering pause 2009-02-23 20:32:57.189 WriteAudio: buffer underrun 2009-02-23 20:32:58.517 WriteAudio: buffer underrun 2009-02-23 20:32:58.665 WriteAudio: buffer underrun 2009-02-23 20:32:58.898 WriteAudio: buffer underrun mythfrontend: Fatal IO error: client killed [Thread 0xb136ab90 (LWP 1715) exited] 2009-02-23 20:32:59.079 WriteAudio: buffer underrun [Switching to Thread 0xb136ab90 (LWP 1715)] Cannot remove breakpoints because program is no longer writable. It might be running in another process. Further execution is probably impossible. 0xb5655801 in __nptl_death_event () from /lib/libpthread.so.0 ptrace: No such process. mythfrontend logging shows: 2009-02-23 01:42:11.259 MSqlQuery::exec() ""SELECT DISTINCT dirname FROM storagegroup WHERE groupname = 'Default'"" 2009-02-23 01:42:11.259 SG(Default): FindRecordingFile: Searching for '1026_20090223014207.nuv' 2009-02-23 01:42:11.260 SG(Default): FindRecordingDir: Checking '/mythRecordings' for '/mythRecordings/1026_20090223014207.nuv' 2009-02-23 01:42:11.260 SG(Default): FindRecordingFile: Found '/mythRecordings/1026_20090223014207.nuv' 2009-02-23 01:42:11.260 ProgramInfo: GetPlaybackURL: File is local: '/mythRecordings/1026_20090223014207.nuv' 2009-02-23 01:42:11.261 MSqlQuery::exec() ""INSERT INTO inuseprograms (chanid, starttime, recusage, hostname, lastupdatetime, rechost, recdir ) VALUES ('1026', '2009-02-23T01:42:07', 'player', 'whitey', '2009-02-23T01:42:11', 'whitey', '/mythRecordings');"" 2009-02-23 01:42:11.261 write -> 22 33 MESSAGE[]:[]RECORDING_LIST_CHANGE 2009-02-23 01:42:11.262 MythSocket(8c60f10:21): socket is readable 2009-02-23 01:42:11.262 MythSocket(8c60f10:21): cb->readyRead() 2009-02-23 01:42:11.262 read <- 21 51 BACKEND_MESSAGE[]:[]RECORDING_LIST_CHANGE[]:[]empty 2009-02-23 01:42:11.262 MythEvent: RECORDING_LIST_CHANGE 2009-02-23 01:42:11.262 read <- 22 2 OK mythfrontend: Fatal IO error: client killed 2009-02-23 01:42:11.381 MythSocket: readyread thread exit mythbackend log shows: 2009-02-23 20:31:21.464 TVRec(1): Changing from Watching WatchingLiveTV to None 2009-02-23 20:31:21.713 Finished recording Unknown: channel 1026 2009-02-23 20:32:37.218 MainServer::ANN Monitor 2009-02-23 20:32:37.221 adding: whitey as a client (events: 0) 2009-02-23 20:32:37.222 MainServer::ANN Monitor 2009-02-23 20:32:37.224 adding: whitey as a client (events: 1) 2009-02-23 20:32:43.572 MainServer::ANN Playback 2009-02-23 20:32:43.611 adding: whitey as a client (events: 0) 2009-02-23 20:32:43.614 TVRec(1): Changing from None to Watching WatchingLiveTV 2009-02-23 20:32:43.621 TVRec(1): HW Tuner: 1->1 2009-02-23 20:32:48.657 NVR(/dev/v4l/video0): Unknown video codec. Please go into the TV Settings, Recording Profiles and setup the four 'Software Encoders' profiles. Assuming RTjpeg for now. 2009-02-23 20:32:48.662 NVR(/dev/v4l/video0) Error: Unknown audio codec 2009-02-23 20:32:48.710 AutoExpire: CalcParams(): Max required Free Space: 2.0 GB w/freq: 15 min 2009-02-23 20:32:59.153 TVRec(1): Changing from Watching WatchingLiveTV to None 2009-02-23 20:32:59.320 Finished recording Unknown: channel 1026 2009-02-23 20:34:22.823 Expiring 36 MBytes for 1026 @ Mon Feb 23 20:31:05 2009 => Unknown 2009-02-23 20:40:22.836 AutoExpire: CalcParams(): Max required Free Space: 1.0 GB w/freq: 15 min " defect closed major unknown MythTV - General head medium invalid 0