question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot create GLX Context

See original GitHub issue

I’m exploring the many instances of this problem reported online (it originates in VTK), but for documentation’s sake:

After no modifications I’m aware of (no reboot, no apt-get upgrade, no rebuild), drake-visualizer and directorPython testMainWindowApp.py (and probably others) have stopped launching with error:

ERROR: In /build/buildd/vtk-5.8.0/Rendering/vtkXOpenGLRenderWindow.cxx, line 404
vtkXOpenGLRenderWindow (0x263af40): Could not find a decent visual


ERROR: In /build/buildd/vtk-5.8.0/Rendering/vtkXOpenGLRenderWindow.cxx, line 404
vtkXOpenGLRenderWindow (0x263af40): Could not find a decent visual


ERROR: In /build/buildd/vtk-5.8.0/Rendering/vtkXOpenGLRenderWindow.cxx, line 631
vtkXOpenGLRenderWindow (0x263af40): Cannot create GLX context.  Aborting.

Aborted (core dumped)

This has persisted after a clean rebuild (of spartan) and a reboot.

While I search and try stuff, any ideas?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

6reactions
manuellicommented, Jun 12, 2017

I fixed this by setting the USE_SYSTEM_VTK=OFF option.

0reactions
gizattcommented, Mar 12, 2018

Right, but Director expects a certain vtk version (6 or 7, I think? see the director homepage) while your system might have another version installed. If you run director and it loads vtk dynamic libraries that are a different version than it director was built with, this problem might come up.

On Mar 11, 2018 20:48, “Ziwen Qin” notifications@github.com wrote:

Vtk no special requirements, like:

In general VTK tries to be as portable as possible; the specific configurations below are known to work and tested.

VTK supports the following C++11 compilers:

Microsoft Visual Studio 2013 or newer gcc 4.8.3 or newer Clang 3.3 or newer Apple Clang 5.0 (from Xcode 5.0) or newer Intel 14.0 or newer

VTK supports the following operating systems:

Windows Vista or newer Mac OS X 10.7 or newer Linux (ex: Ubuntu 12.04 or newer, Debian 4 or newer)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/RobotLocomotion/director/issues/503#issuecomment-372165197, or mute the thread https://github.com/notifications/unsubscribe-auth/AC7LTzdlDfTju1t2yOFvbKyGtLOamp-jks5tdcXsgaJpZM4NDhds .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Paraview: Cannot create GLX context
Hello, I am currently experiencing trouble starting Paraview on my newly built Linux Station. For the hardware my graphics card is AMD ...
Read more >
[OpenFOAM] Problem with paraView starting - CFD Online
ParaFoam error could not find a decent visual - solution in post #4; "Cannot create GLX context": Errors while installing openfoam on ubuntu ......
Read more >
Cannot create Direct GLX Context... (Linux) - General Help
Hello :smiley: First off, my problem: java.lang.Error: Cannot create window: Could not create a direct GLX context at com.jme.system.lwjgl.
Read more >
GLX Context Creation Error: GLXBadFBConfig - Stack Overflow
I used glXCreateContext to create the contexts, but the function is deprecated and always results in an OpenGL Version 3.0, where I would ......
Read more >
Fails to create GLX context with graphics interception plugin
Hello, LGD 2.2 worked so far on my desktop computer (Mint 18.2, GeForce GTX 970) until I updated this morning.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found