Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#5956 closed defect (fixed)

VDPAU causes seg fault when running on second X screen

Reported by: Richard Eyton <eyton@…> Owned by: Isaac Richards
Priority: minor Milestone: 0.22
Component: Video Playback Version: head
Severity: low Keywords: VDPAU
Cc: Ticket locked: no

Description

I have my TV connected to my pc as a second x screen (no xinerama/twinview) Using latest SVN I can use VPDAU fine to play files with mythtv on my monitor [:0.0]. When mythtv is running on the TV [:0.1] playing the same files will crash Mythtv with a segmentation fault. Using the normal renderer all is well. I thought that it could be a VDPAU driver issue, however the patched mplayer can play the same files with VDPAU on the second screen without crashing.

I have attached the console output while trying to play a video.

I am running Ubuntu 8.10 kernel 2.6.27 Nvidia driver 180.11 on an 8800GT 512MB

Attachments (5)

VDPAU_console_log.txt (9.9 KB) - added by Richard Eyton <eyton@…> 11 years ago.
gdb.txt (58.9 KB) - added by Ricahrd Eyton <eyton@…> 11 years ago.
myth-console2.txt (12.0 KB) - added by Ricahrd Eyton <eyton@…> 11 years ago.
5956-v1.patch (4.7 KB) - added by danielk 11 years ago.
Possible fix
console-log-patch-5956-v1.txt (15.3 KB) - added by Ricahrd Eyton <eyton@…> 11 years ago.

Download all attachments as: .zip

Change History (16)

Changed 11 years ago by Richard Eyton <eyton@…>

Attachment: VDPAU_console_log.txt added

comment:1 Changed 11 years ago by Richard Eyton <eyton@…>

If you need any further information please let me know.

comment:2 Changed 11 years ago by Dibblah

Status: newinfoneeded_new

Hi,

Please follow the instructions here:

http://www.mythtv.org/docs/mythtv-HOWTO-22.html

To obtain a full backtrace.

Changed 11 years ago by Ricahrd Eyton <eyton@…>

Attachment: gdb.txt added

comment:3 Changed 11 years ago by Ricahrd Eyton <eyton@…>

Hope the backtrace is OK, I have not used gdb before. The action taken was slightly different to the original log as I could not work out how to run mythtv with an argument. This time I started mythfrontend, navigated to a file and played it. Without the debugger running mthfrontend would segfault, with the debugger the screen went black and only kill -9 would close it.

comment:4 Changed 11 years ago by Dibblah

Status: infoneeded_newnew

comment:5 Changed 11 years ago by Ricahrd Eyton <eyton@…>

Update: Since changeset 19241 playing a file with vdpau no longer causes a segfault. It still will not play on a second x screen. I have attached a console log showing the errors.

Changed 11 years ago by Ricahrd Eyton <eyton@…>

Attachment: myth-console2.txt added

Changed 11 years ago by danielk

Attachment: 5956-v1.patch added

Possible fix

comment:6 Changed 11 years ago by danielk

Priority: majorminor
Severity: highlow
Status: newinfoneeded_new

Ricahrd, please test the attached patch

comment:7 Changed 11 years ago by Ricahrd Eyton <eyton@…>

Sorry for the delay, away for christmas.

The patch is successful in that when I use it on my TV it now falls back to a different renderer which has no hardware acceleration. The underlying problem still remains in that VDPAU in mythtv does not work on a second X-screen.

Not sure what you would like me to do ? I can open a new bug report if that would be helpful or provide you with more info if you need it.

Changed 11 years ago by Ricahrd Eyton <eyton@…>

comment:8 Changed 11 years ago by danielk

Status: infoneeded_newnew

Ricahrd, my guess is the driver simply doesn't support hardware acceleration on the second screen; at least that is what it is trying to tell MythTV.

comment:9 Changed 11 years ago by danielk

Resolution: fixed
Status: newclosed

(In [19525]) Fixes #5956. Fall back to another rendering method if the current X11 screen does not support VDPAU.

comment:10 Changed 11 years ago by Ricahrd Eyton <eyton@…>

Hardware acceleration is definately supported on a second screen. If you read the original bug report I state that the patched mplayer is accelerated on the second screen. I have just tested this again and it is still the case. I will leave this bug closed and open a fresh one as the description is now misleading. Many thanks for helping with this.

comment:11 Changed 11 years ago by markk

(In [19682]) Fix VDPAU playback on second screen. Refs #5956.

Note: See TracTickets for help on using tickets.