Opened 12 years ago

Closed 12 years ago

#4458 closed defect (fixed)

Program Guide in LiveTV segfault using xshm video renderer

Reported by: Roo <roo.watt@…> Owned by: danielk
Priority: minor Milestone: 0.21
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

After some testing and discussion in IRC it appears that the xshm video rendering method can cause a segfault when entering the Guide in LiveTV.

The frontend will segfault for me *every* time I enter the program guide with livetv if I use xshm video render method and the theme has the video preview width not a multiple of 8.

If it is a multiple of 8, then there is still a problem where the preview image appears to have an origin of 0,0 rather than the theme defined location. Also the video is corrupted as shown in the attached screen shot.

xlib does not segfault if the preview width is not mod8, but it does exhibit the same video preview origin problem.

I am guessing this could be related to the lack of scaling support in the xlib and xshm video renderering methods mentioned in #4220 but I am not sure.

Attachments (3)

gdb.txt (12.6 KB) - added by Roo <roo.watt@…> 12 years ago.
xshm renderer, preview width not mod8
guide_in_livetv.jpg (109.0 KB) - added by Roo <roo.watt@…> 12 years ago.
xshm, width is mod8
video_in_guide_fixup.diff (892 bytes) - added by anonymous 12 years ago.

Download all attachments as: .zip

Change History (7)

Changed 12 years ago by Roo <roo.watt@…>

Attachment: gdb.txt added

xshm renderer, preview width not mod8

Changed 12 years ago by Roo <roo.watt@…>

Attachment: guide_in_livetv.jpg added

xshm, width is mod8

comment:1 in reply to:  description Changed 12 years ago by Roo <roo.watt@…>

Replying to Roo <roo.watt@gmail.com>:

xlib does not segfault if the preview width is not mod8, but it does exhibit the same video preview origin problem.

Please ignore this as this is not the case. Misread my notes. :(

comment:2 Changed 12 years ago by anonymous

Attaching a patch to force the width and height for the video in guide and video in finder to be an integer multiple of 8.

This patch prevents the segfault but the video is still shifted from the preview location and corrupted.

Changed 12 years ago by anonymous

Attachment: video_in_guide_fixup.diff added

comment:3 Changed 12 years ago by danielk

Owner: changed from Isaac Richards to danielk
Status: newassigned

comment:4 Changed 12 years ago by danielk

Resolution: fixed
Status: assignedclosed

(In [15779]) Fixes #4458. Don't try to embed XShm and X11 rendered video in GuideGrid?, they can cause segfaults.

Note: See TracTickets for help on using tickets.