Open LimSsun opened 2 years ago
Same issue here
You need to add "--gpus 'all,"capabilities=compute,utility,graphics"' \" on docker run file. It worked fine for me.
Checklist
- [x] I have searched for similar issues.
- [x] For Python issues, I have tested with the latest development wheel.
- [x] I have checked the release documentation and the latest documentation (for
master
branch).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?
bump
This one worked for me. So I'm leaving this answer here.
export DISPLAY=:1.0
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
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.
conda install -c conda-forge libstdcxx-ng
OMG,it works for me
conda install -c conda-forge libstdcxx-ng
OMG,it works for me
DOESN't work for me
Checklist
master
branch).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....