Opened 7 months ago

Closed 7 months ago

#13581 closed Bug Report - General (Fixed)

mythfrontend seg fault Live TV and Recording Playback

Reported by: Mike Bibbings Owned by: Mark Kendall
Priority: minor Milestone: 31.0
Component: MythTV - Video Playback Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

mike@myth-server-1:~$ mythfrontend --version Please attach all output as a file in bug reports. MythTV Version : v32-Pre-13-g8017c3077b MythTV Branch : master Network Protocol : 91 Library API : 32.20200101-1 QT Version : 5.9.5 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_firewire using_frontend using_hdhomerun using_vbox using_ceton using_hdpvr using_ivtv using_joystick_menu using_libcec using_libcrypto using_libdns_sd using_libfftw3 using_libxml2 using_lirc using_mheg using_opengl using_egl using_qtwebkit using_qtscript using_qtdbus using_taglib using_v4l2 using_v4l2prime using_x11 using_libbluray_external using_xrandr using_profiletype using_systemd_notify using_systemd_journal using_drm using_bindings_perl using_bindings_python using_bindings_php using_freetype2 using_mythtranscode using_opengl using_egl using_drm using_vaapi using_nvdec using_vdpau using_ffmpeg_threads using_mheg using_libass using_libxml2

ran Setup Wizard and checked audio (works ALSA:hdmi:CARD=NVidia,DEV=1) and video (fails Error downloading sample to backend. for Test Standard Definition and Test High Defintion continually Downloading Video Sample... but never completes)

LiveTV fails Failed to initialise video output

starting mythfrontend it seg faults, main menu gets displayed for a second or so then the seg fault.

running mythfrontend under gdb (gdb mythfrontend -x ${HOME}/gdbcommands) mythfrontend main menu is displayed (no seg fault) no Live TV (Failed to initialise video output) playback of previously recorded program fails (Failed to initialise video output)

gdb backtrace shows seg fault on exiting mythfrontend

mythfrontend.20200210103742.14158.log shows :

2020-02-10 10:38:06.846940 I [14158/14158] CoreContext mythplayer.cpp:718 (OpenFile) - Player(0): Opening '/myth/mythtv/livetv/85728_20200210103805.ts'
2020-02-10 10:38:06.846963 I [14158/14158] CoreContext mythplayer.cpp:1503 (SetFrameInterval) - Player(0): SetFrameInterval Interval:40000 Speed:1 Scan:Progressive Scan (Mul
tiplier: 1)
2020-02-10 10:38:06.846971 I [14158/14158] CoreContext mythplayer.cpp:515 (detectInterlace) - Player(0): detectInterlace(Ignore Scan, Interlaced Scan, 25, 576) ->Interlaced 
Scan
2020-02-10 10:38:06.849216 N [14158/14158] CoreContext videodisplayprofile.cpp:577 (LoadDB) - VDP: Ignoring profile 25 (decoder vdpau is not available)
2020-02-10 10:38:06.849250 I [14158/14158] CoreContext mythplayer.cpp:5520 (syncWithAudioStretch) - Player(0): Stretch Factor 1, allow passthru 
2020-02-10 10:38:06.849258 I [14158/14158] CoreContext mythvideoout.cpp:72 (Create) - VideoOutput: Allowed renderers: opengl,opengl-yv12
2020-02-10 10:38:06.849263 I [14158/14158] CoreContext mythvideoout.cpp:75 (Create) - VideoOutput: Allowed renderers (filt: dummy): 
2020-02-10 10:38:06.850044 N [14158/14158] CoreContext videodisplayprofile.cpp:577 (LoadDB) - VDP: Ignoring profile 25 (decoder vdpau is not available)
2020-02-10 10:38:06.850057 E [14158/14158] CoreContext mythvideoout.cpp:187 (Create) - VideoOutput: Not compiled with any useable video output method.
2020-02-10 10:38:06.850061 E [14158/14158] CoreContext mythplayer.cpp:387 (InitVideo) - Player(0): Couldn't create VideoOutput instance. Exiting..
2020-02-10 10:38:06.850069 E [14158/14158] CoreContext mythplayer.cpp:2614 (StartPlaying) - Player(0): Unable to initialize video.
2020-02-10 10:38:06.850408 E [14158/14158] CoreContext playercontext.cpp:430 (StartPlaying) - playCtx: StartPlaying() Failed to start player
2020-02-10 10:38:06.850416 C [14158/14158] CoreContext tv_play.cpp:5713 (StartPlayer) - TV::StartPlayer(): Failed to create player.
2020-02-10 10:38:06.850422 D [14158/14158] CoreContext tv_play.cpp:5718 (StartPlayer) - TV::StartPlayer(): (0, WatchingLiveTV, main) -- end error
2020-02-10 10:38:06.850424 E [14158/14158] CoreContext tv_play.cpp:2257 (HandleStateChange) - TV::HandleStateChange(): LiveTV not successfully started
2020-02-10 10:38:06.871428 I [14158/14158] CoreContext tv_play.cpp:2484 (HandleStateChange) - TV::HandleStateChange(): Main UI disabled.

Attached are gdb.txt and mythfrontend log

Note current fixes/31 works fine :

mike@myth-server-1:~$ mythfrontend --version Please attach all output as a file in bug reports. MythTV Version : v31-Pre-1879-g8d7e0df9bd MythTV Branch : fixes/31 Network Protocol : 91 Library API : 31.20200101-1 QT Version : 5.9.5 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_firewire using_frontend using_hdhomerun using_vbox using_ceton using_hdpvr using_ivtv using_joystick_menu using_libcec using_libcrypto using_libdns_sd using_libfftw3 using_libxml2 using_lirc using_mheg using_opengl using_egl using_qtwebkit using_qtscript using_qtdbus using_taglib using_v4l2 using_v4l2prime using_x11 using_libbluray_external using_xrandr using_profiletype using_systemd_notify using_systemd_journal using_drm using_bindings_perl using_bindings_python using_bindings_php using_freetype2 using_mythtranscode using_opengl using_egl using_drm using_vaapi using_nvdec using_vdpau using_ffmpeg_threads using_mheg using_libass using_libxml2

Attachments (3)

gdb.txt (19.7 KB) - added by Mike Bibbings 7 months ago.
mythfrontend.20200210103742.14158.log (1.1 MB) - added by Mike Bibbings 7 months ago.
mythfrontend.20200210111146.1463.log (111.7 KB) - added by Mike Bibbings 7 months ago.

Download all attachments as: .zip

Change History (10)

Changed 7 months ago by Mike Bibbings

Attachment: gdb.txt added

Changed 7 months ago by Mike Bibbings

comment:1 Changed 7 months ago by Mike Bibbings

A different frontend this time (intel vaapi)

No seg fault on running mythfrontend but LiveTV and recordings fail to work.

mythfrontend.20200210111146.1463.log attached

Changed 7 months ago by Mike Bibbings

comment:2 Changed 7 months ago by Mark Kendall

Mike - very strange.

Firstly, all appears to be working here in master on several systems.

Secondly - I see no obvious difference between master and fixes/31 that would account for this difference in behaviour.

Thirdly - I see no reason why the video display profile is failing. The decoder support checks are working (as seen in the logs) for VDPAU, NVDEC and VAAPI - but for some reason the VideoDisplayProfile? code is rejecting VDPAU/VAAPI when it shouldn't.

I've been meaning to fix it falling back to FFmpeg if the profile check fails - but that is a secondary issue here.

comment:3 Changed 7 months ago by Mark Kendall

I've added a fallback in 85f9824a30d399f2 as well as some logging to try and capture what is happening in the event that we need to use a fallback.

comment:4 Changed 7 months ago by Mark Kendall

Owner: set to Mark Kendall
Status: newaccepted

comment:5 Changed 7 months ago by Mark Kendall

Component: MythTV - GeneralMythTV - Video Playback
Milestone: needs_triage31.0

comment:6 Changed 7 months ago by Mike Bibbings

Mark,

I found out what was causing the original issue, both systems where I had the problem are now working on current master branch.

/usr/local/lib/ had a whole load of older libmyth* in it going back to mythtv 30. so I deleted them all, rebuilt, reinstalled and rebooted. I can only presume that for some reason an older lib was being used. On one of the systems there was also a bad plugin in /usr/local/lib/mythtv/plugins/ so I cleaned that up as well.

Sorry for the noise. Please close the ticket.

Mike

comment:7 Changed 7 months ago by Mark Kendall

Resolution: Fixed
Status: acceptedclosed

Thanks Mike

Note: See TracTickets for help on using tickets.