[mythtv-users] Frontend crash viewing HD-Firewire cap

Andy Alsup aalsup at gmail.com
Fri May 27 20:08:23 UTC 2005


On 4/23/05, Jeff Wormsley <daworm at comcast.net> wrote:
> I recorded a show from the firewire port yesterday.  It plays fine in
> mplayer and in the preview window when viewing recordings, but if I
> select it to play, it crashes the frontend completely.  Here's the
> output from a -v all run, with some (***) comments interspersed:
> 
> [mythtv at mythtv ~]$ mythfrontend -v all
> 2005-04-24 00:34:18.591 New DB connection, total: 1
> Total desktop width=1920, height=1080, numscreens=1
> 2005-04-24 00:34:18.597 Using screen 0, 1920x1080 at 0,0
> 2005-04-24 00:34:18.600 mythfrontend version: 0.18.20050409-1 www.mythtv.org
> 2005-04-24 00:34:18.601 Enabled verbose msgs :all
> 2005-04-24 00:34:18.863 max_width: 1920 max_height: 1080
> 2005-04-24 00:34:18.946 Switching to wide mode (Minimalist-wide)
> 2005-04-24 00:34:19.693 New DB connection, total: 2
> 2005-04-24 00:34:19.695 /home/mythtv/.mythtv/joystickmenurc not found.
> 2005-04-24 00:34:19.695 Joystick disabled.
> 2005-04-24 00:34:19.725 Registering Internal as a media playback plugin.
> 2005-04-24 00:34:19.740 Registering MythDVD DVD Media Handler as a media
> handler
> 2005-04-24 00:34:19.741 Registering MythDVD VCD Media Handler as a media
> handler
> Failed to run 'cdrecord --scanbus'
> 2005-04-24 00:34:19.888 Registering MythMusic Media Handler as a media
> handler
> SIP listening on IP Address 192.168.254.10:5060 NAT address 192.168.254.10
> 2005-04-24 00:34:20.464 Starting media monitor.
> 2005-04-24 00:34:32.210 All Programs
> 2005-04-24 00:34:32.702 Connecting to backend server:
> 192.168.254.10:6543 (try 1 of 5)
> 2005-04-24 00:34:32.702 write->16 21      MYTH_PROTO_VERSION 15:
> 2005-04-24 00:34:32.707 Using protocol version 15
> 2005-04-24 00:34:32.708 write->16 42      ANN (*** hidden)
> 2005-04-24 00:34:32.716 write->16 21      QUERY_RECORDINGS Play:
> 2005-04-24 00:34:33.393 42      ANN Playback (*** hidden) 1
> 2005-04-24 00:34:34.520 Output filters for this channel are: ''
> adding pes stream at pid 0x840 with type 2
> adding pes stream at pid 0x841 with type 129
> 2005-04-24 00:34:34.560 AVFD
> 2005-04-24 00:34:34.561 AVFD: Opening Stream #0: codec id 2
> 2005-04-24 00:34:34.562 Using libmpeg2 for video decoding
> 2005-04-24 00:34:34.562 AVFD: Looking for decoder for 2
> 2005-04-24 00:34:34.562 AVFD
> 2005-04-24 00:34:34.563 AVFD: Opening Stream #1: codec id 86020
> 2005-04-24 00:34:34.563 AVFD: Looking for decoder for 86020
> 2005-04-24 00:34:34.563 Stream #1 (audio track #0) is an audio stream
> with 2 channels.
> 2005-04-24 00:34:34.564 Auto-selecting AC3 audio track (stream #1).
> 
> (***) I don't currently have SPDIF working on this system.  Could this
> cause a problem?
> 
> 2005-04-24 00:34:34.564 Initializing audio parms from audio track #0.
> 2005-04-24 00:34:34.565 Estimated bitrate = 384
> 2005-04-24 00:34:34.671 Position map filled from DB to: 193394
> 2005-04-24 00:34:34.673 SyncPositionMap prerecorded, from DB: 6164 entries
> 2005-04-24 00:34:34.673 SyncPositionMap, new totframes: 193394, new
> length: 7735, posMap size: 6164
> Input #0, mpegts, from
> '/video/recordings//1207_20050421132500_20050421151500.nuv':
>   Stream #0.0[0x840]: Video: mpeg2video
>   Stream #0.1[0x841]: Audio: ac3, 48000 Hz, stereo, 384 kb/s
> 2005-04-24 00:34:34.674 Position map found
> 2005-04-24 00:34:34.675 Commercial Detection initialized: width = 0,
> height = 0, fps = 29.97, method = 255
> 2005-04-24 00:34:34.676 Using Sample Spacing of 4 horizontal & 4
> vertical pixels.
> 2005-04-24 00:34:34.677 CommDetect::ClearAllMaps()
> 2005-04-24 00:34:34.678 Killing AudioOutputDSP
> 2005-04-24 00:34:34.679 Opening audio device '/dev/dsp'.
> 2005-04-24 00:34:34.679 Opening OSS audio device '/dev/dsp'.
> 2005-04-24 00:34:34.680 Audio fragment size: 4096
> 2005-04-24 00:34:34.681 Audio Stretch Factor: 1
> 2005-04-24 00:34:34.681 Ending reconfigure
> 2005-04-24 00:34:34.684 kickoffOutputAudioLoop: pid = 5735
> 2005-04-24 00:34:34.684 OutputAudioLoop: Play Event
> 2005-04-24 00:34:34.684 Broadcasting free space avail
> 2005-04-24 00:34:34.688 Over/underscan. V: 0, H: 0, XOff: 0, YOff: 0
> 2005-04-24 00:34:34.694 Using XV port 153
> 2005-04-24 00:34:34.697 Image size. dispxoff 240, dispyoff: 0, dispwoff:
> 1440, disphoff: 1080
> 2005-04-24 00:34:34.698 Image size. imgx 0, imgy: 0, imgw: 0, imgh: 0
> 2005-04-24 00:34:34.798 Broadcasting free space avail
> 2005-04-24 00:34:34.802 Broadcasting free space avail
> 2005-04-24 00:34:34.806 Broadcasting free space avail
> 2005-04-24 00:34:34.810 Broadcasting free space avail
> 2005-04-24 00:34:34.814 Broadcasting free space avail
> 2005-04-24 00:34:34.818 Broadcasting free space avail
> 2005-04-24 00:34:34.822 Broadcasting free space avail
> 2005-04-24 00:34:34.826 Broadcasting free space avail
> 2005-04-24 00:34:34.830 Broadcasting free space avail
> 2005-04-24 00:34:34.834 Broadcasting free space avail
> 2005-04-24 00:34:34.838 Broadcasting free space avail
> 2005-04-24 00:34:34.842 Broadcasting free space avail
> 2005-04-24 00:34:34.846 Broadcasting free space avail
> 2005-04-24 00:34:34.850 Broadcasting free space avail
> 2005-04-24 00:34:34.854 Broadcasting free space avail
> 2005-04-24 00:34:34.858 Broadcasting free space avail
> 2005-04-24 00:34:34.862 Broadcasting free space avail
> 2005-04-24 00:34:34.866 Broadcasting free space avail
> 2005-04-24 00:34:34.870 Broadcasting free space avail
> 2005-04-24 00:34:34.874 Broadcasting free space avail
> 2005-04-24 00:34:34.878 Broadcasting free space avail
> 2005-04-24 00:34:34.882 Broadcasting free space avail
> 2005-04-24 00:34:34.886 Broadcasting free space avail
> 2005-04-24 00:34:34.890 Broadcasting free space avail
> Text area set as scrolling, but no movement
> 
> (***) What is the above?  I don't recall seeing this before
> 
> 2005-04-24 00:34:34.894 Broadcasting free space avail
> 2005-04-24 00:34:34.898 Broadcasting free space avail
> 2005-04-24 00:34:34.902 Broadcasting free space avail
> 2005-04-24 00:34:34.906 Broadcasting free space avail
> 2005-04-24 00:34:34.907 Realtime priority would require SUID as root.
> 
> (***) Every time I've tried the commands I've seen to run the frontend
> as root, it won't load, so I still run as a normal user.
> 
> 2005-04-24 00:34:34.908 Changing from None to WatchingPreRecorded
> 2005-04-24 00:34:34.910 OutputAudioLoop: audio paused
> 2005-04-24 00:34:34.910 16384 bytes free on soundcard
> 2005-04-24 00:34:34.944 AvFormatDecoder: Video has changed from 0x0 to
> 1920x1080.
> 2005-04-24 00:34:34.944 CommDetect::SetVideoParams called with aspect =
> 1.77778
> 2005-04-24 00:34:34.948 Snapping height to avoid scaling: disphoff 1080,
> dispyoff: 0
> 2005-04-24 00:34:34.948 Snapping width to avoid scaling: dispwoff 1920,
> dispxoff: 0
> 2005-04-24 00:34:34.948 Image size. dispxoff 0, dispyoff: 0, dispwoff:
> 1920, disphoff: 1080
> 2005-04-24 00:34:34.948 Image size. imgx 0, imgy: 0, imgw: 1920, imgh: 1080
> 2005-04-24 00:34:35.087 nVidiaVideoSync: VBlank ioctl did not work,
> unimplemented in this driver?
> 2005-04-24 00:34:35.087 DRMVideoSync: Could not open device
> /dev/dri/card0, No such file or directory
> 2005-04-24 00:34:35.087 RTCVideoSync: Could not set RTC frequency,
> Permission denied.
> 2005-04-24 00:34:35.088 Using video as timebase
> 2005-04-24 00:34:35.088 Video timing method: USleep with busy wait
> 
> (***) I have also never been able to get any timing method except USleep
> to work.  Could be a problem related to my nvidia driver issues (more below)
> 
> 2005-04-24 00:34:35.088 Refresh rate: 33392, frame interval: 33366
> 2005-04-24 00:34:35.088 waiting for prebuffer...
> 2005-04-24 00:34:35.223 prebuffer wait timed out..
> 2005-04-24 00:34:35.223 waiting for prebuffer...
> 2005-04-24 00:34:35.358 prebuffer wait timed out..
> 2005-04-24 00:34:35.358 waiting for prebuffer...
> 2005-04-24 00:34:35.493 prebuffer wait timed out..
> 2005-04-24 00:34:35.493 waiting for prebuffer...
> 2005-04-24 00:34:35.628 prebuffer wait timed out..
> 2005-04-24 00:34:35.628 waiting for prebuffer...
> 2005-04-24 00:34:35.763 prebuffer wait timed out..
> 2005-04-24 00:34:35.763 waiting for prebuffer...
> 2005-04-24 00:34:35.898 prebuffer wait timed out..
> 2005-04-24 00:34:35.898 waiting for prebuffer...
> terminate called after throwing an instance of 'std::bad_alloc'
>   what():  St9bad_alloc
> Aborted
> 
> (***) This is one of the least informative error messages I have ever
> seen. :-)
> 
> I have tried just about every combinations of settings imaginable, and
> it always crashes the same.  I suspect it may have something to do with
> my problem with the nvidia drivers for my FX 5200.  I am stuck running
> 6629 because 7167 and 7174 don't display correctly on my system.  But
> under 6629, running things like glxgears crashes X (not just the app,
> but all of X).  Any standard def stuff, such as things captured on the
> PVR-250 play fine.  I can open the .nuv file for this recording in
> mplayer and it plays fine.  But not within myth.
> 
> Any clues?
> 
> Thanks,
>   Jeff.
> 
> 
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> 

I see this same thing on roughly half the INHD or Discovery firewire
caps.  Others play fine.

Since it seems to consistently break on the same streams, I would
infer from that there's something in the beginning of the stream that
isn't whats expected.

Does anyone know where the bad_alloc is coming from?


More information about the mythtv-users mailing list