Minecraft Blogs / Tutorial

GLFW error 65543: GLX: Failed to create context: GLXBadFBConfig. (SOLUTION)

  • 32,582 views, 40 today
  • 6
  • 5
  • 22
Nachitus avatar Nachitus
Level 41 : Master Engineer
13
Ubuntu(Linux) issues with Minecraft 1.17.1
If you are an Ubuntu user and you are having problems launching Minecraft 1.17 on Linux, here is a possible solution.

About the error
GLFW error 65543: GLX: Failed to create context: GLXBadFBConfig.
Is an error that happens specially when you're trying to load Minecraft with Optifine in 1.17.1. The cause of this error is that this Optifine version needs OpenGL 4.3 to create a context apparently called "GLXBadFBConfig".
When I was searching for information about the error I read on a blog that probably the only way to fix it is buying a new graphic card. I started feel dissapointed. But I didn't gave up and still searching for help, so I found another blog that talked about a terminal command that helps some people with old OpenGL versions.
Yes, for some reason this error usually happens on Linux and not on Windows.

How to fix it
To fix it you need to "lie" to your Minecraft saying it that your OpenGL version is 4.3. You can override temporarily the OpenGL version variable with this command in terminal (open the terminal using Ctrl+Alt+T):

MESA_GL_VERSION_OVERRIDE=4.3

But not so fast! After type this on the terminal, you need to run your Minecraft. If you're using the original Minecraft Launcher you just need to run the command this way:

MESA_GL_VERSION_OVERRIDE=4.3 minecraft-launcher

But if this isn't working you need to go to the directory in which you have the Minecraft executable (in the terminal, of course). Use "cd" comand and the directory of the game executable and finally once you're in the directory which has the game executable you just need to type the previous command with some differences:

MESA_GL_VERSION_OVERRIDE=4.3 (your minecraft executable)

If your Minecraft executable is a .jar (just like me), you need to execute it this way:

MESA_GL_VERSION_OVERRIDE=4.3 java -jar (your minecraft executable)
For example, in my case I have Fénix Launcher so I needed to type:

MESA_GL_VERSION_OVERRIDE=4.3 java -jar LauncherFenix-Minecraft-v7.jarIf you're having problems while trying to open your Minecraft Launcher in the correct file adress you can do this:

  • Right-click on your .jar file
  • Click copy
  • ctrl+shift+v in terminal
  • You'll find a line like file:///home/exaple
  • Now copy and paste this line and remove file:// from the line
  • And now type:
    MESA_GL_VERSION_OVERRIDE=4.3 /home/exapleREMEMBER: If you have .jar Minecraft Launcher use:
  • MESA_GL_VERSION_OVERRIDE=4.3 java - jar /home/exaple

    And it should work, of course, if you have the same problem as me.I hope this was usefull for you and goodbye!
    Tags

    Create an account or sign in to comment.

    1
    11/18/2023 8:02 pm
    Level 1 : New Miner
    Da epic gamer
    Da epic gamer avatar
    Hi. i am currently trying to get minecraft to run on my raspberry pi 4 model b.

    i have tried to find how to be able to use this command on prism launcher, but it has not worked at all.

    could you recommend some launchers to me that work on raspberry pi? or maybe tell me how to add the command to prism launcher, if that is possible?

    thanks if you reply
    2
    05/14/2022 5:14 pm
    Level 1 : New Miner
    User4117386G
    User4117386G avatar
    It is very sad that Microsoft seems to care so little for the multiplatform support of a game that can be adapted to other platforms as easy as 123. This will definetely result in an angry letter to Redmond.
    2
    05/15/2022 7:13 pm
    Level 41 : Master Engineer
    Nachitus
    Nachitus avatar
    Microsoft just want to have the OS monopoly
    1
    04/19/2022 7:06 pm
    Level 1 : New Miner
    MikolajMNK19
    MikolajMNK19 avatar
    Hi there, how would this work with MultiMC? I went to the directory which turned out to be a .sh file and it does not work, it just says "run.sh: command not found"
    1
    04/19/2022 7:11 pm
    Level 1 : New Miner
    MikolajMNK19
    MikolajMNK19 avatar
    Also went to the file that the run.sh linked to and it also just says "MultiMC: command not found"
    2
    09/17/2021 10:38 am
    Level 1 : New Miner
    User3819461G
    User3819461G avatar
    Thanks it really helped!
    1
    09/02/2021 4:42 amhistory
    Level 1 : New Miner
    SpanishSteve
    SpanishSteve avatar
    I have followed the steps but it crashes when the game runs. Any solution? I'm using TLauncher

    Crash report: pastebin.com/bVtFawVd
    1
    09/02/2021 5:01 pm
    Level 41 : Master Engineer
    Nachitus
    Nachitus avatar
    I can't understand the crash report. But what error it appears in the screen when you try to load Minecraft.
    1
    06/13/2022 12:08 pm
    Level 1 : New Miner
    yuvamcmaster
    yuvamcmaster avatar
    Same issue but i wanna play mc and my parents might come home so i will tell u the error cod later :)
    1
    08/19/2021 12:31 amhistory
    Level 1 : New Miner
    QuantumReaper
    QuantumReaper avatar
    hey I get this error when i try it... help?

    Error: Unable to access jarfile Tlauncher-2.8.jar
    Planet Minecraft

    Website

    © 2010 - 2023
    www.planetminecraft.com

    Welcome