Open3D Visualizer fails to start when running the standard python test code (AMD GPU)
- Dominant language
- C++
- Stars
- 14k
- Forks
- 2.6k
- Avg merge
- 5d 18h
- Merged PRs (30d)
- 6
Description
### Checklist
- [X] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [X] For Python issues, I have tested with the [latest development wheel](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch).
### Steps to reproduce the issue
Install Open3D using pip on python3.8.10 embedded. Then run the test code below (which is copied from the installation page http://www.open3d.org/docs/release/getting_started.html):
```
python -c "import open3d as o3d; \
mesh = o3d.geometry.TriangleMesh.create_sphere(); \
mesh.compute_vertex_normals(); \
o3d.visualization.draw(mesh, raw_mode=True)"
```
The last line will fail as detailed in the Error Message section below.
### Error message
```shell
C:\Python-3.8.10-embed>python -c "import open3d as o3d;mesh = o3d.geometry.TriangleMesh.create_sphere();mesh.compute_vertex_normals();o3d.visualization.draw(mesh, raw_mode=True)"
FEngine (64 bits) created at 0000014F53CF2050 (threading is enabled)
FEngine resolved backend: OpenGL
in void __cdecl filament::PlatformWGL::makeCurrent(struct filament::backend::Platform::SwapChain *,struct filament::backend::Platform::SwapChain *) noexcept:241
reason: wglMakeCurrent() failed. hdc = 000000006B0117E0
Windows error code: 2000. (null)
COMPILE ERROR:
1: #version 410
2: layout(std140) uniform FrameUniforms
3: {
4: mat4 viewFromWorldMatrix;
5: mat4 worldFromViewMatrix;
6: mat4 clipFromViewMatrix;
7: mat4 viewFromClipMatrix;
8: mat4 clipFromWorldMatrix;
9: mat4 worldFromClipMatrix;
10: mat4 lightFromWorldMatrix[4];
11: vec4 cascadeSplits;
12: vec4 resolution;
13: vec3 cameraPosition;
14: float time;
15: vec4 lightColorIntensity;
16: vec4 sun;
17: vec3 lightPosition;
18: uint padding0;
19: vec3 lightDirection;
20: uint fParamsX;
21: vec3 shadowBias;
22: float oneOverFroxelDimensionY;
23: vec4 zParams;
24: uvec2 fParams;
25: vec2 origin;
26: float oneOverFroxelDimension;
27: float iblLuminance;
28: float exposure;
29: float ev100;
30: vec3 iblSH[9];
31: vec4 userTime;
32: float iblRoughnessOneLevel;
33: float cameraFar;
34: float refractionLodOffset;
35: uint directionalShadows;
36: vec3 worldOffset;
37: float ssContactShadowDistance;
38: float fogStart;
39: float fogMaxOpacity;
40: float fogHeight;
41: float fogHeightFalloff;
42: vec3 fogColor;
43: float fogDensity;
44: float fogInscatteringStart;
...
```
### Open3D, Python and System information
```markdown
- Operating system: Windows 10 64-bit
- Python version: Python 3.8.10 / 3.8.10 (tags/v3.8.10:3d8993a, May 3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)]
- Open3D version: output from python: `print(open3d.__version__)`
- System architecture: arm64
- Is this a remote workstation?: no. It is a desktop with Ryzen 5950x and Radeon HD 7950.
- How did you install Open3D?: pip
- Compiler version (if built from source): n/a
```
### Additional information
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.