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