isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
11k stars 2.26k forks source link

[Open3D WARNING] GLFW Error: GLX #5126

Open LimSsun opened 2 years ago

LimSsun commented 2 years ago

Checklist

My Question

I tried to use Open3d in docker. But, the following error message appears:

[Open3D WARNING] GLFW Error: X11: Failed to open display :0 [Open3D WARNING] Failed to initialize GLFW [Open3D WARNING] [DrawGeometries] Failed creating OpenGL window.

So I looked up issue and tried using the command "sudo xhost +" or "xhost +local:docker" and I got a different kind of error. The error is as follows.

[Open3D WARNING] GLFW Error: GLX: Failed to create context: BadMatch (invalid parameter attributes) [Open3D WARNING] Failed to create window [Open3D WARNING] [DrawGeometries] Failed creating OpenGL window.

There are nvidia graphics card drivers and ibnvidia-gl. Below is a statement that appears when you enter a command to verify the version.

When entering the "nvidia-smi" command, +-----------------------------------------------------------------------------+ | | NVIDIA-SMI 470.129.06 Driver Version: 470.129.06 CUDA Version: 11.4 | |-------------------------------+----------------------+----------------------+ So I also installed libnvidia-gl with the command "sudo apt-get-y install libnvidia-gl-470".

I really want to know the solution of this problem....

NicolayP commented 2 years ago

Same issue here

materdd commented 1 year ago

You need to add "--gpus 'all,"capabilities=compute,utility,graphics"' \" on docker run file. It worked fine for me.

http://www.open3d.org/docs/release/docker.html

Haoyang-Zhang0516 commented 1 year ago

Checklist

My Question

I tried to use Open3d in docker. But, the following error message appears:

[Open3D WARNING] GLFW Error: X11: Failed to open display :0 [Open3D WARNING] Failed to initialize GLFW [Open3D WARNING] [DrawGeometries] Failed creating OpenGL window.

So I looked up issue and tried using the command "sudo xhost +" or "xhost +local:docker" and I got a different kind of error. The error is as follows.

[Open3D WARNING] GLFW Error: GLX: Failed to create context: BadMatch (invalid parameter attributes) [Open3D WARNING] Failed to create window [Open3D WARNING] [DrawGeometries] Failed creating OpenGL window.

There are nvidia graphics card drivers and ibnvidia-gl. Below is a statement that appears when you enter a command to verify the version.

When entering the "nvidia-smi" command, +-----------------------------------------------------------------------------+ | | NVIDIA-SMI 470.129.06 Driver Version: 470.129.06 CUDA Version: 11.4 | |-------------------------------+----------------------+----------------------+ So I also installed libnvidia-gl with the command "sudo apt-get-y install libnvidia-gl-470".

I really want to know the solution of this problem....

Same issue, do you find the solution?

andrewyguo commented 1 year ago

bump

shenqildr commented 1 year ago

This one worked for me. So I'm leaving this answer here.

export DISPLAY=:1.0

junmeng6025 commented 9 months ago

This one worked for me. So I'm leaving this answer here.

export DISPLAY=:1.0

Doesn't work.. Error changed from

[Open3D WARNING] GLFW Error: X11: The DISPLAY environment variable is missing                                                                
[Open3D WARNING] Failed to initialize GLFW

to

[Open3D WARNING] GLFW Error: X11: Failed to open display :1.0                                                                                │
[Open3D WARNING] Failed to initialize GLFW
libo87 commented 4 months ago

env Ubuntu, python

Solved this error in steps: 1. ln -s /usr/lib/x86_64-linux-gnu/dri /usr/lib/dri this step solve errors like: libGL error: MESA-LOADER: failed to open radeonsi: /usr/lib/dri/radeonsi_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri) 2. conda install -c conda-forge libstdcxx-ng this step solve errors like: libGL error: MESA-LOADER: failed to open radeonsi: /root/anaconda3/envs/torch13/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /lib/x86_64-linux-gnu/libLLVM-13.so.1) (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)

now, o3d.visualization.draw_geometries works for me.

Atticuszz commented 3 months ago

conda install -c conda-forge libstdcxx-ng

OMG,it works for me

Dipankar1997161 commented 1 week ago

conda install -c conda-forge libstdcxx-ng

OMG,it works for me

DOESN't work for me