[0.17.79] Can't launch on Linux ("Failed to create OpenGL context")

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
dbtmurray
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu Apr 23, 2020 9:08 pm
Contact:

[0.17.79] Can't launch on Linux ("Failed to create OpenGL context")

Post by dbtmurray »

Hi

I'm experiencing the same problem as this user viewtopic.php?t=68867. Factorio 17 won't launch at all. Factorio 16.x works great.

However, I do have OpenGL 3.3 (I'm pretty sure...). I've included relevant output from glxinfo below: as per this post it's correct to look at the "OpenGL core profile string" rather than the "OpenGL version string". OpenGL 3.3 has been around since 2010 so I would not expect many people to have a machine that is too old to support it, even with integrated graphics.

I'm using Ubuntu 18.04, can send more system info if required.

Code: Select all

david@David-laptop-2018:~/factorio/bin/x64$ glxinfo | grep OpenGL
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 9.0.1, 256 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 20.1.0-devel (git-5a8718f 2020-04-23 bionic-oibaf-ppa)
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.1 Mesa 20.1.0-devel (git-5a8718f 2020-04-23 bionic-oibaf-ppa)
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 20.1.0-devel (git-5a8718f 2020-04-23 bionic-oibaf-ppa)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:

Code: Select all

david@David-laptop-2018:~/factorio/bin/x64$ ./factorio 
   0.000 2020-04-23 22:02:47; Factorio 0.17.79 (build 47865, linux64, alpha)
   0.038 Operating system: Linux (Ubuntu 18.04)
   0.039 Program arguments: "./factorio" 
   0.039 Read data path: /home/david/factorio/data
   0.039 Write data path: /home/david/factorio [15299/49001MB]
   0.039 Binaries path: /home/david/factorio/bin
   0.046 System info: [CPU: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz, 8 cores, RAM: 15765 MB]
   0.046 Environment: DISPLAY=:1 WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=ubuntu XDG_SESSION_DESKTOP=ubuntu XDG_CURRENT_DESKTOP=ubuntu:GNOME __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
   0.046 Display options: [FullScreen: 1] [VSync: 1] [UIScale: automatic (100.0%)] [Native DPI: 1] [Screen: 255] [Special: lmw] [Lang: en]
   0.117 Available displays: 1
   0.117  [0]: default - {[0,0], 1920x1080, SDL_PIXELFORMAT_RGB888, 77Hz}
   0.159 Error Util.cpp:83: Failed to create OpenGL context: Could not create GL context: BadValue (integer parameter out of range for operation)
   4.878 Goodbye
posila
Former Staff
Former Staff
Posts: 5448
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [0.17.79] Can't launch on Linux ("Failed to create OpenGL context")

Post by posila »

llvmpipe is not GPU driver, it is a software renderer ... https://www.mesa3d.org/llvmpipe.html, which makes me wonder how does 0.16 acually run.
Please install actual graphics driver for your GPU.

You are correct I jumped into conclusion too soon in a thread you linked.
dbtmurray
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu Apr 23, 2020 9:08 pm
Contact:

Re: [0.17.79] Can't launch on Linux ("Failed to create OpenGL context")

Post by dbtmurray »

Thanks, I see. Looking in syslog (journalctl) I see this at boot

Apr 23 22:02:08 David-laptop-2018 /usr/lib/gdm3/gdm-x-session[2127]: (II) AIGLX: Screen 0 is not DRI2 capable
Apr 23 22:02:08 David-laptop-2018 /usr/lib/gdm3/gdm-x-session[2127]: (EE) AIGLX: reverting to software rendering

Not a recent change, it's been happening as long as I have syslog records, about 6 months. I don't use this computer extensively for games or anything where I'd notice hardware acceleration was broken. I'll dig into it and see if I can get my integrated graphics working.
dbtmurray
Manual Inserter
Manual Inserter
Posts: 3
Joined: Thu Apr 23, 2020 9:08 pm
Contact:

Re: [0.17.79] Can't launch on Linux ("Failed to create OpenGL context")

Post by dbtmurray »

Confirmed this works fine now after getting my graphics card working. Thanks!
Post Reply

Return to “Technical Help”