[mythtv-commits] Ticket #9505: [CRASH] OpenGL crashes mythtv when closing mythmusic
MythTV
noreply at mythtv.org
Wed Jul 13 05:56:31 UTC 2011
#9505: [CRASH] OpenGL crashes mythtv when closing mythmusic
----------------------------------+----------------------------
Reporter: qeldroma@… | Owner: paulh
Type: Bug Report | Status: assigned
Priority: major | Milestone: unknown
Component: Plugin - MythMusic | Version: 0.24-fixes
Severity: medium | Resolution:
Keywords: mythmusic bug opengl | Ticket locked: 0
----------------------------------+----------------------------
Comment (by markk):
There is no quick fix for this problem.
Many drivers and platforms will behave erratically if there are multiple
independent OpenGL contexts in the same thread - notably windows, OS X and
*nix systems with Intel drivers (and probably proprietary AMD/ATI drivers
as well).
For OpenGL video playback, this was solved by using the main UI rendering
context if it is OpenGL or falling back to creating a new OpenGL rendering
context otherwise. I would however suggest just dropping any OpenGL
visualisations if the main UI rendering context is not OpenGL (or D3D).
OpenGL visualisations then either need to hook directly into
MythRenderOpenGL painting routines or at the very least make the
MythRenderOpenGL context current for OpenGL drawing. If the latter, the
custom OpenGL rendering should probably use OpenGL 2.0 as a minimum to
ensure compatability with OpenGL ES 2.0.
This means all existing OpenGL visualisations in MythMusic will need to be
re-written (see libmythtv/visualisations for some pointers). libvisual
support should also be dropped (it will never integrate well with
libmythui and is buggy anyway). The SDL dependency would go away as well.
MythGallery has the same issues, though I've started looking at moving
that plugin completely over to libmythui and removing the 'custom' OpenGL
code there.
--
Ticket URL: <http://code.mythtv.org/trac/ticket/9505#comment:3>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list