[mythtv-commits] Ticket #12902: Cannot make QOpenGLContext current in a different thread (occurred while watching live tv)
MythTV
noreply at mythtv.org
Thu Jan 26 20:22:12 UTC 2017
#12902: Cannot make QOpenGLContext current in a different thread (occurred while
watching live tv)
-------------------------------------------------+-------------------------
Reporter: William L. DeRieux IV | Owner:
<WilliamDeRieux@…> |
Type: Bug Report - Crash | Status: new
Priority: critical | Milestone: 0.28.1
Component: Qt5 issues | Version: 0.28.0
Severity: high | Resolution:
Keywords: | Ticket locked: 0
-------------------------------------------------+-------------------------
Comment (by WilliamDeRieux@…):
Replying to [comment:17 stuarta]:
> Based on that analysis, that makes me think that we should be using Qt's
signals
> and slots to signal that up to the UI thread.
>
> On a side note, when looking at this, I noted that the VAAPI code does a
> check to see if it's actually on the UI thread before doing a
makeCurrent()
>
>
https://code.mythtv.org/cgit/mythtv/tree/mythtv/libs/libmythtv/videoout_openglvaapi.cpp#n137
>
> which may be a potential way to identify issues like this.
Yeah, that code in CreateVAAPIContext would probably help to check if the
UI thread is active.
{{{
if (!gCoreContext->IsUIThread())
{
LOG(VB_GENERAL, LOG_ERR, LOC + "CreateVAAPIContext called from non-UI
thread");
return false;
}
}}}
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12902#comment:18>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list