Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. GDI::createContext: wglShareLists() failed. (The specified module could not be found.)
Forum Update on Monday, May 27th 2025

GDI::createContext: wglShareLists() failed. (The specified module could not be found.)

Scheduled Pinned Locked Moved Unsolved Qt for Python
4 Posts 2 Posters 443 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.
  • D Offline
    D Offline
    DhruvG
    wrote on last edited by
    #1

    ARB::createContext: wglCreateContextAttribsARB() failed (GL error code: 0x0) for format: QSurfaceFormat(version 2.0, options QFlagsQSurfaceFormat::FormatOption(), depthBufferSize -1, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile), shared context: 0x30000 (The operation completed successfully.)
    GDI::createContext: wglShareLists() failed. (The specified module could not be found.)

    I am using vscode to run my pyqt5 app coded in python. when i change tabs, I get above error and the app freezes. Everytime this happens i have to force close the app and restart. I have used the same app in my mac earlier and there was no issues. i am running it on my windows PC and this error started coming up.

    please help

    thanks

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Since it's OpenGL related, did you check that you have your graphics drivers up to date ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Since it's OpenGL related, did you check that you have your graphics drivers up to date ?

        D Offline
        D Offline
        DhruvG
        wrote on last edited by
        #3

        @SGaist thanks for your reply. Yes i did check both windows and all drivers including graphic drivers are up to date.

        SGaistS 1 Reply Last reply
        0
        • D DhruvG

          @SGaist thanks for your reply. Yes i did check both windows and all drivers including graphic drivers are up to date.

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Try to start your application:

          • once with QT_OPENGL environment variable set to desktop
          • once with QT_OPENGL environment variable set to angle

          to see if it makes a difference.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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