Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.0 Beta 3
-
None
-
Debian GNU/Linux with NVIDIA video drivers
-
-
4538dd7ec4efcce5760f87dc1751b142b8f35479 (qt/qtbase/5.12)
Description
As noted in bug #415733, there is a problem with the mesa code dlopen-ing libGL.so rather than the correct library name (libGL.so or libGL.so.1); this can cause a problem if the NVIDIA libraries are installed, as the system libGL.so might be loaded instead of the NVIDIA one (which on Debian at least is only installed as libGL.so.1). This is what I wrote in that bug report:
So I think I may have found the source of this bug: it's in line 1079 of src/3rdparty/chromium/third_party/mesa/src/src/egl/drivers/glx/egl_glx.c (in qtwebengine), which reads:
handle = dlopen("libGL.so", RTLD_LAZY | RTLD_LOCAL);
Note that the library name is hard-coded without a .1 suffix. In src/3rdparty/chromium/ui/ozone/platform/x11/gl_ozone_glx.cc and src/3rdparty/chromium/ui/gl/init/gl_initializer_x11.cc, there is a macro for defining the correct library name, which checks for OS_OPENBSD. Patching egl_glx.c to use a macro in the same way in place of the hard-coded library name would presumably fix this bug.
I also reported it upstream to: https://bugs.chromium.org/p/chromium/issues/detail?id=878026 and they replied that mesa is no longer in the chromium source repository. So it would be good to either fix this one small bug, or better still, in the longer term, to update the chromium subproject of qtwebengine to use the up-to-date chromium repository which has switched to SwiftShader.
Thanks!
Attachments
Issue Links
- relates to
-
QTBUG-70696 [REG 5.12] glxGetProcAddress not found
- Closed
-
QTBUG-67537 QGLXContext fails to load libGL.so.1 library if there is no libGL.so symlink
- Closed
For Gerrit Dashboard: QTBUG-71488 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
245064,1 | xcb: Try to dlopen libGL.so.1 before libGL.so | 5.12 | qt/qtbase | Status: ABANDONED | +2 | 0 |
245294,7 | Remove need for glXGetProcAddressARB | 5.12 | qt/qtbase | Status: MERGED | +2 | 0 |