Unable to create opengl windows

  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Specialised Support
  • Gaming & Leisure
  • Unable to create OpenGL window: couldn’t find matching GLX visual

  1. Unable to create OpenGL window: couldn’t find matching GLX visual

    I recently installed Ubuntu 10.10 on an asus netbook, and everything has worked fine until a few days ago. I used to play Uplink, naev and a few other games in my spare time, but when I tried yesterday to launch some of them I’ve got (in various forms) this error:

    Code:

    Unable to create OpenGL window: couldn't find matching GLX visual

    This, for instance, is the message naev gives me:

    Code:

    giovanni@giovanni-1015P:~$ naev
     NAEV v0.4.2
     Sea of Darkness
    
    SDL: 1.2.14 [compiled: 1.2.14]
    
    Available fullscreen modes:
      1024 x 600
      800 x 600
      640 x 480
    ERROR opengl.c:448 [gl_createWindow]: Unable to create OpenGL window: Couldn't find matching GLX visual
    NAEV recieved SIGABRT!
    ./naev() [0x808a4e5] loadscreen_render(...):0 ??
    [0xc1c40c] ??(...):0 ??
    /lib/libc.so.6(abort+0x182) [0xde2e42] ??(...):0 ??
    ./naev(gl_init+0xa64) [0x8099304] gl_init(...):0 ??
    ./naev(main+0x2ec) [0x808aafc] main(...):0 ??
    /lib/libc.so.6(__libc_start_main+0xe7) [0xdcbce7] ??(...):0 ??
    ./naev() [0x8059321] _start(...):0 ??
    Report this to project maintainer with the backtrace.

    I googled the error a bit, and I’ve seen it was a quite common problem a while ago, but I couldn’t really find a solution. Is there anyone who can help me figure out what’s wrong?

    — What do you get if you multiply six by nine?
    — 42!


  2. Re: Unable to create OpenGL window: couldn’t find matching GLX visual

    What kind of graphics card? How did you install the graphics drivers? Can you run «glxgears» from the terminal?


  3. Re: Unable to create OpenGL window: couldn’t find matching GLX visual

    Originally Posted by Technophobia

    What kind of graphics card? How did you install the graphics drivers? Can you run «glxgears» from the terminal?

    I have an integratedIntel GMA 950 chipset. I didn’t install any driver, everything worked (for a while, at least) out of the box.

    This is the output from glxgears:

    Code:

    giovanni@giovanni-1015P:~$ glxgears
    Xlib:  extension "GLX" missing on display ":0.0".
    Error: couldn't get an RGB, Double-buffered visual

    — What do you get if you multiply six by nine?
    — 42!


  4. Re: Unable to create OpenGL window: couldn’t find matching GLX visual

    Originally Posted by Technophobia

    What kind of graphics card? How did you install the graphics drivers? Can you run «glxgears» from the terminal?

    I have an integratedIntel GMA 950 chipset. I didn’t install any driver, everything worked (for a while, at least) out of the box.

    This is the output from glxgears:

    Code:

    giovanni@giovanni-1015P:~$ glxgears
    Xlib:  extension "GLX" missing on display ":0.0".
    Error: couldn't get an RGB, Double-buffered visual

    — What do you get if you multiply six by nine?
    — 42!


  5. Re: Unable to create OpenGL window: couldn’t find matching GLX visual

    Originally Posted by Technophobia

    What kind of graphics card? How did you install the graphics drivers? Can you run «glxgears» from the terminal?

    I have an integratedIntel GMA 950 chipset. I didn’t install any driver, everything worked (for a while, at least) out of the box.

    This is the output from glxgears:

    Code:

    giovanni@giovanni-1015P:~$ glxgears
    Xlib:  extension "GLX" missing on display ":0.0".
    Error: couldn't get an RGB, Double-buffered visual

    — What do you get if you multiply six by nine?
    — 42!


  6. Re: Unable to create OpenGL window: couldn’t find matching GLX visual

    Originally Posted by Technophobia

    What kind of graphics card? How did you install the graphics drivers? Can you run «glxgears» from the terminal?

    I have an integratedIntel GMA 950 chipset. I didn’t install any driver, everything worked (for a while, at least) out of the box.

    This is the output from glxgears:

    Code:

    giovanni@giovanni-1015P:~$ glxgears
    Xlib:  extension "GLX" missing on display ":0.0".
    Error: couldn't get an RGB, Double-buffered visual

    — What do you get if you multiply six by nine?
    — 42!


  7. Re: Unable to create OpenGL window: couldn’t find matching GLX visual

    Originally Posted by Technophobia

    What kind of graphics card? How did you install the graphics drivers? Can you run «glxgears» from the terminal?

    I have an integratedIntel GMA 950 chipset. I didn’t install any driver, everything worked (for a while, at least) out of the box.

    This is the output from glxgears:

    Code:

    giovanni@giovanni-1015P:~$ glxgears
    Xlib:  extension "GLX" missing on display ":0.0".
    Error: couldn't get an RGB, Double-buffered visual

    EDIT: Sorry for the multi-multi-[…]multi post, guys. It seems I had some connection issues. Is there a way to delete the previous posts?

    Last edited by Odexios; January 16th, 2011 at 10:58 PM.

    — What do you get if you multiply six by nine?
    — 42!


  8. Re: Unable to create OpenGL window: couldn’t find matching GLX visual

    Try to reinstall/install the Intel graphics driver. I don’t have any experience with Intel GPUs so good luck with your google fu.


Bookmarks

Bookmarks

Posting Permissions

Download Windows Speedup Tool to fix errors and make PC run faster

Some PC gamers may get an error prompt with the message Unable to initialize OpenGL when trying to launch games on Steam on their Windows 11 or Windows 10 gaming rig. If you are affected by a similar issue, the solutions provided in this post are intended to help you successfully fix the error on your device.

Unable to initialize OpenGL

The full error message is along the following similar lines;

Graphics drivers error

Unable to initialize OpenGL. Please (re)install the latest graphics drivers and try again. If the problem persists, please contact support.

Error code: CS-1842
Version: 207864

When this error occurs, you may see the following similar error messages:

  • Unable to initialize OpenGL window
  • Failed to initialize OpenGL
  • Could not initialize OpenGL

If you are receiving the Unable to initialize OpenGL on your Windows 11/10 gaming PC when launching games on Steam, you can try our recommended solutions below in no particular order to resolve the issue on your system.

  1. Update graphics adapter driver
  2. Edit the game MXML file
  3. Reinstall the game

Let’s take a look at the description of the process involved concerning each of the listed solutions.

Before you proceed with the solutions below, we suggest you first restart your PC. After your computer reboots, open Steam, log in your user account and launch the game triggering the error and see if the error reoccurs. Also, make sure the OpenGL and OpenCL Compatibility Pack is installed on your Windows 11/10 gaming rig and try launching the game. In addition, we suggest you check for updates and install any available bits on your gaming device and see if the error occurs when you launch the game. On the other hand, if the error started after a recent Windows update, you can perform System Restore or uninstall the update – but if you prefer not to do neither, you can then go ahead with the solutions below.

1] Update graphics adapter driver

Update graphics adapter driver

The Unable to initialize OpenGL error on your Windows 11/10 gaming PC is graphics driver-related. So, you can begin troubleshooting to fix the issue by updating the graphics card driver on your system.

Below are your options;

  • You can manually update the graphics driver via Device Manager if you have already downloaded the .inf or .sys file for the driver.
  • You can also update the driver via Command Prompt.
  • In Windows Update, you can as well get the driver updates on the Optional Updates section.

If updating the graphics card driver didn’t fix the error, as suggested on the error prompt, you can reinstall the graphics adapter driver. To perform this task, you first need to uninstall the graphics card driver using Display Driver Uninstaller (DDU), and then download the latest version of the driver from the official website or other reliable sources and install it on your PC.

2] Edit the game MXML file

Edit game MXML file

MXML is an XML-based user interface markup language first introduced by Macromedia in March 2004. Application developers use MXML in combination with ActionScript to develop rich web applications, with products such as Apache Flex. Files with the MXML extension are associated with Adobe Flex technology. The MXML file contains the source code in an XML-based markup language and can be used to declaratively define nonvisual aspects of an application, such as access to server-side data sources and data bindings between user-interface components and data sources.

This solution requires you to edit the problematic game MXML file. Here’s how:

  • Launch Steam client.
  • Right-click the problematic game.
  • Select Properties.
  • Go to LOCAL FILES and click BROWSE LOCAL FILES.
  • Next, go into Binaries > Settings.
  • Open the MXML file.
  • Now, change FullScreen property value from true to false.
  • Next, check your screen resolution settings, then change the ResolutionWidth and ResolutionHeight property value accordingly.
  • Save  and exit the MXML file when done.

Relaunch the game and see if the error in focus reoccurs. If so, try the next solution.

3] Reinstall the game

If neither of the solutions above wasn’t helpful, as a last resort you can uninstall the problematic game, reboot PC, and then download and reinstall the latest version of the game on your gaming device.

Any of these solutions should work for you!

Related post: How to fix Minecraft OpenGL Error 1281 on Windows PC

Why is my OpenGL not working?

OpenGL errors can be caused by a variety of reasons including corrupt OS files, outdated drivers, poorly developed apps, incorrect system configurations, and more. To successfully troubleshoot OpenGL errors on your Windows 11/10 PC depends on the specific error you’re getting.

How do I make my driver support OpenGL?

Visit the official site for your graphics adapter hardware, navigate to the graphics driver and choose your operating system. Download the latest drivers for your graphics card and install it to your computer. This will also update the OpenGL on your computer.

What does OpenGL error mean in Minecraft?

The Minecraft OpenGL errors usually occur due to rendering problems within Minecraft. OpenGL is designed to speed up and streamline the rendering process with your GPU. However, issues may arise occasionally, especially when third-party mods, files, or drivers are involved.

Can I install OpenGL?

In all three major desktop platforms (Linux, macOS, and Windows), OpenGL more or less comes with the system. However, you will need to ensure that you have downloaded and installed a recent driver for your graphics hardware.

Obinna has completed B.Tech in Information & Communication Technology. He has worked as a System Support Engineer, primarily on User Endpoint Administration, as well as a Technical Analyst, primarily on Server/System Administration. He also has experience as a Network and Communications Officer. He has been a Windows Insider MVP (2020) and currently owns and runs a Computer Clinic.

Reader Interactions

Open Graphics Library is a cross-platform application programming interface (API) which is used in rendering 3D and 2D vector graphics. The API is usually used for interaction with a graphical processing unit (GPU) which in turn helps achieve hardware-accelerated rendering.

 

Many heavy games rely on this API for their graphics operation and use them in the gameplay. Recently, many users experienced a problem where they were unable to play the game because an error occurs which states “Unable to initialize OpenGL window”. This error is mostly associated with graphics drivers or with the game’s resolution settings. We will go through all the workarounds one by one. Check them out.

Solution 1: Changing ‘TKGRAPHICSSETTINGS.MXML’

Each game has a dedicated file which is used for loading settings whenever it is launched. These settings include the resolution, shadow details, texture details etc. We will open this file in notepad, make some changes according to your system and try launching the game.

  1. Right-click anywhere on your Desktop and select Display settings.
  1. Check the resolution which your computer is currently using. Here it is ‘1920 x 1200’. Note this down as we will need it further in the solution.

  1. Press Windows + E to launch the File Explorer. Navigate to the following directory:
D:\Steam\steamapps\common\NoMansSky\Binaries\SETTINGS

Do note that your directory will be different. Here Steam is installed in Local Disk D. Your Steam might be installed on another hard drive. Make sure you change the navigation address according to your system.

  1. Right-click on the file ‘MXML’ and select “Edit with Notepad++”. This is if you have that editor installed. Otherwise, you can select Open with > Notepad.

  1. Now once you have opened the configuration file, search for the tag ‘ResolutionWidth’ and ‘ResolutionHeight’. Check if the current resolution is set. If the values don’t match, you should change the value to what you saw earlier on.

For example, if your resolution is 1920 x 1200, the ‘ResolutionWidth’ should be ‘1920’ and the ‘ResolutionHeight’ should be ‘1200’. As you can see in the example below, the resolution set was incorrect.

  1. Save changes to the file and exit. Restart your computer properly, launch Steam and try playing the game.

If you still encounter an error when trying to launch the game, you can try changing the attribute ‘Fullscreen’. Change the attribute to “false”. Save changes and try launching the game.

Solution 2: Installing latest client for PS4

If you experience this error on PS Now on your PC, it is probably because the client is outdated and a new one is out. Every now and then, developers release a new version to counter some bugs or add new features to the platform. If you have an outdated client, this may introduce discrepancies.

  1. Download the latest PS Now client from the official website.
  2. Now do not uninstall the older version. Install this new version on top of the existing version.
  3. Once done with the installation, restart your computer completely and check if the problem at hand got solved.

Solution 3: Changing user/ logging in again

There is also a known workaround where simply relogging into Steam fixes the issue. The reason behind this is not well known but it makes sense to deduce that the currently logged in user may have some problems with the display configurations stored. Relogging might fix this issue.

  1. Launch your Steam client using Steam.exe
  2. Log out of Steam by clicking on the option of “Change User” present if you click your account title on the top right corner of the Steam client.

  1. After clicking the option, you will be given a login screen where you have to enter your credentials. After inputting your credentials, check the box which says Remember my password. Click the button Login.

  1. Once logged in, launch the game you were trying to play and check if OpenGL error still persists.

Solution 4: Updating Graphics Drivers

If you have corrupt or outdated drivers, it may be the reason why your game fails to launch or the OpenGL message pops up. Now there are two ways through which you can update the drivers: either manually or automatically. In manually, you have to personally download the driver after searching for it at the manufacturer’s website.

Before updating drivers, we will check if installing the default drivers solve the problem for us.

  1. Boot into Safe mode. Type “devmgmt.msc” in the dialogue box and press Enter. Here navigate to Display Adapters, right-click on your adapter and select Uninstall Device.

  1. Boot your computer into normal mode, press Windows + R, type “devmgmt.msc” in the dialogue box and press Enter. Most probably the default drivers will be installed. If not, right-click on any empty space and select “Scan for hardware changes”. Now check if the game works without any problems. If it does without any problems, good for you. If it doesn’t, carry on.
  2. Now there are two options. Either you can search online for the latest driver available for your hardware from the manufacturer’s website such as NVIDIA etc. (and install manually) or you can let Windows install the latest version itself (search for updates automatically).
  3. We will take a look at installing automatically. Right-click on your hardware and select “Update driver”. Select the first option “Search automatically for updated driver software”. Choose the second option if you are updating manually and select “Browse for driver” and navigate to the location where you downloaded.

  1. Restart your computer after installing the drivers, launch the game and check if you can successfully launch the game without the error message.

Kevin Arrows

Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.

You must be devastated when trying to run your favorite game and receiving one of the following error messages:

  • Unable to initialize OpenGL window
  • Failed to initialize OpenGL
  • Could not initialize OpenGL

This should not bother you much because those are manifestations of a common error and this article is meant to help you with this problem. You can encounter one of the above messages when trying to run any game. Here, you will learn how to fix Unable to initialize OpenGL when gaming. Make sure you go through all the solutions until you find the one that works for you.

What is OpenGL?

Before we begin with the solutions, it is good for you to know more about the error you are encountering. Open Graphics Library, commonly called OpenGL for short, is a cross-platform application programming interface (API) that is used to render 2D and 3D vector graphics. The API is used to create a connection with the graphics processing unit. This process aids in the achievement of hardware-accelerated rendering.

Lots of heavy games use the API for graphics processes and also in gameplay. Of late, we have received a lot of reports from players that are unable to run a game due to an OpenGL error. This error is mostly because of outdated, missing, or corrupted drivers and also due to the game’s resolution settings. Here are some of the solutions you should try out:

Table of Contents

  1. Make sure that your graphics drivers are up to date
  2. Change the TKGRAPHICSSETTINGS.MXML file
  3. Install the latest client for PS4
  4. Change the user or sign out and log in again into Steam

Solution 1. Make sure that your graphics drivers are up to date

The graphics drivers have a very important role to play when it comes to gaming or video editing. Without the drivers, your graphics device will not be able to send signals to the operating system. This is because drivers act as an intermediary between the hardware and the operating system. One of the main reasons why you may encounter the OpenGL error is due to corrupt, missing, or outdated drivers. So, your first course of action is to make sure that all your drivers are up to date. Here, we are going to show you three of the most popular ways to update drivers:

Method 1. Download and install Auslogics Driver Updater

This is one of the easiest and fastest methods you will ever encounter when trying to update your drivers. Even an amateur can use this tool without any problems. You will be able to update all your drivers in just a single click.

Interestingly enough, you will not need to know any additional information about the device whose driver you want to update. This tool will update drivers you did not even know existed. All you need to do is sit back and let it work its magic.

Method 2. Download the driver from the manufacturer’s website

This is also a common method that experienced users employ to get their drivers. It is also reliable because you are getting the driver directly from the manufacturer’s website. You will find the drivers in the support section of the site. Using this method, you will have to know more info about the device whose driver you want to update, such as its name and version. Also, the driver has to match the version and architecture of your operating system. This is what you have to sort out manually. If you get it wrong, you will download and install a wrong driver that will not work on your system. Some popular manufacturer’s, such as Nvidia, Intel, and AMD, have tried to fix this problem by creating clients which direct the user to the proper driver to download.

Method 3. Update the driver, using the Device Manager

The Device Manager is a very handy tool in the Windows operating system. From there, you can manage all the devices that are connected to your computer. You can view all the information about any device and also update its drivers. Here is how to update your graphics driver, using the Device Manager:

Is your computer running slow or suffering system glitches? If so, it may need maintenance. Try running a dedicated PC optimization tool to check the health of your PC and apply the necessary fixes.

  • Right-click on the Start or Home button and select Device Manager.
  • Once the Device Manager window opens, double-click on Display adapters to expand it. There, you will see the graphics device that is installed on your computer.
  • Right-click on it and select Update driver. This will open a new window where you have to choose the first option that prompts you to download and install the drivers from the internet.
  • Now, Windows will find the best and latest driver for your graphics device and install it.

Solution 2. Change the TKGRAPHICSSETTINGS.MXML file

Every game has a unique file that stores its settings. These settings are loaded from the file when the game is launched. Some of the settings include the shadow details, resolution, texture, etc. We are going to show you how to tweak this file to help solve the OpenGL error:

  • First, right-click on your desktop and select Display settings.
  • Now, here you should note the resolution your computer is using. It is advisable to write it down because we will use it later.
  • Go to the taskbar and click on the folder icon to open Windows Explorer, then navigate to C: > Steam > steamapps > common > NoMansSky > Binaries > SETTINGS. Note that the C: refers to the drive on which the game is installed, so it could be different for you.
  • Right-click on the TKGRAPHICSSETTINGS.MXML file and select Edit with Notepad.
  • Once the file is opened, search for ‘ResolutionWidth’ and ‘ResolutionHeight’. These figures are supposed to correlate with your resolution settings. If they don’t, then you have to edit them. For example, if your resolution is 1920 x 1200, the ResolutionWidth = 1920 and ResolutionHeight = 1200.
  • Once you have edited the file to those specifications, save and exit it.
  • Restart your computer and launch the game again to check if the error has been solved.

Solution 3. Install the latest client for PS4

For players who use PS Now on PC, the OpenGL error could be due to the fact that the client is expired or outdated. You should understand that developers release new versions of the software from time to time to fix bugs and introduce new features to the platform. To fix your problem, you need to download and install the latest version of the PS Now client for PC. You do not need to uninstall the old one because the installation will just update it. Once the installation is done, restart your computer and try to run your game again.

Solution 4. Change the user or sign out and log in again into Steam

Many users have reported that simply re-logging into Steam will fix the issue. The reason behind this solution is not well understood, but it could be that the currently logged-in user has some issues with their display configuration. To fix this problem, you need to relog into your Steam account. To do this, use the following steps:

  • Run Steam, using the Steam.exe file.
  • Click on the Steam menu at the top left corner of the window, then select Change user.
  • In the next dialog box, you need to input your user credentials, then click the LOGIN button.
  • Once this is done, try to run your game again and check if the error has been solved.

Pro tip: If you are having problems with viruses, we recommend that you download and install Auslogics Anti-Malware. This tool will clean your system of malware. You will be able to surf the internet without the fear of being infected. Also, you will be able to schedule regular scans of your system to keep it always clean.

We hope that this article has shown you how to resolve the Could not initialize OpenGL issue. Share it with others who encounter similar problems.

We appreciate your ideas and comments, and we are ready to answer all of your questions regarding this topic.



Modified on: Mon, 29 Aug, 2022 at 12:27 PM


Problem

The following message appears on the screen when launching the game: 
«Unable to create OpenGL window. This program requires a graphics card and video drivers which support OpenGL 2.1 or OpenGL ES 2. SDL window creation error: Could not initialize OpenGL/GLES library.»

Causes

  • There is a problem with the GPU OpenGL drivers.
  • The version supported by the current OpenGL drivers is below 2.1.
  • The hardware does not support OpenGL.

Solutions

  • Install the latest drivers from the GPU manufacturer.
  • Check the driver supports OpenGL 2.1 or later. See OpenGL drivers troubleshooting
  • Upgrade your hardware with a compatible GPU.

Need help?


Did you find it helpful?
Yes

No

Send feedback

Sorry we couldn’t be helpful. Help us improve this article with your feedback.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Dance ejay 7 не запускается на windows 10
  • Как создать образ windows server 2003
  • Включение сенсорного экрана windows 10
  • Windows server не работает звук
  • Pci ven 10ec dev c821 cc 0280 windows 10 pro 64 bit