Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL Error (Windows WSL2 with Nvidia) #4429

Open
hbd730 opened this issue Dec 11, 2021 · 2 comments
Open

OpenGL Error (Windows WSL2 with Nvidia) #4429

hbd730 opened this issue Dec 11, 2021 · 2 comments
Labels
bug Not a build issue, this is likely a bug. visualization windows

Comments

@hbd730
Copy link

hbd730 commented Dec 11, 2021

Hi,

I am able to install the software and verify the following works, python -c "import open3d.ml.torch as ml3d" with out error,
However, when I run the example in readme, I got OpenGL error.

INFO - 2021-12-11 14:35:22,038 - semantickitti - Found 42296 pointclouds for all {'idx': 0, 'name': '00_001256', 'path': '/mnt/c/Users/PeterHuang/Documents/KITTI_DATASET/data_odometry_velodyne/dataset/sequences/00/velodyne/001256.bin', 'split': 'all'} (122985, 3) INFO - 2021-12-11 14:35:22,260 - semantickitti - Found 42296 pointclouds for all FEngine (64 bits) created at 0x7f7075c42010 (threading is enabled) FEngine resolved backend: OpenGL X Error of failed request: GLXBadFBConfig Major opcode of failed request: 148 (GLX) Minor opcode of failed request: 0 () Serial number of failed request: 27 Current serial number in output stream: 27 Segmentation fault

My environment is WSL2 with CUDA driver install from Nvidia link
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.00 Driver Version: 510.06 CUDA Version: 11.6 |
|-------------------------------+----------------------+----------------------+

I google online and tried to add the following export MESA_GL_VERSION_OVERRIDE=4.5, it seems work but render with a black screen.

@hbd730
Copy link
Author

hbd730 commented Dec 11, 2021

I further run the following
export MESA_GLSL_VERSION_OVERRIDE=450
The example runs, but it has Seg fault after a few seconds
image

@ssheorey ssheorey transferred this issue from isl-org/Open3D-ML Dec 15, 2021
@ssheorey ssheorey added windows visualization bug Not a build issue, this is likely a bug. labels Dec 15, 2021
@ssheorey ssheorey changed the title OpenGL Error OpenGL Error (Windows WSL2 with Nvidia) Dec 15, 2021
@AndreasGronlund
Copy link

AndreasGronlund commented May 2, 2022

I have the same issue. I'm running OpenGL from within conda

CUDA 11.2
Pytorch 1.11
Open3D built from source

with the same result as above. Any solutions?

EDIT!!!

With below settings (either set directly in terminal or in .bashrc and .profile) it works for me. I assume the numbers set depends on the version of mesa drivers in use. I dont know if ALWAYS_SOFTWARE implies any performance hit, but I cannot see any. glxgears is actually faster with this setting, wheter it is a true performance gain or an artefact of the measurement method used I dont know.

OpenGL Settings

export LIBGL_ALWAYS_INDIRECT=0
export MESA_GL_VERSION_OVERRIDE=4.5
export MESA_GLSL_VERSION_OVERRIDE=450
export LIBGL_ALWAYS_SOFTWARE=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not a build issue, this is likely a bug. visualization windows
Projects
None yet
Development

No branches or pull requests

3 participants