Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. QT5.9 Windows7 64bit QWebEngine WebGL --Could not share GL contexts.

QT5.9 Windows7 64bit QWebEngine WebGL --Could not share GL contexts.

Scheduled Pinned Locked Moved Unsolved QtWebEngine
5 Posts 4 Posters 6.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ryosan
    wrote on 2 Jun 2017, 01:34 last edited by
    #1

    Hi.
    I would like to ask a question.
    When I used QT5.7 or QT5.8 QWebEngine, I think there is no problem. in watching webGL Page.
    But When I use QT5.9 QWebEngine,Most of All Page is not working..I got a Error Message

    [7816:2000:0602/095657.738:ERROR:gl_context_wgl.cc(78)] Could not share GL contexts.
    js: Error creating WebGL context.

    I checked it on QWebEngine sample project WebEngine Demo Browser and WebEngine simple browser and so on.

    for example,
    [page viewing successed]
    https://www.cubeslam.com/dsbkbx
    [page viewing failed]
    http://alteredqualia.com/three/examples/webgl_terrain_dynamic.html
    http://potree.org/demo/potree_1.3/showcase/lion_head_simone_garagnani.html
    etc..

    I think Error Page might be using three.js?

    when I access their failed Web page from Chrome Web Browser,there is no problem.but when I access their pages on from QT5.9 using webEngine application ,it is not.

    my environment is Windows7 or 10 ,64bit intel HD Graphics
    I try other PC,
    Windows10[64bit),GTX980Ti(newdriver applied)

    If there is any reason , Could you tell me solution?
    thanks

    1 Reply Last reply
    1
    • C Offline
      C Offline
      Climax
      wrote on 21 Jul 2017, 21:10 last edited by
      #2

      Did you manage to solve this? I'm using a WebView from QML, but get the same error when trying to render WebGL on Windows.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jee4404
        wrote on 24 Jul 2017, 09:56 last edited by
        #3

        Hi,

        Got the same issue on all our workstations here (win7, win10, nvidia or intel gpu, directx 12), even though Google Chrome has no problem render 3D views.
        AFAIU, pre-compiled Qt binaries for windows are shipped by default with ANGLE as a graphic "gateway".
        I'm currently recompiling the lib with -opengl desktop option to use graphic cards OpenGL drivers and check if it solves the issue.
        Will post the answer when I'm done, hoping it could help

        Cheers

        To understand recursion, you must first understand recursion - David J. Hunter

        1 Reply Last reply
        1
        • J Offline
          J Offline
          jee4404
          wrote on 3 Aug 2017, 06:56 last edited by
          #4

          Well, after multiple recompile of the lib, with or without angle, angle combined, opengl desktop, opengl-es-2 still had context errors.
          Found on another thread of this forum that I should try to call :

          QCoreApplication::setAttribute(Qt::AA_UseOpenGLES);
          

          This removed all the warnings and context errors !
          Note that there is several value in the ApplicationAttribute enum that you could be interested in:

          AA_UseDesktopOpenGL = 15,
          AA_UseOpenGLES = 16,
          AA_UseSoftwareOpenGL = 17,
          AA_ShareOpenGLContexts = 18,
          

          -jee

          To understand recursion, you must first understand recursion - David J. Hunter

          P 1 Reply Last reply 31 Aug 2017, 03:12
          1
          • J jee4404
            3 Aug 2017, 06:56

            Well, after multiple recompile of the lib, with or without angle, angle combined, opengl desktop, opengl-es-2 still had context errors.
            Found on another thread of this forum that I should try to call :

            QCoreApplication::setAttribute(Qt::AA_UseOpenGLES);
            

            This removed all the warnings and context errors !
            Note that there is several value in the ApplicationAttribute enum that you could be interested in:

            AA_UseDesktopOpenGL = 15,
            AA_UseOpenGLES = 16,
            AA_UseSoftwareOpenGL = 17,
            AA_ShareOpenGLContexts = 18,
            

            -jee

            P Offline
            P Offline
            Pulller
            wrote on 31 Aug 2017, 03:12 last edited by
            #5

            @jee4404 I solve it follow your way. Thanks.
            At the beginning, I used QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts); but it didn't work.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved