When initializing PyQt6.QtWebEngineWidgets.QWebEngineView, an error occurs indicating ‌failed GLX initialization‌

My operating system is ‌6.12.44-3-MANJARO‌, ‌x86_64‌, with ‌XFCE4‌. I installed ‌PyQt6‌ and ‌PyQtWebEngine6‌ using ‌conda‌. While writing a program in ‌PyCharm 2025‌, I encountered the following error when initializing thePyQt6.QtWebEngineWidgets.QWebEngineView:

  qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QColorSpace(), profile  QSurfaceFormat::NoProfile),Could not initialize GLX

I have checked dirver,result below:

$lspci|grep -i vga

00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07)

$glxinfo | grep “OpenGL vendor string”

OpenGL vendor string: Intel

$glxinfo | grep “OpenGL renderer string”

OpenGL renderer string: Mesa Intel(R) HD Graphics 520 (SKL GT2)n

I also try to update intel driver to newest,but the error still exist,Then I changed system variable QT_XCB_GL_INTEGRATION=glx,to QT_XCB_GL_INTEGRATION=xcb_egl, but the error not change.

When I run the python program under terminal , the error list below:

   iris: driver missing
   libEGL warning: egl: failed to create dri2 screen
   libEGL warning: failed to get driver name for fd -1
   libEGL warning: MESA-LOADER: failed to retrieve device information
   libEGL warning: failed to get driver name for fd -1
   iris: driver missing
   libEGL warning: egl: failed to create dri2 screen
   libEGL warning: egl: failed to create dri2 screen
   [4680:4702:0916/094222.179264:ERROR:bus.cc(407)] Failed to connect to the bus: Failed   to connect to socket /home/qdoldwolf/anaconda3/envs/python3.12/var/run/dbus/system_bus_socket: 没有那个文件或目录
   [4680:4709:0916/094222.205674:ERROR:angle_platform_impl.cc(44)] Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
    ERR: Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
   [4680:4709:0916/094222.205704:ERROR:gl_display.cc(497)] EGL Driver message (Critical) eglInitialize: glXQueryExtensionsString returned NULL
   [4680:4709:0916/094222.205717:ERROR:gl_display.cc(767)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
   [4680:4709:0916/094222.209061:ERROR:angle_platform_impl.cc(44)] Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
     ERR: Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
   [4680:4709:0916/094222.209098:ERROR:gl_display.cc(497)] EGL Driver message (Critical) eglInitialize: glXQueryExtensionsString returned NULL
   [4680:4709:0916/094222.209112:ERROR:gl_display.cc(767)] eglInitialize OpenGLES failed with    error EGL_NOT_INITIALIZED
   [4680:4709:0916/094222.209125:ERROR:gl_display.cc(801)] Initialization of all EGL display types failed.
   [4680:4709:0916/094222.209136:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
   [4680:4709:0916/094222.212707:ERROR:angle_platform_impl.cc(44)] Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
   ERR: Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
   [4680:4709:0916/094222.212734:ERROR:gl_display.cc(497)] EGL Driver message (Critical) eglInitialize: glXQueryExtensionsString returned NULL
   [4680:4709:0916/094222.212747:ERROR:gl_display.cc(767)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
   [4680:4709:0916/094222.216949:ERROR:angle_platform_impl.cc(44)] Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
   ERR: Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
  [4680:4709:0916/094222.217042:ERROR:gl_display.cc(497)] EGL Driver message (Critical) eglInitialize: glXQueryExtensionsString returned NULL
  [4680:4709:0916/094222.217073:ERROR:gl_display.cc(767)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
  [ 4680:4709:0916/094222.217098:ERROR:gl_display.cc(801)] Initialization of all EGL display types failed.
  [4680:4709:0916/094222.217117:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
 GLOzone not found for unknown
 已中止                  (核心已转储)python jigouheyouzishuju4.py

please give me advise, thanks

This forum does not support solving source code issues for personal projects.

For your error messages please use a code fence to encapsulate the terminal content e.g.

When I run the following command
```
 $ lspci|grep -i vga
00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07)
```

I can get the vendor like this
```
 $ glxinfo | grep “OpenGL vendor string”
OpenGL vendor string: Intel
```

If you believe there is an error with Qt and the interface to Python - please contact the Qt team using the relevant support channel.

I first write Posts,sorry,i try

from the information of error ,“iris driver is missing”, maybe the driver of intel is not newest,or something else cause .so I update the driver from manjaro repo ,the error do not change

maybe I send the log file of systemd coredump,ok?

we don’t support private projects - aka - home work - see the forum rules.

ok,I try myself