Open3D icon indicating copy to clipboard operation
Open3D copied to clipboard

GLFW Error: GLX: Failed to create context: GLXBadFBConfig

Open AbhiDarisi opened this issue 7 years ago • 52 comments

I'm trying to see the results of (https://github.com/fregu856/3DOD_thesis) 3d object detection on kitti data set.In this, open3d is used for the visualization part of 3d bounding boxes. I'm getting the below mentioned error while running visualize_eval_test.py:

part of code creating error: inside visualize_eval_test.py: def draw_geometries_dark_background(geometries): print("inside draw_geometries_dark_background") vis = open3d.visualization.Visualizer() vis.create_window() opt = open3d.visualization.RenderOption() opt.background_color = np.asarray([0, 0, 0]) for geometry in geometries: vis.add_geometry(geometry) vis.run() vis.destroy_window()

error: $python visualization/visualize_eval_test.py GLFW Error: GLX: Failed to create context: GLXBadFBConfig Failed to create window Segmentation fault (core dumped)

Environment:

  • OS: Ubuntu 16.04 [e.g. OSX Mojave, Ubuntu 16.04, Windows 10.0]
  • Python version: Python 3.5.2
  • Open3D version:0.5.0.0
  • I'm using a GPU using SSH.
  • How did you install Open3D?: pip

Any solution for this?

Regards Abhi

AbhiDarisi avatar Apr 08 '19 10:04 AbhiDarisi

ssh into a remote server is a headless use case. The visualizer expect you have a monitor. (After all, without a monitor and a mouse, how do you interact with the visualizer, :)

However, if you have a predefined animation, you can run headless rendering. Check this out: http://www.open3d.org/docs/tutorial/Advanced/headless_rendering.html

qianyizh avatar Apr 19 '19 05:04 qianyizh

@qianyizh Why isn't it possible to forward via X11? For matplotlib, it works to have an interactive window via SSH -X, given the environment variable DISPLAY is correctly configured. In order to test OpenGL, I tried glxgears with remote rendering and it also works. However, for open3d, the error I get is:

GLFW Error: GLX: GLX version 1.3 is required
Failed to create window
[DrawGeometries] Failed creating OpenGL window.

maxjaritz avatar Jul 01 '19 15:07 maxjaritz

umm, interesting, last time I checked it worked well with X-window. Not sure about its current status though. @syncle any comment on this?

qianyizh avatar Jul 16 '19 17:07 qianyizh

Hi guys, having a similar problem using XRDP. Any updates on this by any chance?

bakar-a avatar Aug 19 '19 16:08 bakar-a

@qianyizh Why isn't it possible to forward via X11? For matplotlib, it works to have an interactive window via SSH -X, given the environment variable DISPLAY is correctly configured. In order to test OpenGL, I tried glxgears with remote rendering and it also works. However, for open3d, the error I get is:

GLFW Error: GLX: GLX version 1.3 is required
Failed to create window
[DrawGeometries] Failed creating OpenGL window.

Hi, have you ever figured out how to forward x11 without glx version error message?

huangkuns avatar Oct 17 '19 09:10 huangkuns

Have same error that glx version 1.3 is required. My local Ubuntu (in WSL) has glx version 1.2. How do I update to 1.3?

@qianyizh Why isn't it possible to forward via X11? For matplotlib, it works to have an interactive window via SSH -X, given the environment variable DISPLAY is correctly configured. In order to test OpenGL, I tried glxgears with remote rendering and it also works. However, for open3d, the error I get is:

GLFW Error: GLX: GLX version 1.3 is required
Failed to create window
[DrawGeometries] Failed creating OpenGL window.

tkasarla avatar Feb 06 '20 06:02 tkasarla

@qianyizh Why isn't it possible to forward via X11? For matplotlib, it works to have an interactive window via SSH -X, given the environment variable DISPLAY is correctly configured. In order to test OpenGL, I tried glxgears with remote rendering and it also works. However, for open3d, the error I get is:

GLFW Error: GLX: GLX version 1.3 is required
Failed to create window
[DrawGeometries] Failed creating OpenGL window.

Hi, have you ever figured out how to forward x11 without glx version error message?

I have the same question, I need to forward rviz through ssh...

rancheng avatar Apr 03 '20 20:04 rancheng

Have same error that glx version 1.3 is required. My local Ubuntu (in WSL) has glx version 1.2. How do I update to 1.3?

@qianyizh Why isn't it possible to forward via X11? For matplotlib, it works to have an interactive window via SSH -X, given the environment variable DISPLAY is correctly configured. In order to test OpenGL, I tried glxgears with remote rendering and it also works. However, for open3d, the error I get is:

GLFW Error: GLX: GLX version 1.3 is required
Failed to create window
[DrawGeometries] Failed creating OpenGL window.

Hello, have you solved the problem? I met the same situation and didn't find solution..

Angericky avatar Apr 12 '20 16:04 Angericky

This is really difficult problem. Did any of you guys solved the headless rendering issue.. GLFW Error: GLX: GLX version 1.3 is required Failed to create window [DrawGeometries] Failed creating OpenGL window.

I keep getting this Error

YangJae96 avatar Jun 18 '20 14:06 YangJae96

This issue should be solved in the latest release of Open3D.

germanros1987 avatar Aug 07 '20 00:08 germanros1987

Still facing a similar issue. Using open3d version 0.11.2

SmileyScientist avatar Nov 09 '20 19:11 SmileyScientist

Still facing a similar issue. Using open3d version 0.11.2

Same issue here, with the same version

joavd avatar Nov 12 '20 13:11 joavd

I also have the same problems with open3d 0.11.2.

MoritzZa avatar Nov 24 '20 13:11 MoritzZa

I also have the same problems with open3d 0.12.0.

Liuchongpei avatar Jan 06 '21 08:01 Liuchongpei

same issue with open3d version 0.12.0

Rschleyen avatar Feb 07 '21 21:02 Rschleyen

same issue with open3d version 0.12.0

scimad avatar Feb 12 '21 08:02 scimad

@maxjaritz Hi, did you solve this issue? I was running your mvpnet code via SSH -X and got exactly the same issue mentioned here when trying to visualize the result. Btw thanks for your fantastic work!

@qianyizh Why isn't it possible to forward via X11? For matplotlib, it works to have an interactive window via SSH -X, given the environment variable DISPLAY is correctly configured. In order to test OpenGL, I tried glxgears with remote rendering and it also works. However, for open3d, the error I get is:

GLFW Error: GLX: GLX version 1.3 is required
Failed to create window
[DrawGeometries] Failed creating OpenGL window.

dcy0577 avatar Feb 27 '21 18:02 dcy0577

@maxjaritz Hi, did you solve this issue? I was running your mvpnet code via SSH -X and got exactly the same issue mentioned here when trying to visualize the result. Btw thanks for your fantastic work!

@qianyizh Why isn't it possible to forward via X11? For matplotlib, it works to have an interactive window via SSH -X, given the environment variable DISPLAY is correctly configured. In order to test OpenGL, I tried glxgears with remote rendering and it also works. However, for open3d, the error I get is:

GLFW Error: GLX: GLX version 1.3 is required
Failed to create window
[DrawGeometries] Failed creating OpenGL window.

Thanks :)

No, sorry :( However, I also did not try for a long time.

maxjaritz avatar Feb 27 '21 19:02 maxjaritz

Same here! using x2go and getting same messages with open3d 0.12.0

nairouzshehata avatar Jun 21 '21 21:06 nairouzshehata

@germanros1987 why is this issue closed? Lot's of people still face the issue including me

davodogster avatar Jul 12 '21 02:07 davodogster