Opened 7 years ago
Closed 7 years ago
Last modified 7 years ago
#13091 closed Bug Report - General (fixed)
vaapi / vdpau crash in display profile code
Reported by: | Stuart Auchterlonie | Owned by: | Peter Bennett |
---|---|---|---|
Priority: | major | Milestone: | 29.1 |
Component: | MythTV - Video Playback | Version: | v29-fixes |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
My system uses only the Intel graphics from the cpu and therefore uses VAAPI for acceleration.
I hit a situation where the frontend coredumped.
It looks like it's failed to create the vaapi context (happens occasionaly), and we noticed this and coped.
The problem then starts when the new display profile code then goes an selects a vdpau profile, which is wrong for this system. The frontend then tried to load the vdpau libraries and failed and segfaulted.
I'll attach some logs
Attachments (2)
Change History (6)
Changed 7 years ago by
Attachment: | frontend-vaapi-fail-vdpau-fail-crash.log.1 added |
---|
Changed 7 years ago by
Attachment: | frontend-vaapi-fail-vdpau-fail-crash-with-verbose.log added |
---|
comment:1 Changed 7 years ago by
You can see starting at https://code.mythtv.org/trac/attachment/ticket/13091/frontend-vaapi-fail-vdpau-fail-crash-with-verbose.log#L223 that it is clearly deciding (correctly) that vaapi is the way to go (lines 223-225) and then it randomly chooses to try vdpau and fails (lines 226-227)
223 2017-08-04 16:28:38.341663 I VDP: Accepting: cmp(> 0 0) w() h() framerate() codecs() dec(vaapi) cpus(2) skiploop(enabled) rend(openglvaapi) osd(opengl2) osdfade(enabled) deint(vaapionefield,vaapionefield) filt() 224 2017-08-04 16:28:38.341699 I VDP: LoadBestPreferences(1920x1080, 25.000, h264) 225 2017-08-04 16:28:38.341758 I VDP: LoadBestPreferences Result cmp0:> 0 0, cmp1:, prio:1, w:, h:, fps:, codecs:, decoder:vaapi, renderer:openglvaapi, deint:vaapionefield 226 2017-08-04 16:28:38.341797 I VideoOutput: Trying video renderer: 'vdpau' 227 Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
The other log file frontend-vaapi-fail-vdpau-fail-crash.log.1
captures the crash,
but without the --verbose playback. The two taken together should allow us to piece
together what is going wrong.
Looking at https://code.mythtv.org/trac/attachment/ticket/13091/frontend-vaapi-fail-vdpau-fail-crash.log.1#L74 the stack trace goes via videodisplayprofile.cpp:585 which is right around the area of the new code.
Regards Stuart
comment:2 Changed 7 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 Changed 7 years ago by
Owner: | changed from Peter Bennett to Peter Bennett |
---|
gdb backtrace