isl-org / isl-org/Open3D

[BUG] Open3D visualization.draw() fails on AMD (Radeon 780M, RX 7700S) with wglMakeCurrent error and Windows error code 2000

Open
#7,309 0 comments 0 reactions 0 assignees View on GitHub
bug
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](https://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [x] I have checked the [release documentation](https://www.open3d.org/docs/release/) and the [latest documentation](https://www.open3d.org/docs/latest/) (for `main` branch).

### Describe the issue

I am unable to use the new Open3D visualizer (visualization.draw()) on my Windows 11 system with AMD GPUs.
The classic visualizer (draw_geometries()) works fine, but draw() causes repeated errors.
The window appears, but interacting with it (mouse, resize, etc.) causes errors. This occurs as soon as I move, click, or resize the draw window.

### Steps to reproduce the bug

```python
import open3d as o3d
o3d.visualization.draw([o3d.geometry.TriangleMesh.create_sphere()])
```

### Error message

in void __cdecl filament::PlatformWGL::makeCurrent(struct filament::backend::Platform::SwapChain *,struct filament::backend::Platform::SwapChain *) noexcept:241
reason: wglMakeCurrent() failed. hdc = FFFFFFFF97011459

Windows error code: 2000. (null)

### Expected behavior

The window should open and allow interaction and rendering as expected.

### Open3D, Python and System information

```markdown
- Operating system: Windows 11 64-bit
- Python version: 3.10.18
- Open3D version: 0.19.0
- System architecture: x86 / arm64 / apple-silicon / jetson / rpi
- Is this a remote workstation?: no
- How did you install Open3D?: pip
```

### Additional information

draw_geometries() (classic visualizer) works without issue on the same setup.
The error persists for both GPUs.
I see shader compile errors in the log as well (COMPILE ERROR: ê).
This issue appears to be a compatibility problem with Filament and AMD OpenGL drivers on Windows 11.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.