Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

Segfault on starting playback

 

 

First page Previous page 1 2 Next page Last page  View All MythTV users RSS feed   Index | Next | Previous | View Threaded


stichnot at gmail

Sep 3, 2012, 10:05 AM

Post #26 of 31 (285 views)
Permalink
Re: Segfault on starting playback [In reply to]

On Thu, Aug 30, 2012 at 11:27 AM, Stephen Robertson
<stephengrobertson [at] gmail> wrote:
> Anything else I can help with just let me know.
>
> Stephen

If you are set up to build from source, could you try this patch?
http://pastebin.com/7Pj1Kjke

This seems to fix the valgrind uninitialized memory warnings on my
system, and I'm hoping it will fix the crashes on other systems.

Thanks
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


stephengrobertson at gmail

Sep 3, 2012, 11:14 AM

Post #27 of 31 (275 views)
Permalink
Re: Segfault on starting playback [In reply to]

On 3 Sep 2012 18:06, "Jim Stichnoth" <stichnot [at] gmail> wrote:
>
> On Thu, Aug 30, 2012 at 11:27 AM, Stephen Robertson
> <stephengrobertson [at] gmail> wrote:
> > Anything else I can help with just let me know.
> >
> > Stephen
>
> If you are set up to build from source, could you try this patch?
> http://pastebin.com/7Pj1Kjke
>
> This seems to fix the valgrind uninitialized memory warnings on my
> system, and I'm hoping it will fix the crashes on other systems.
>
> Thanks

I'm not currently building from source but have in the past so will try the
patch. It will be tomorrow morning (UK time) before I get a chance to set
it up again.

Thanks for your time looking at this.

Stephen


sijones2010 at gmail

Sep 3, 2012, 12:42 PM

Post #28 of 31 (275 views)
Permalink
Re: Segfault on starting playback [In reply to]

>
>
> If you are set up to build from source, could you try this patch?
> http://pastebin.com/7Pj1Kjke
>
> This seems to fix the valgrind uninitialized memory warnings on my
> system, and I'm hoping it will fix the crashes on other systems.
>
> I've re-built and applied your patch, this has fixed all channel change
hangs (on a blank screen) and playback of recorded tv crashes, i've been
trying to break it and so far so good.

I'll give it a day or 2 to be sure tho!

Thanks very much!


sijones2010 at gmail

Sep 4, 2012, 12:37 AM

Post #29 of 31 (278 views)
Permalink
Re: Segfault on starting playback [In reply to]

On 3 September 2012 20:42, Simon Jones <sijones2010 [at] gmail> wrote:

>
>> If you are set up to build from source, could you try this patch?
>> http://pastebin.com/7Pj1Kjke
>>
>> This seems to fix the valgrind uninitialized memory warnings on my
>> system, and I'm hoping it will fix the crashes on other systems.
>>
>> I've re-built and applied your patch, this has fixed all channel change
> hangs (on a blank screen) and playback of recorded tv crashes, i've been
> trying to break it and so far so good.
>
> I'll give it a day or 2 to be sure tho!
>
> Thanks very much!
>

Spoke too soon, here's the log output, where as when changing channels i
had a hang and then had to do a force restart of myth, now it seems to seg
fault out, this appears to be shown after running for 12 hours. i have
rebooted and can now watch tv again.

Let me know if you want me to do a debug build and trace it.

2012-09-04 08:30:23.596368 I TV: Created player.
2012-09-04 08:30:23.596393 I TV: Changing from None to WatchingLiveTV
2012-09-04 08:30:23.596400 I TV: State is LiveTV & mctx == ctx
2012-09-04 08:30:23.597034 I TV: UpdateOSDInput done
2012-09-04 08:30:23.597042 I TV: UpdateLCD done
2012-09-04 08:30:23.597348 I TV: ITVRestart done
2012-09-04 08:30:23.598387 I TV: Main UI disabled.
2012-09-04 08:30:23.598396 I Using Idle Timer. 240 minutes
2012-09-04 08:30:23.598622 I TV: Entering main playback loop.
2012-09-04 08:30:23.653182 I VDPAU: Added 2 output surfaces (total 4, max
4)
2012-09-04 08:30:25.548278 W
RingBuf(/var/local/mythtv/livetv/2101_20120904073024.mpg): Taking too long
to be allowed to read..
2012-09-04 08:30:29.972660 W MythPainter: 37 images not yet de-allocated.
2012-09-04 08:30:29.972679 I VDPAU Painter: Clearing VDPAU painter cache.
2012-09-04 08:30:30.001665 I Clearing OpenGL painter cache.
2012-09-04 08:30:30.040014 I VDPAU: Created 2 output surfaces.
2012-09-04 08:30:30.040025 I VDPAU: Created VDPAU render device 1920x1080
2012-09-04 08:30:30.066045 N Player(0): Forcing decode extra audio option
on (Video method requires it).
2012-09-04 08:30:30.066420 I AFD: Opened codec 0x1f88ec0, id(H264)
type(Video)
2012-09-04 08:30:30.066426 I AFD: codec AAC/LATM has 6 channels
2012-09-04 08:30:30.068470 I AFD: Opened codec 0x1eeb720, id(AAC/LATM)
type(Audio)
2012-09-04 08:30:30.068487 I AFD: codec AAC/LATM has 2 channels
2012-09-04 08:30:30.070326 I AFD: Opened codec 0x205af20, id(AAC/LATM)
type(Audio)
2012-09-04 08:30:30.070349 I AFD: Opened codec 0x1f63580, id(DVB_SUBTITLE)
type(Subtitle)
2012-09-04 08:30:30.095173 I AO: Opening audio device
'hdmi:CARD=NVidia,DEV=1' ch 2(6) sr 48000 sf signed 16 bit reenc 0
2012-09-04 08:30:30.265062 N AFD: Resetting byte context eof (livetv 1 was
eof 0)
2012-09-04 08:30:30.345254 I VDPAU Painter: Clearing VDPAU painter cache.
2012-09-04 08:30:30.362882 I Clearing OpenGL painter cache.
2012-09-04 08:30:30.400060 I VDPAU: Created 2 output surfaces.
2012-09-04 08:30:30.400071 I VDPAU: Created VDPAU render device 1920x1080
2012-09-04 08:30:30.448483 N Player(0): Forcing decode extra audio option
on (Video method requires it).
2012-09-04 08:30:30.453729 N Player(0): Waited 114ms for video buffers
AAAAAAAAAAAAAL
2012-09-04 08:30:30.456885 I VidOutVDPAU: Added 2 new buffers. New buffer
size 16 (4 decode and 12 process)
2012-09-04 08:30:30.555801 N Player(0): Waited 216ms for video buffers
LAAALLAAAAAAALAA
2012-09-04 08:30:30.622175 C Received Segmentation fault
2012-09-04 08:30:30.722264 I TV: Exiting main playback loop.
2012-09-04 08:30:30.833191 W Player(0): Waited 100ms for decoder to pause
2012-09-04 08:30:30.933276 W Player(0): Waited 100ms for decoder to pause
2012-09-04 08:30:31.033359 W Player(0): Waited 100ms for decoder to pause
2012-09-04 08:30:31.133434 W Player(0): Waited 100ms for decoder to pause
2012-09-04 08:30:31.233522 W Player(0): Waited 100ms for decoder to pause
2012-09-04 08:30:31.333627 W Player(0): Waited 100ms for decoder to pause
2012-09-04 08:30:31.433710 W Player(0): Waited 100ms for decoder to pause
2012-09-04 08:30:31.533866 W Player(0): Waited 100ms for decoder to pause
Segmentation fault


stephengrobertson at gmail

Sep 4, 2012, 2:47 AM

Post #30 of 31 (270 views)
Permalink
Re: Segfault on starting playback [In reply to]

On Mon, Sep 3, 2012 at 6:05 PM, Jim Stichnoth <stichnot [at] gmail> wrote:
> On Thu, Aug 30, 2012 at 11:27 AM, Stephen Robertson
> <stephengrobertson [at] gmail> wrote:
>> Anything else I can help with just let me know.
>>
>> Stephen
>
> If you are set up to build from source, could you try this patch?
> http://pastebin.com/7Pj1Kjke
>
> This seems to fix the valgrind uninitialized memory warnings on my
> system, and I'm hoping it will fix the crashes on other systems.
>
> Thanks

Well I'm making progress,sort of, but no explanation yet!

Built the latest from git, installed and run. Tried my "broken"
recording and it played every time. Then I realised I had not applied
your patch!

Uninstalled, installed from mythbuntu ppa, tried the same recording
and, as expected, on the second attempt I get a segmentation fault.

Removed the mythbunutu version, installed my local build (still
without the patch) and the recording plays back fine.

--version outputs are below. The complied in option differences are

mythbuntu has extra:
using_crystalhd
using_firewire
using_libcec
using_libxml2
using_xrandr
using_xv
using_vaapi
using_libass

I'll keep testing and see if I can get anything else useful. Any
suggestions gratefully received.

Stephen

Mythbuntu:

MythTV Version : v0.26-rc-23-gb5fbc74
MythTV Branch : master
Network Protocol : 75
Library API : 0.26.20120822-1
QT Version : 4.8.1
Options compiled in:
linux profile use_hidesyms using_alsa using_oss using_pulse
using_pulseoutput using_backend using_bindings_perl
using_bindings_python using_bindings_php using_crystalhd using_dvb
using_firewire using_frontend using_hdhomerun using_ceton using_hdpvr
using_iptv using_ivtv using_joystick_menu using_libcec using_libcrypto
using_libdns_sd using_libxml2 using_lirc using_mheg using_opengl_video
using_qtwebkit using_qtscript using_qtdbus using_v4l2 using_x11
using_xrandr using_xv using_bindings_perl using_bindings_python
using_bindings_php using_mythtranscode using_opengl using_vaapi
using_vdpau using_ffmpeg_threads using_live using_mheg using_libass

My Build:
MythTV Version : v0.26-rc-23-gb5fbc74
MythTV Branch : master
Network Protocol : 75
Library API : 0.26.20120822-1
QT Version : 4.8.1
Options compiled in:
linux profile use_hidesyms using_alsa using_oss using_pulse
using_pulseoutput using_backend using_bindings_perl
using_bindings_python using_bindings_php using_dvb using_frontend
using_hdhomerun using_ceton using_hdpvr using_iptv using_ivtv
using_joystick_menu using_libcrypto using_libdns_sd using_lirc
using_mheg using_opengl_video using_qtwebkit using_qtscript
using_qtdbus using_v4l2 using_x11 using_bindings_perl
using_bindings_python using_bindings_php using_mythtranscode
using_opengl using_vdpau using_ffmpeg_threads using_live using_mheg
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


stichnot at gmail

Sep 4, 2012, 7:20 AM

Post #31 of 31 (268 views)
Permalink
Re: Segfault on starting playback [In reply to]

On Tue, Sep 4, 2012 at 2:47 AM, Stephen Robertson
<stephengrobertson [at] gmail> wrote:
> Well I'm making progress,sort of, but no explanation yet!
>
> Built the latest from git, installed and run. Tried my "broken"
> recording and it played every time. Then I realised I had not applied
> your patch!
>
> Uninstalled, installed from mythbuntu ppa, tried the same recording
> and, as expected, on the second attempt I get a segmentation fault.
>
> Removed the mythbunutu version, installed my local build (still
> without the patch) and the recording plays back fine.

At this point, it's pretty clear that uninitialized fields in a
stack-allocated struct are causing the problem. Possibly the
mythbuntu builds are using a compiler version and/or options that lead
to "bad" values of the uninitialized fields, whereas your compiler and
mine happen to be OK most of the time.

In any case, we just have to work out the cleanest fix in the upstream
ffmpeg code that we incorporate, which should be very soon.

Jim
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users

First page Previous page 1 2 Next page Last page  View All MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.