Mailing List Archive

OpenGL: MythRenderOpenGL is not a valid OpenGL rendering context
My F30 system with nVidia is running today's master, b4f457, and my el7
system without nVidia or vaapi has been happily running 0d3bb, built 3
days ago. After installing today's build, also b4f457, mythtv-setup
hangs.

-v playback doesn't give data that looks useful, so I'm reverting.

Renderer Mesa DRI Intel(R) Q33
OpenGL/ES version 1.4 Mesa 18.3.4

{{{
2020-01-28 17:42:11.273625 C OpenGL: Failed to create OpenGLContext!
2020-01-28 17:42:11.273641 E OpenGL: MythRenderOpenGL is not a valid
OpenGL rendering context
2020-01-28 17:42:11.273647 W OpenGL painter not recommended with this
system's hardware/drivers. Falling back to Qt painter.
2020-01-28 17:42:11.273655 I OpenGL: MythRenderOpenGL closing
2020-01-28 17:42:11.273670 W OpenGL: Context about to be destroyed
}}}

John
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: OpenGL: MythRenderOpenGL is not a valid OpenGL rendering context [ In reply to ]
On 28/01/2020 18:14, John Pilkington wrote:
> My F30 system with nVidia is running today's master, b4f457, and my el7
> system without nVidia or vaapi has been happily running 0d3bb, built 3
> days ago.   After installing today's build, also b4f457, mythtv-setup
> hangs.
>
> -v playback doesn't give data that looks useful, so I'm reverting.
>
> Renderer Mesa DRI Intel(R) Q33
> OpenGL/ES version  1.4 Mesa 18.3.4
>
> {{{
> 2020-01-28 17:42:11.273625 C  OpenGL: Failed to create OpenGLContext!
> 2020-01-28 17:42:11.273641 E  OpenGL: MythRenderOpenGL is not a valid
> OpenGL rendering context
> 2020-01-28 17:42:11.273647 W  OpenGL painter not recommended with this
> system's hardware/drivers. Falling back to Qt painter.
> 2020-01-28 17:42:11.273655 I  OpenGL: MythRenderOpenGL closing
> 2020-01-28 17:42:11.273670 W  OpenGL: Context about to be destroyed
> }}}
>
> John

With the earlier build:
{{{
2020-01-28 18:20:04.521162 I Display: Have main window
2020-01-28 18:20:04.521851 I Display: Found screen 'VGA1'
2020-01-28 18:20:04.710998 I OpenGL: OpenGL vendor : VMware, Inc.
2020-01-28 18:20:04.711008 I OpenGL: OpenGL renderer : llvmpipe
(LLVM 7.0, 128 bits)
2020-01-28 18:20:04.711014 I OpenGL: OpenGL version : 2.1 Mesa 18.3.4
2020-01-28 18:20:04.711020 I OpenGL: Qt platform : xcb
2020-01-28 18:20:04.711074 I OpenGL: EGL display : No
2020-01-28 18:20:04.711079 I OpenGL: EGL images : No
2020-01-28 18:20:04.711083 I OpenGL: Qt OpenGL format : OpenGL 2.1
2020-01-28 18:20:04.711088 I OpenGL: Qt OpenGL surface : RGBA: 8880
Depth: 0 Stencil: 0
2020-01-28 18:20:04.711099 I OpenGL: Max texture size : 8192
2020-01-28 18:20:04.711104 I OpenGL: Max texture units : 96
2020-01-28 18:20:04.711109 I OpenGL: Shaders : Yes
2020-01-28 18:20:04.711114 I OpenGL: NPOT textures : Yes
2020-01-28 18:20:04.711119 I OpenGL: Multitexturing : Yes
2020-01-28 18:20:04.711123 I OpenGL: Rectangular textures : Yes
2020-01-28 18:20:04.711128 I OpenGL: Buffer mapping : Yes
2020-01-28 18:20:04.711132 I OpenGL: Framebuffer objects : Yes
2020-01-28 18:20:04.711136 I OpenGL: Unpack Subimage : Yes
2020-01-28 18:20:04.711141 I OpenGL: GL_RED/GL_R8 : Yes
2020-01-28 18:20:04.773729 I OpenGL: Initialised MythRenderOpenGL
2020-01-28 18:20:04.773738 I OpenGL: Using full range output

}}}
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: OpenGL: MythRenderOpenGL is not a valid OpenGL rendering context [ In reply to ]
On Tue, 28 Jan 2020 at 18:25, John Pilkington <johnpilk222@gmail.com> wrote:
>
> On 28/01/2020 18:14, John Pilkington wrote:
> > My F30 system with nVidia is running today's master, b4f457, and my el7
> > system without nVidia or vaapi has been happily running 0d3bb, built 3
> > days ago. After installing today's build, also b4f457, mythtv-setup
> > hangs.
> >
> > -v playback doesn't give data that looks useful, so I'm reverting.
> >
> > Renderer Mesa DRI Intel(R) Q33
> > OpenGL/ES version 1.4 Mesa 18.3.4
> >
> > {{{
> > 2020-01-28 17:42:11.273625 C OpenGL: Failed to create OpenGLContext!
> > 2020-01-28 17:42:11.273641 E OpenGL: MythRenderOpenGL is not a valid
> > OpenGL rendering context
> > 2020-01-28 17:42:11.273647 W OpenGL painter not recommended with this
> > system's hardware/drivers. Falling back to Qt painter.
> > 2020-01-28 17:42:11.273655 I OpenGL: MythRenderOpenGL closing
> > 2020-01-28 17:42:11.273670 W OpenGL: Context about to be destroyed
> > }}}
> >
> > John
>
> With the earlier build:
> {{{
> 2020-01-28 18:20:04.521162 I Display: Have main window
> 2020-01-28 18:20:04.521851 I Display: Found screen 'VGA1'
> 2020-01-28 18:20:04.710998 I OpenGL: OpenGL vendor : VMware, Inc.
> 2020-01-28 18:20:04.711008 I OpenGL: OpenGL renderer : llvmpipe
> (LLVM 7.0, 128 bits)
> 2020-01-28 18:20:04.711014 I OpenGL: OpenGL version : 2.1 Mesa 18.3.4
> 2020-01-28 18:20:04.711020 I OpenGL: Qt platform : xcb
> 2020-01-28 18:20:04.711074 I OpenGL: EGL display : No
> 2020-01-28 18:20:04.711079 I OpenGL: EGL images : No
> 2020-01-28 18:20:04.711083 I OpenGL: Qt OpenGL format : OpenGL 2.1

John

Is this a backend only machine? Are you running it in some sort of VM
or are your OpenGL drivers broken? You have no direct OpenGL hardware
acceleration by the looks of it - Mesa DRI Intel(R) Q33 is not the
same as VMware, Inc.

Have you successfully run a frontend on this system?

There is only one commit that could have caused this, but can you
provide the output of glxinfo for that machine? I'd like to get a
complete fix in.

Regards
Mark
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: OpenGL: MythRenderOpenGL is not a valid OpenGL rendering context [ In reply to ]
On 29/01/2020 08:00, Mark Kendall wrote:
> On Tue, 28 Jan 2020 at 18:25, John Pilkington <johnpilk222@gmail.com> wrote:
>>
>> On 28/01/2020 18:14, John Pilkington wrote:
>>> My F30 system with nVidia is running today's master, b4f457, and my el7
>>> system without nVidia or vaapi has been happily running 0d3bb, built 3
>>> days ago. After installing today's build, also b4f457, mythtv-setup
>>> hangs.
>>>
>>> -v playback doesn't give data that looks useful, so I'm reverting.
>>>
>>> Renderer Mesa DRI Intel(R) Q33
>>> OpenGL/ES version 1.4 Mesa 18.3.4
>>>
>>> {{{
>>> 2020-01-28 17:42:11.273625 C OpenGL: Failed to create OpenGLContext!
>>> 2020-01-28 17:42:11.273641 E OpenGL: MythRenderOpenGL is not a valid
>>> OpenGL rendering context
>>> 2020-01-28 17:42:11.273647 W OpenGL painter not recommended with this
>>> system's hardware/drivers. Falling back to Qt painter.
>>> 2020-01-28 17:42:11.273655 I OpenGL: MythRenderOpenGL closing
>>> 2020-01-28 17:42:11.273670 W OpenGL: Context about to be destroyed
>>> }}}
>>>
>>> John
>>
>> With the earlier build:
>> {{{
>> 2020-01-28 18:20:04.521162 I Display: Have main window
>> 2020-01-28 18:20:04.521851 I Display: Found screen 'VGA1'
>> 2020-01-28 18:20:04.710998 I OpenGL: OpenGL vendor : VMware, Inc.
>> 2020-01-28 18:20:04.711008 I OpenGL: OpenGL renderer : llvmpipe
>> (LLVM 7.0, 128 bits)
>> 2020-01-28 18:20:04.711014 I OpenGL: OpenGL version : 2.1 Mesa 18.3.4
>> 2020-01-28 18:20:04.711020 I OpenGL: Qt platform : xcb
>> 2020-01-28 18:20:04.711074 I OpenGL: EGL display : No
>> 2020-01-28 18:20:04.711079 I OpenGL: EGL images : No
>> 2020-01-28 18:20:04.711083 I OpenGL: Qt OpenGL format : OpenGL 2.1
>
> John
>
> Is this a backend only machine? Are you running it in some sort of VM
> or are your OpenGL drivers broken? You have no direct OpenGL hardware
> acceleration by the looks of it - Mesa DRI Intel(R) Q33 is not the
> same as VMware, Inc.
>
> Have you successfully run a frontend on this system?
>
> There is only one commit that could have caused this, but can you
> provide the output of glxinfo for that machine? I'd like to get a
> complete fix in.
>
> Regards
> Mark

Hi Mark: This is my main FE/BE system, which has always run the
frontend in a window. Output to the TV is via DLNA or NAS. It's an old
office machine with no extra graphics hardware.

Linux version 4.4.211-1.el7.elrepo.x86_64

Hewlett-Packard HP Compaq dc5800 Microtower/2820h, BIOS 786F2 v01.60
10/26/2015

glxinfo attached.

Thanks,

John
Re: OpenGL: MythRenderOpenGL is not a valid OpenGL rendering context [ In reply to ]
On Wed, 29 Jan 2020 at 09:30, John Pilkington <johnpilk222@gmail.com> wrote:
> Hi Mark: This is my main FE/BE system, which has always run the
> frontend in a window. Output to the TV is via DLNA or NAS. It's an old
> office machine with no extra graphics hardware.
>
> Linux version 4.4.211-1.el7.elrepo.x86_64
>
> Hewlett-Packard HP Compaq dc5800 Microtower/2820h, BIOS 786F2 v01.60
> 10/26/2015

John

To be honest, I'm confused - but first some background.

I'm assuming that this commit is causing your problems:-

https://github.com/MythTV/mythtv/commit/104cad9911d55734988075e5244d5436cb27ec48

which will 'encourage' Qt to try and use EGL for its OpenGL interface
- rather than GLX.

So I need to check whether it is indeed causing the issue - and if so,
how best to work around it, preferably in a generic manner.

As explained in the commit/code, we need to force EGL before we do any
kind of Qt GUI initialisation. We don't have a window to check the
OpenGL/EGL vendor/version, a Qt platform name - or pretty much
anything else to give us a hint about the best approach. So I check
directly with EGL and at the moment it just rejects anything nvidia -
which causes problems - and we don't currently need EGL with nvidia.

I can (and will) restrict the use of EGL for any mythtv GUI
application that doesn't explicitly need EGL (i.e. mythtv-setup). It
may also help to reject older versions of EGL - which is easy enough
to check for. But failing that, I would need to add further
restrictions based on the vendor string - but if the vendor is intel
or mesa, then that will cause major issues - as that is the major
target platform.

So with that in mind, your glxinfo output reports accelerated, intel
support but your mythfrontend log extract from the earlier version
shows it is using some form of emulation. I don't understand that.

I'm assuming you are not using any form of containerisation, virtual
machine or are remotely logged in? The actual driver in use is fairly
critical here.

Can you run the latest master version with this environment variable set:-

MYTHTV_NO_EGL=1 mythfrontend

and see if that helps.

Can you also paste the full output of 'eglinfo'. Hopefully there is a
package available for that on your system. On debian/ubuntu etc it is
available through mesa-extra-utils. That will give helpful information
on whether EGL is available and what version etc.

And finally - are you actually using this machine for video playback?
I'm trying to understand whether 'Output to the TV is via DLNA or NAS'
is a red herring.

Thanks and regards
Mark
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: OpenGL: MythRenderOpenGL is not a valid OpenGL rendering context [ In reply to ]
On 29/01/2020 11:28, Mark Kendall wrote:
> On Wed, 29 Jan 2020 at 09:30, John Pilkington <johnpilk222@gmail.com> wrote:
>> Hi Mark: This is my main FE/BE system, which has always run the
>> frontend in a window. Output to the TV is via DLNA or NAS. It's an old
>> office machine with no extra graphics hardware.
>>
>> Linux version 4.4.211-1.el7.elrepo.x86_64
>>
>> Hewlett-Packard HP Compaq dc5800 Microtower/2820h, BIOS 786F2 v01.60
>> 10/26/2015
>
> John
>
> To be honest, I'm confused - but first some background.
>
> I'm assuming that this commit is causing your problems:-
>
> https://github.com/MythTV/mythtv/commit/104cad9911d55734988075e5244d5436cb27ec48
>
> which will 'encourage' Qt to try and use EGL for its OpenGL interface
> - rather than GLX.
>
> So I need to check whether it is indeed causing the issue - and if so,
> how best to work around it, preferably in a generic manner.
>
> As explained in the commit/code, we need to force EGL before we do any
> kind of Qt GUI initialisation. We don't have a window to check the
> OpenGL/EGL vendor/version, a Qt platform name - or pretty much
> anything else to give us a hint about the best approach. So I check
> directly with EGL and at the moment it just rejects anything nvidia -
> which causes problems - and we don't currently need EGL with nvidia.
>
> I can (and will) restrict the use of EGL for any mythtv GUI
> application that doesn't explicitly need EGL (i.e. mythtv-setup). It
> may also help to reject older versions of EGL - which is easy enough
> to check for. But failing that, I would need to add further
> restrictions based on the vendor string - but if the vendor is intel
> or mesa, then that will cause major issues - as that is the major
> target platform.
>
> So with that in mind, your glxinfo output reports accelerated, intel
> support but your mythfrontend log extract from the earlier version
> shows it is using some form of emulation. I don't understand that.
>
> I'm assuming you are not using any form of containerisation, virtual
> machine or are remotely logged in? The actual driver in use is fairly
> critical here.

mesa-libEGL looks like a standard el7 package, last patched by redhat in
2019 April. See below for more packages... Bare metal install.
>
> Can you run the latest master version with this environment variable set:-
>
> MYTHTV_NO_EGL=1 mythfrontend
>
> and see if that helps.

I haven't done this yet. For my earlier posts I hadn't tried starting
the frontend; only mythtv-setup, which uses the display options created
in an earlier run of the frontend.

With the older installation:

[john@HP_Box ~]$ MYTHTV_NO_EGL=1 mythfrontend -v playback

2020-01-29 13:17:32.939267 C mythfrontend version: HEAD -> master
[v31-Pre-0d3bb87db71] www.mythtv.org
2020-01-29 13:17:32.939281 C Qt version: compile: 5.9.7, runtime: 5.9.7
2020-01-29 13:17:32.939341 I Scientific Linux 7.7 (Nitrogen) (x86_64)

2020-01-29 13:17:37.453854 I Display: Have main widget
2020-01-29 13:17:37.454548 I UI Screen Resolution: 1024 x 576
2020-01-29 13:17:37.606571 I Display: Have main window
2020-01-29 13:17:37.620214 I Display: Found screen 'VGA1'
2020-01-29 13:17:37.717812 I OpenGL: OpenGL vendor : VMware, Inc.
2020-01-29 13:17:37.717821 I OpenGL: OpenGL renderer : llvmpipe
(LLVM 7.0, 128 bits)
2020-01-29 13:17:37.717826 I OpenGL: OpenGL version : 2.1 Mesa 18.3.4
2020-01-29 13:17:37.717832 I OpenGL: Qt platform : xcb
2020-01-29 13:17:37.717873 I OpenGL: EGL display : No
2020-01-29 13:17:37.717878 I OpenGL: EGL images : No
2020-01-29 13:17:37.717882 I OpenGL: Qt OpenGL format : OpenGL 2.1
2020-01-29 13:17:37.717887 I OpenGL: Qt OpenGL surface : RGBA: 8880
Depth: 0 Stencil: 0

>
> Can you also paste the full output of 'eglinfo'. Hopefully there is a
> package available for that on your system. On debian/ubuntu etc it is
> available through mesa-extra-utils. That will give helpful information
> on whether EGL is available and what version etc.

These packages are installed now. egl-utils wasn't. The attached
eglinfo.txt was created without a post-install reboot.

[john@HP_Box ~]$ rpm -qa | grep -i egl
libglvnd-egl-1.0.1-0.8.git5baa1e5.el7.x86_64
freeglut-3.0.0-8.el7.x86_64
mesa-libEGL-18.3.4-5.el7.x86_64
egl-utils-8.3.0-10.el7.x86_64
libwayland-egl-1.15.0-1.el7.x86_64
mesa-libEGL-devel-18.3.4-5.el7.x86_64
[john@HP_Box ~]$

>
> And finally - are you actually using this machine for video playback?

Yes. This box has only DVB-T tuners, so it records only in SD, but I
have a few HD files on it and all playback in the frontend window seems
to be of generally acceptable quality. But there is no direct video
output to the TV, so the wow-factor is perhaps low.

> I'm trying to understand whether 'Output to the TV is via DLNA or NAS'
> is a red herring.
>
> Thanks and regards
> Mark
Re: OpenGL: MythRenderOpenGL is not a valid OpenGL rendering context [ In reply to ]
re-sending to list. Sorry!

On 29/01/2020 18:06, John Pilkington wrote:
> On 29/01/2020 11:28, Mark Kendall wrote:
>
>>
>> Can you run the latest master version with this environment variable
>> set:-
>>
>> MYTHTV_NO_EGL=1 mythfrontend
>>
>> and see if that helps.
>>
> Hi Mark:  I seem to have lost my local copy of my earlier reply, but
> since sending it I have reinstalled b4f457 and rebooted with a routine
> kernel update.
>
> Yes, the command line above works.  =0 works too, and without setting
> the EV both mythfrontend and mythtv-setup hang as in my first post.
>
> eglinfo is unchanged after the reboot.
>
> Thank you,
>
> John

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: OpenGL: MythRenderOpenGL is not a valid OpenGL rendering context [ In reply to ]
On Wed, 29 Jan 2020 at 20:26, John Pilkington <johnpilk222@gmail.com> wrote:
> >> Can you run the latest master version with this environment variable
> >> set:-
> >>
> >> MYTHTV_NO_EGL=1 mythfrontend
> >>
> > Yes, the command line above works. =0 works too, and without setting
> > the EV both mythfrontend and mythtv-setup hang as in my first post.
> >
> > eglinfo is unchanged after the reboot.

John

I've just pushed some improvements to the EGL check at startup.

I don't honestly expect it to make a difference, but could you post
the full output from mythfrontend - please note the initial log
message, if EGL is being requested, uses qt logging, so you may need
to run mythfrontend from the command line to see it.

Thanks and regards
Mark
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: OpenGL: MythRenderOpenGL is not a valid OpenGL rendering context [ In reply to ]
On 29/01/2020 20:25, John Pilkington wrote:
> re-sending to list.  Sorry!
>
> On 29/01/2020 18:06, John Pilkington wrote:
>> On 29/01/2020 11:28, Mark Kendall wrote:
>>
>>>
>>> Can you run the latest master version with this environment variable
>>> set:-
>>>
>>> MYTHTV_NO_EGL=1 mythfrontend
>>>
>>> and see if that helps.
>>>
>> Hi Mark:  I seem to have lost my local copy of my earlier reply, but
>> since sending it I have reinstalled b4f457 and rebooted with a routine
>> kernel update.
>>
>> Yes, the command line above works.  =0 works too, and without setting
>> the EV both mythfrontend and mythtv-setup hang as in my first post.
>>
>> eglinfo is unchanged after the reboot.
>>
>> Thank you,
>>
>> John
>
It seemed likely that this would also affect the installation on my
laptop, which similarly has no nvidia or vaapi capabilities. Downloads
for bionic from the mythbuntu 31 ppa have been very slow, but I now have
what seems to be a working installation - provided that I call
mythtv-setup.real and mythfrontend.real with the same preamble.

The mythtv-dbg package has not yet been downloaded. Those installed are
at a4d1c3f
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: OpenGL: MythRenderOpenGL is not a valid OpenGL rendering context [ In reply to ]
On 30/01/2020 10:49, Mark Kendall wrote:
> On Wed, 29 Jan 2020 at 20:26, John Pilkington <johnpilk222@gmail.com> wrote:
>>>> Can you run the latest master version with this environment variable
>>>> set:-
>>>>
>>>> MYTHTV_NO_EGL=1 mythfrontend
>>>>
>>> Yes, the command line above works. =0 works too, and without setting
>>> the EV both mythfrontend and mythtv-setup hang as in my first post.
>>>
>>> eglinfo is unchanged after the reboot.
>
> John
>
> I've just pushed some improvements to the EGL check at startup.
>
> I don't honestly expect it to make a difference, but could you post
> the full output from mythfrontend - please note the initial log
> message, if EGL is being requested, uses qt logging, so you may need
> to run mythfrontend from the command line to see it.
>
> Thanks and regards
> Mark

Hi Mark: It didn't make an obvious difference. Here's a link to logs
with and without the EV preamble.

https://drive.google.com/open?id=1iAljVnvjqBVf2qdO2tYs-wtxNnrVYupA

John


_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: OpenGL: MythRenderOpenGL is not a valid OpenGL rendering context [ In reply to ]
On Thu, 30 Jan 2020 at 14:26, John Pilkington <johnpilk222@gmail.com> wrote:
> Hi Mark: It didn't make an obvious difference. Here's a link to logs
> with and without the EV preamble.

OK - thanks for that.

Can you produce a few more logs for me? :-

1 - the output from running 'QT_LOGGING_RULES=qt.qpa.*=true
mythfrontend' - which should hopefully give an insight into what Qt is
doing
2 - the output from 'ldd /usr/local/bin/mythfrontend' - or wherever
mythfrontend is installed.
3 - the output from 'glxgears -info' - because I'm still baffled as to
why glxinfo shows intel and Qt/mythtv something else.

thanks again,
Mark
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: OpenGL: MythRenderOpenGL is not a valid OpenGL rendering context [ In reply to ]
On 30/01/2020 17:01, Mark Kendall wrote:
> On Thu, 30 Jan 2020 at 14:26, John Pilkington <johnpilk222@gmail.com> wrote:
>> Hi Mark: It didn't make an obvious difference. Here's a link to logs
>> with and without the EV preamble.
>
> OK - thanks for that.
>
> Can you produce a few more logs for me? :-
>
> 1 - the output from running 'QT_LOGGING_RULES=qt.qpa.*=true
> mythfrontend' - which should hopefully give an insight into what Qt is
> doing
> 2 - the output from 'ldd /usr/local/bin/mythfrontend' - or wherever
> mythfrontend is installed.
> 3 - the output from 'glxgears -info' - because I'm still baffled as to
> why glxinfo shows intel and Qt/mythtv something else.
>
> thanks again,
> Mark

HTH!

https://drive.google.com/open?id=1NowIZsgY4EFSSKcKAglXFkVEb-U07A3T

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: OpenGL: MythRenderOpenGL is not a valid OpenGL rendering context [ In reply to ]
On Thu, 30 Jan 2020 at 20:40, John Pilkington <johnpilk222@gmail.com> wrote:
>
> On 30/01/2020 17:01, Mark Kendall wrote:
> > On Thu, 30 Jan 2020 at 14:26, John Pilkington <johnpilk222@gmail.com> wrote:
> >> Hi Mark: It didn't make an obvious difference. Here's a link to logs
> >> with and without the EV preamble.
> >
> > OK - thanks for that.
> >
> > Can you produce a few more logs for me? :-
> >
> > 1 - the output from running 'QT_LOGGING_RULES=qt.qpa.*=true
> > mythfrontend' - which should hopefully give an insight into what Qt is
> > doing
> > 2 - the output from 'ldd /usr/local/bin/mythfrontend' - or wherever
> > mythfrontend is installed.
> > 3 - the output from 'glxgears -info' - because I'm still baffled as to
> > why glxinfo shows intel and Qt/mythtv something else.
> >
> > thanks again,
> > Mark
>
> HTH!
>
> https://drive.google.com/open?id=1NowIZsgY4EFSSKcKAglXFkVEb-U07A3T
>

Thanks John,

Unfortunately it doesn't provide any more insights. I can't help but
feel there is something a little broken with your setup as I see no
reason why Qt uses a software OpenGL renderer - which I'm assuming is
the main problem.

I'll give it some more thought but will leave the code as is for the
moment to see if anyone else has issues.

I don't really want to disable using EGL unless I have to as a lot of
people will get poor or no VAAPI playback without it.

I'll also see if I can reproduce the crash when it fails - so at least
it properly falls back to the Qt renderer.

Thanks and regards
Mark
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: OpenGL: MythRenderOpenGL is not a valid OpenGL rendering context [ In reply to ]
On 31/01/2020 10:23, Mark Kendall wrote:
> On Thu, 30 Jan 2020 at 20:40, John Pilkington <johnpilk222@gmail.com> wrote:
>>
>> On 30/01/2020 17:01, Mark Kendall wrote:
>>> On Thu, 30 Jan 2020 at 14:26, John Pilkington <johnpilk222@gmail.com> wrote:
>>>> Hi Mark: It didn't make an obvious difference. Here's a link to logs
>>>> with and without the EV preamble.
>>>
>>> OK - thanks for that.
>>>
>>> Can you produce a few more logs for me? :-
>>>
>>> 1 - the output from running 'QT_LOGGING_RULES=qt.qpa.*=true
>>> mythfrontend' - which should hopefully give an insight into what Qt is
>>> doing
>>> 2 - the output from 'ldd /usr/local/bin/mythfrontend' - or wherever
>>> mythfrontend is installed.
>>> 3 - the output from 'glxgears -info' - because I'm still baffled as to
>>> why glxinfo shows intel and Qt/mythtv something else.
>>>
>>> thanks again,
>>> Mark
>>
>> HTH!
>>
>> https://drive.google.com/open?id=1NowIZsgY4EFSSKcKAglXFkVEb-U07A3T
>>
>
> Thanks John,
>
> Unfortunately it doesn't provide any more insights. I can't help but
> feel there is something a little broken with your setup as I see no
> reason why Qt uses a software OpenGL renderer - which I'm assuming is
> the main problem.
>
> I'll give it some more thought but will leave the code as is for the
> moment to see if anyone else has issues.
>
> I don't really want to disable using EGL unless I have to as a lot of
> people will get poor or no VAAPI playback without it.
>
> I'll also see if I can reproduce the crash when it fails - so at least
> it properly falls back to the Qt renderer.
>
> Thanks and regards
> Mark

OK. Using the MYTHTV_NO_EGL=1 workaround doesn't appear to give
problems for me. But I have now seen the same behaviour on 3
nVidia-free systems, all using HP core2duo hardware and windowed
displays under kde, in el7 and kubuntu 18.04

Thanks again,

John



_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org