https://bugs.winehq.org/show_bug.cgi?id=54994
Bug ID: 54994 Summary: Problem with Dolphin emulator "X Error of failed request: GLXBadFBConfig" and OpenGL < 4.6 Product: Wine Version: 8.6 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: kle@bluewin.ch Distribution: ---
Hi all!
Here follows a new bug report regarding a "X Error of failed request: GLXBadFBConfig" error in conjunction with the dolphin emulator. This problem is present for me since Wine 8.6 and Mesa 23.2.0-devel (git-483639d 2023-04-24 jammy-oibaf-ppa).
It is unclear if this is a Mesa or a Wine bug. Originally this was reported at the Mesa issue tracker here: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8901
Maybe someone from the Wine project can bring more clarity where the problem is coming from. ;-)
Note, this issue is similar to old bug 50859. But in contrast the underlying problem does not affect all applications. I was only able to reproduce this issue with the dolphin emulator.
A workaround is to add "MESA_GL_VERSION_OVERRIDE=4.6" and override the reported OpenGL version to 4.6. Interestingly this even works with OpenGL 3.3 based hardware like an Intel HD 2000 iGPU. And this is only valid for OGL 4.6. A lower OGL override like "MESA_GL_VERSION_OVERRIDE=4.5" has no effect.
https://bugs.winehq.org/show_bug.cgi?id=54994
yan12125 pq2sx44teeigl7za@chyen.cc changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pq2sx44teeigl7za@chyen.cc
https://bugs.winehq.org/show_bug.cgi?id=54994
--- Comment #1 from C. Leu kle@bluewin.ch --- A new addition.
This topic here depends on the used application. So the dolphin emulator has a minimum requirement for OpenGL 3.3 while it supports up to OpenGL 4.6. Ergo, I had to expose OGL 4.6 to get it working. That also explains why the PCSX-Redux emulator is not affected, it only has support for OpenGL 3.x. As a result it can be said that this `GLXBadFBConfig` error here depends from the application.
If the application supports a higher OGL version then the system exposes then the error is present. But when the OGL requirement of the application is within the available OpenGL version then there is no error. As a consequence I think this looks to be more a problem in Wine rather then Mesa.
So finally this problem should be not present on modern systems which usually support OpenGL 4.6. On the same time this problem should be reproducible by exposing a lower OpenGL version than the application supports. So in conjunction with the dolphin emulator 5.0-16391, a "MESA_GL_VERSION_OVERRIDE=4.4" or "MESA_GL_VERSION_OVERRIDE=4.5" override should trigger the "X Error of failed request: GLXBadFBConfig" error.
https://bugs.winehq.org/show_bug.cgi?id=54994
mirh mirh@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mirh@protonmail.ch
https://bugs.winehq.org/show_bug.cgi?id=54994
--- Comment #2 from yan12125 pq2sx44teeigl7za@chyen.cc --- Created attachment 74553 --> https://bugs.winehq.org/attachment.cgi?id=74553 Diff to work-around the Mesa issue
I believe this is more likely a Mesa issue than a Wine one as I described at https://gitlab.freedesktop.org/mesa/mesa/-/issues/8901#note_1940408. However, fixing Mesa appears difficult. Is it acceptable to work-around the Mesa issue in Wine (see the attached diff)?
https://bugs.winehq.org/show_bug.cgi?id=54994
Larina3315 larina3315@tutanota.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |larina3315@tutanota.com
--- Comment #3 from Larina3315 larina3315@tutanota.com --- (In reply to yan12125 from comment #2)
Created attachment 74553 [details] Diff to work-around the Mesa issue
I believe this is more likely a Mesa issue than a Wine one as I described at https://gitlab.freedesktop.org/mesa/mesa/-/issues/8901#note_1940408. However, fixing Mesa appears difficult. Is it acceptable to work-around the Mesa issue in Wine (see the attached diff)?
Hello, I have been facing a similar issue for the past couple of months I am on Fedora Silverblue 38 and use Lutris Flatpak to play games I am on a 3rd-gen Ivy Bridge platform with IntelHD 4000 Some of my games broke after what I believe to be a Mesa update in Flathub Particularly, I am most concerned with the reVC windows executable, As I like to play GTA - Vice City alot. Previously the game launched and played just fine, but after the Mesa update it fails to launch with the following error :
X Error of failed request: GLXBadFBConfig Major opcode of failed request: 152 (GLX) Minor opcode of failed request: 0 () Serial number of failed request: 276 Current serial number in output stream: 276 Monitored process exited. Initial process has exited (return code: 0) Exit with return code 0
Googling online with the error has brought me to multiple archwiki and wine threads
I am certain this is most likely a Mesa issue as the reVC windows executable will work fine in Debian 12 with native and older wine and Mesa but neither on Fedora 38's native wine with updated Mesa nor Lutris's flatpak with flathub's Mesa
I would like to offer more logs/help in anyway I can.
https://bugs.winehq.org/show_bug.cgi?id=54994
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |o.dierick@piezo-forte.be
--- Comment #4 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- (In reply to Larina3315 from comment #3)
Hello,
Your issue is not related to Dolphin Emulator.
A workaround is to add "MESA_GL_VERSION_OVERRIDE=4.6" and override the reported OpenGL version to 4.6. Interestingly this even works with OpenGL 3.3 based hardware like an Intel HD 2000 iGPU. And this is only valid for OGL 4.6. A lower OGL override like "MESA_GL_VERSION_OVERRIDE=4.5" has no effect.
Does the described workaround works in your case?
Regards.
https://bugs.winehq.org/show_bug.cgi?id=54994
--- Comment #5 from C. Leu kle@bluewin.ch --- Okay folks, it is confirmed meanwhile that this problem here is a 100% Mesa one.
There exist also already an MR which will fix this "GLXBadFBConfig" problem: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23762
The mentioned workaround via a GL override like "MESA_GL_VERSION_OVERRIDE=4.6" seems to work in my case with the dolphin emulator. But it is also confirmed for example regarding Lutris that this tweak results in a black screen. Ergo, it is in general not a good idea to override the GL version because it might introduce other problems. ;-)
Maybe I should close this bug report here. Will do that when Mesa MR 23762 has landed.
https://bugs.winehq.org/show_bug.cgi?id=54994
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |NOTOURBUG
--- Comment #6 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
Thanks for the update.
(In reply to C. Leu from comment #5)
Maybe I should close this bug report here. Will do that when Mesa MR 23762 has landed.
Yes. Please do close the bug once it is fixed.
Resolving NOTOURBUG while the upstream bug is still pending.
Regards.
https://bugs.winehq.org/show_bug.cgi?id=54994
--- Comment #7 from Larina3315 larina3315@tutanota.com --- (In reply to Olivier F. R. Dierick from comment #4)
(In reply to Larina3315 from comment #3)
Hello,
Your issue is not related to Dolphin Emulator.
A workaround is to add "MESA_GL_VERSION_OVERRIDE=4.6" and override the reported OpenGL version to 4.6. Interestingly this even works with OpenGL 3.3 based hardware like an Intel HD 2000 iGPU. And this is only valid for OGL 4.6. A lower OGL override like "MESA_GL_VERSION_OVERRIDE=4.5" has no effect.
Does the described workaround works in your case?
Regards.
The workaround only works in some instances in my case when using wine via Lutris Flatpak, yes my issue is not related to Dolphin emulator but the error, timing and also probably the cause is same too
https://bugs.winehq.org/show_bug.cgi?id=54994
--- Comment #8 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
In general, it's best practice with Wine to install applications in separate wineprefixes, so that workarounds and specific settings required to make one app work don't break other apps.
When the MESA patch lands you may update and retest with it and hopefully your issue will be resolved too, but if it's not, we don't give support for issues with Lutris here so you'll have to retest your apps with only plain wine/wine-staging, or file a bug at Lutris support.
Regards.
https://bugs.winehq.org/show_bug.cgi?id=54994
yan12125 pq2sx44teeigl7za@chyen.cc changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|pq2sx44teeigl7za@chyen.cc |
https://bugs.winehq.org/show_bug.cgi?id=54994
C. Leu kle@bluewin.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from C. Leu kle@bluewin.ch --- Mesa MR 23762 landed recently. It is confirmed that the GLXBadFBConfig problem is effectively resolved.
So no GL override workaround is needed anymore. ;-)
Note, while Mesa MR 23762 has fixed the GLX problem in conjunction for recent libx11 versions it may break the creating of contexts if libx11 <1.7.4 is used. That seems to be an other problem of libx11. Affected users have to update libx11 to a version >=1.7.4 to resolve that issue.