Modify
Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 14 months ago

Closed 13 months ago

Last modified 13 months ago

#11430 closed Bug Report - Crash (fixed)

crash with amd catalyst (proprietary) driver

Reported by: pmb@… Owned by: natanojl
Priority: minor Milestone: 0.26.1
Component: MythTV - Video Playback Version: 0.26-fixes
Severity: medium Keywords:
Cc: Ticket locked: no

Description (last modified by wagnerrp)

My GPU has really bad performance with the open source driver, and HD playback was jerky, so I switched to the proprietary driver. It is very fast, but I get crashes with mythtv:

  1. With OpenGL it crashes when I start any TV, live or recording. Log including stack trace is attached. Main part of stack trace:
*** Error in `mythfrontend': free(): invalid pointer: 0x00000000069dd1a0 ***
======= Backtrace: =========
/usr/lib/libc.so.6(+0x7ab06)[0x7ff65d163b06]
/usr/lib/libc.so.6(+0x7b883)[0x7ff65d164883]
/usr/local/lib/libmythtv-0.26.so.0(+0x55c1c4)[0x7ff6611ea1c4]
/usr/local/lib/libmythtv-0.26.so.0(+0x55c939)[0x7ff6611ea939]
/usr/local/lib/libmythtv-0.26.so.0(+0x55d34f)[0x7ff6611eb34f]
/usr/local/lib/libmythtv-0.26.so.0(+0x56235d)[0x7ff6611f035d]
/usr/local/lib/libmythtv-0.26.so.0(+0x56304e)[0x7ff6611f104e]
/usr/local/lib/libmythtv-0.26.so.0(+0x4f08bf)[0x7ff66117e8bf]
/usr/local/lib/libmythtv-0.26.so.0(_ZN10MythPlayer9InitVideoEv+0xe2)[0x7ff6610e2422]
/usr/local/lib/libmythtv-0.26.so.0(_ZN10MythPlayer12StartPlayingEv+0x87)[0x7ff6610e3457]
/usr/local/lib/libmythtv-0.26.so.0(_ZN13PlayerContext12StartPlayingEi+0x28)[0x7ff6610fb648]
  1. When setting the renderer to xv-blit, it works, but the deinterlacer gets stuck at "One Field" even though I configure a different one, and it sometimes crashes when I exit video playback. I then get a straight segmentation fault, no stack trace.

The OpenGL problem (1) is the main issue, but I though that (2) may be related, and it's the current (bad) work-around.

Attachments (5)

opengl.txt (43.9 KB) - added by pmb@… 14 months ago.
Output of mythfrontend when attempting to play a recorded TV show
opengl-dbg.txt (42.4 KB) - added by pmb@… 14 months ago.
Log as above, but with debug messages. There is not many extra messages.
myth-stacktrace.txt (81.5 KB) - added by pmb@… 14 months ago.
gdb output using commands on mythtv.org
myth-stacktrace.2.txt (81.5 KB) - added by pmb@… 14 months ago.
gdb output using commands on mythtv.org
11430.patch (466 bytes) - added by natanojl 14 months ago.

Download all attachments as: .zip

Change History (18)

Changed 14 months ago by pmb@…

Output of mythfrontend when attempting to play a recorded TV show

comment:1 Changed 14 months ago by pmb@…

System info:
Distribution: Arch Linux
GPU: Radeon 6770
Kernel: 3.7.10-1-ck
X.org: 1.13.2.901 (1.13.3 RC 1)
AMD driver: 9.012-121219a-15192C-ATI -- OpenGL version 4.2.12002

Changed 14 months ago by pmb@…

Log as above, but with debug messages. There is not many extra messages.

comment:2 Changed 14 months ago by wagnerrp

  • Description modified (diff)
  • Status changed from new to infoneeded_new

We can't do anything with a backtrace if you're using stripped binaries. Recompile MythTV, and leave the debugging symbols in.

comment:3 Changed 14 months ago by pmb@…

Even when I built with debugging enabled, passing --compile-type=debug to ./configure, the stack trace is no more useful. I followed the steps on how to get info with gdb, and that seems more promising. I will attach that.

Changed 14 months ago by pmb@…

gdb output using commands on mythtv.org

Changed 14 months ago by pmb@…

gdb output using commands on mythtv.org

comment:4 Changed 14 months ago by pmb@…

Attachment form doesn't work; file is here: http://www.fa2k.net/misc/myth-stacktrace.txt

comment:5 Changed 14 months ago by wagnerrp

Are these just three different copies of the same stacktrace?

comment:6 Changed 14 months ago by pmb@…

Yes, they are the same. Sorry, but the submit button did not respond

Changed 14 months ago by natanojl

comment:7 Changed 14 months ago by natanojl

Can you try the attached patch?

comment:8 Changed 14 months ago by pmb@…

That patch fixes the crash! Now I get a static, almost completely green screen, but I do hear the audio and can access the "M" menu. So this is a different problem, probably also related to the ATI drivers. I don't know how to approach it, but I'll submit a bug if I can think of how to get some more info. Thanks for the patch.

comment:9 Changed 14 months ago by pmb@…

Just as a piece of further info, I gave up on Arch, and I'm using a RHEL-based distro. OpenGL now works without artifacts or crashes, but I get better performance (perfect playback, or very close to that) on xv-blit, so I'm using that. (it's a slightly different version of the AMD driver, because I couldn't get the ones from amd.com to install on Arch. The 3.8 kernel gave me lots of trouble, and this is why I ditched Arch, but I think the open source driver had better performance on that, so maybe I can move to that driver in the far future)

comment:10 Changed 13 months ago by natanojl

  • Owner set to natanojl
  • Status changed from infoneeded_new to assigned

comment:11 Changed 13 months ago by Jonatan Lindblad <jlindblad@…>

  • Resolution set to fixed
  • Status changed from assigned to closed

In 5769dca4c4ed442b62741e9abeeb2e3490d9b909/mythtv:

OpenGLVideo: Fix a double free in AddFilter?() when OptimiseFilters?() fails

Fixes #11430

comment:12 Changed 13 months ago by Jonatan Lindblad <jlindblad@…>

In f1715d057f42d22a08002fa69790cc08a7306dbc/mythtv:

OpenGLVideo: Fix a double free in AddFilter?() when OptimiseFilters?() fails

Fixes #11430
(cherry picked from commit 5769dca4c4ed442b62741e9abeeb2e3490d9b909)

comment:13 Changed 13 months ago by natanojl

  • Milestone set to 0.26.1

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.