Opened 7 years ago

Closed 6 years ago

#11162 closed Bug Report - General (Upstream Bug)

Mythfrontend playback freezes seconds from end of recording with VAAPI playback profile

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

Description

Mythfrontend picture freezes seconds from the end of a recording and never recovers when Video, Playback, Current Video Playback Profile is set to "VA API Normal" or "OpenGL" but works fine without any graphics card decoding acceleration when using "High Quality" etc.

Ubuntu 12.04 32bit with mythtv Radeon HD 5450 with fglrx-updates.

The last lines of /var/log/mythtv/mythfrontend.log

Oct 9 00:45:56 mythical mythlogserver: mythfrontend[7730]: I CoreContext? tv_play.cpp:2155 (HandleStateChange?) TV: Attempting to change from WatchingPreRecorded? to None Oct 9 00:45:56 mythical mythlogserver: mythfrontend[7730]: W CoreContext? mythpainter.cpp:34 (Teardown) MythPainter?: 6 images not yet de-allocated. Oct 9 00:45:56 mythical mythlogserver: mythfrontend[7730]: I CoreContext? mythpainter_ogl.cpp:62 (ClearCache?) Clearing OpenGL painter cache. Oct 9 00:45:56 mythical mythlogserver: mythfrontend[7730]: I CoreContext? mythrender_opengl1.cpp:280 (DeleteOpenGLResources) OpenGL1: Deleting OpenGL Resources Oct 9 00:45:56 mythical mythlogserver: mythfrontend[7730]: I CoreContext? mythrender_opengl.cpp:1042 (DeleteOpenGLResources) OpenGL: Deleting OpenGL Resources Oct 9 00:45:56 mythical mythlogserver: mythfrontend[7730]: I CoreContext? audio/audiopulsehandler.cpp:322 (SuspendInternal?) Pulse: PulseAudio? resume OK Oct 9 00:45:56 mythical mythlogserver: mythfrontend[7730]: I CoreContext? tv_play.cpp:2394 (HandleStateChange?) TV: Changing from WatchingPreRecorded? to None Oct 9 00:45:56 mythical mythlogserver: mythfrontend[7730]: I CoreContext? screensaver-x11.cpp:161 (RestoreDPMS) ScreenSaverX11Private: DPMS Reactivated 1 Oct 9 00:45:56 mythical mythlogserver: mythfrontend[7730]: I CoreContext? tv_play.cpp:2155 (HandleStateChange?) TV: Attempting to change from None to None Oct 9 00:45:56 mythical mythlogserver: mythfrontend[7730]: I CoreContext? tv_play.cpp:405 (StartTV) TV: Exiting main playback loop. Oct 9 00:45:56 mythical mythlogserver: mythfrontend[7730]: N CoreContext? mythmainwindow.cpp:2606 (PauseIdleTimer?) Resuming idle timer nder_opengl1.cpp:280 (DeleteOpenGLResources) OpenGL1: Deleting OpenGL Resources Oct 9 00:45:56 mythical mythlogserver: mythfrontend[7730]: I CoreContext? mythre nder_opengl.cpp:1042 (DeleteOpenGLResources) OpenGL: Deleting OpenGL Resources Oct 9 00:45:56 mythical mythlogserver: mythfrontend[7730]: I CoreContext? audio/ audiopulsehandler.cpp:322 (SuspendInternal?) Pulse: PulseAudio? resume OK Oct 9 00:45:56 mythical mythlogserver: mythfrontend[7730]: I CoreContext? tv_pla y.cpp:2394 (HandleStateChange?) TV: Changing from WatchingPreRecorded? to None Oct 9 00:45:56 mythical mythlogserver: mythfrontend[7730]: I CoreContext? screen saver-x11.cpp:161 (RestoreDPMS) ScreenSaverX11Private: DPMS Reactivated 1 Oct 9 00:45:56 mythical mythlogserver: mythfrontend[7730]: I CoreContext? tv_pla y.cpp:2155 (HandleStateChange?) TV: Attempting to change from None to None Oct 9 00:45:56 mythical mythlogserver: mythfrontend[7730]: I CoreContext? tv_pla y.cpp:405 (StartTV) TV: Exiting main playback loop. Oct 9 00:45:56 mythical mythlogserver: mythfrontend[7730]: N CoreContext? mythma inwindow.cpp:2606 (PauseIdleTimer?) Resuming idle timer Oct 9 mythical mythlogserver: mythfrontend[7730]: N CoreContext? mythma inwindow.cpp:2606 (PauseIdleTimer?) Resuming idle timer

Attachments (1)

gdb.txt (50.7 KB) - added by info@… 7 years ago.
Backtrace of mythfrontend.real

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by info@…

Attachment: gdb.txt added

Backtrace of mythfrontend.real

comment:1 Changed 7 years ago by info@…

Further investigation has narrowed this bug down to Compiz not running with VAAPI Normal video plackback profile. That is to say that when I login to a standard Ubuntu Session playback works fine without it freezing at the end of playing recorded or live tv.

If I login to a Ubuntu 2D Session (with Compiz disabled) the error occurs everytime both on live TV when I try to stop it or seconds before a recorded playback ends. Of course up until the error occurs playback is fine, in fact better than with Compiz enabled because Compiz uses so much system resources with video playback.

I've attached a backtrace of the Mythfrontend.real error.

comment:2 Changed 7 years ago by info@…

I've also just noticed purely by chance that the mythfrontend is actually not frozen - just the picture it's displaying. That is it appears to not respond to any key strokes from the remote control or keyboard however it actually is still working it's just not redrawing the display. If I use X11vnc to display and control mythfrontend on a different PC via a VNC client Mythfrontend can be controlled and the picture, menus etc display fine when using using either remote, or keyboard on either PC but it's only redrawing the picture on the VNC client. When I play another recording the display directly connected to the mythfrontend client PC starts working again and plays the recording normally until the recording ends with the picture frozen on the last frame of the recording.

comment:3 Changed 7 years ago by info@…

Just to clarify after further investigation, the freezing of the mythfrontend display is on the last frame played before the live tv, recording, or video is cancelled or finishes when it reaches its end. My understanding is that the bug appears when Mythfrontend transitions from VAAPI or OpenGL DRM/DRI graphics acceleration to standard QT Xlib graphics. The QT Xlib graphics based menus and interface are simply not displayed on the monitor although surely they are reaching the X Server as x11vnc displays them fine on a vnc client.

While the error occurs within the Ubuntu 12.04 Unity 2D Session I can't be certain it's because Compiz isn't running. I don't know whether this is a Mythfrontend bug or is some other X based anomaly. Hopefully someone can suggest some other tests or backtraces I can run to ascertain the cause of the bug.

I will test this on the weekend with a Nvidia graphics card and VDPAU playback profile to see if the same error occurs.

comment:4 Changed 6 years ago by paulh

Resolution: Upstream Bug
Status: newclosed

This sounds like a drive bug of some kind. There's no evidence of a Myth bug but please reopen if you find something to suggest it is.

Note: See TracTickets for help on using tickets.