[mythtv] Replace the QtWebKit code

Paul Harrison mythtv at mythqml.net
Fri Mar 18 16:11:21 UTC 2022


On 18/03/2022 14:53, Paul Harrison wrote:

> On 18/03/2022 04:05, Gary Buhrmaster wrote:
>
>> On Sun, Mar 13, 2022 at 11:24 AM Paul Harrison<mythtv at mythqml.net>  wrote:
>>
>>> The offer still stands if someone wants to take a look at the WIP patch
>>> I have they are welcome assuming I still have it stashed somewhere. It
>>> did partially work but only by disabling anything that causes MythUI to
>>> update the screen while the browser had focus and I think the key press
>>> handling was a little screwed up.
>> Just a thought, but if you can find the stash, perhaps
>> create a branch for the WIP and push to the repo, so
>> that the work is available for others (sort of like the
>> qt6 branch).
>
>
> I found the patch and made it available to any of the MythTV devs. I 
> think I'm alone in trying to get this problem resolved so don't hold 
> your breath though.
>
>
> Don't know if we have any OpenGL experts on the list? One possible 
> reason for the rendering problem is our MythRenderOpenGL renderer 
> never calls doneCurrent() on any of it's contexts which I was 
> wondering if that could be a possible reason?
> There is code in there but it is disabled. The documents for 
> QtWebEngine does say there is a requirement for shared opengl 
> contexts. Any OpenGL experts care to comment?
>
> https://github.com/MythTV/mythtv/blob/master/mythtv/libs/libmythui/opengl/mythrenderopengl.cpp#L571
>
>
> While this is focusing mainly on QtWebEngine I did manage to reproduce 
> the bug with any QQuickWidget based widget. For example I did have a 
> patch, sadly lost, that could render any QML component in MythUI and 
> that failed in the same way.
>
>
> Paul H.
>
>

Just discovered if you start the frontend like this

QMLSCENE_DEVICE=softwarecontext mythfrontend

then the rendering works OK. So I think that is pointing to a problem 
with the way we setup our QSurfaceFormat or OpenGL contexts?


Paul H.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-dev/attachments/20220318/4cadc224/attachment.htm>


More information about the mythtv-dev mailing list