Opened 18 months ago

Closed 2 months ago

#13158 closed Bug Report - General (Works for me)

Frontend abort when recording resolution changes with external themes

Reported by: Alex Halovanic <halovanic@…> Owned by: Peter Bennett
Priority: minor Milestone: unknown
Component: MythTV - Video Playback Version: v29-fixes
Severity: medium Keywords: theme resolution
Cc: Ticket locked: no

Description

After the upgrade to 29, I noticed that mythfrontend will abort in the middle of recording playback. It is reproducible under the following conditions:

  • Using a theme other than the ones shipped with MythTV (MythCenter?, MythCenter?-wide, Terra)
  • Reaching a point in the recording where the resolution changes, such as 1080i -> 720p or vice versa, commonly seen in commercial breaks or program changes, depending on channel.

I have reproduced this consistently with Steppes, Mythbuntu, Arclight and TintedGlass?. This also occurs under both VDPAU and OpenGL playback, The stock themes are consistently unaffected.

I have been unable to gather a stacktrace: I don't think it's actually crashing, just aborting playback and closing mythfrontend:

Cannot make QOpenGLContext current in a different thread
2017-10-25 20:07:58.729655 W  MythPainter: 3 images not yet de-allocated.
2017-10-25 20:07:58.729669 I  VDPAU Painter: Clearing VDPAU painter cache.
2017-10-25 20:07:58.797466 I  Clearing OpenGL painter cache.
Handling Aborted
Aborted

I'll also add that I am not configuring Mythfrontend to switch X resolutions or refresh rates automatically here: X remains unchanged. Furthermore, the OSD is not up when this occurs, nor does it try to display, so the theme isn't displaying anything.

I saw a few changes to add new screens to the shipped themes in 29 but didn't see anything that was marked as breaking that would require all other themes to be updated.

Change History (8)

comment:1 Changed 18 months ago by Peter Bennett

Component: MythTV - GeneralMythTV - Video Playback
Owner: set to Peter Bennett
Status: newassigned

comment:2 Changed 18 months ago by Roger Siddons

Furthermore, the OSD is not up when this occurs, nor does it try to display, so the theme isn't displaying anything

Could you clarify ? Is com-skipping active ?

The OSD gets 'reset' on every resolution change. If it coincides with a com-skip notification (or subtitle) the OSD can be reset before it is seen. Just because you don't see anything it doesn't mean the OSD isn't active!

That doesn't explain why it only happens on certain themes. Just saying it could be OSD-related (player thread doing OpenGL whilst resetting OSD ?)

comment:3 Changed 18 months ago by Peter Bennett

There is a known issue with VAAPI. Changing resolutions in mid stream stops playback. Your message in the log is a symptom of this (Cannot make QOpenGLContext current in a different thread). However this should not affect VDPAU and should not be related to the theme.

You could try changing the theme painter to QT and see if this resolves the problem. Note that you cannot use QT theme painter together with OpenGL Rendering, but QT theme painter with VDPAU rendering should work.

comment:4 Changed 18 months ago by Alex Halovanic <halovanic@…>

This occurs with commercial skip totally disabled (no notify). It is also happening in the middle of commercial breaks. and there are no subtitles.

Changing the theme painter to QT does appear to cure this. The abort occurs under OpenGL 2 and 1 theme painters only.

comment:5 Changed 18 months ago by Peter Bennett

I retested this and the only time I see it happen is with VAAPI playback selected. Please check your playback profile (frontend->Setup->Video->Playback) Check the current video playback profile. Which playback profiles fail at the resolution change?

Never mind, I see in your description you mention OpenGL and VDPAU profiles. I am not sure where to go with this, as I can only see it with VAAPI.

Last edited 18 months ago by Peter Bennett (previous) (diff)

comment:6 Changed 18 months ago by Peter Bennett

Status: assignedinfoneeded

comment:7 Changed 12 months ago by Peter Bennett

Owner: changed from Peter Bennett to Peter Bennett

comment:8 Changed 2 months ago by Peter Bennett

Resolution: Works for me
Status: infoneededclosed
Note: See TracTickets for help on using tickets.