3d text example failing with windows error code: 2000
IMPORTANT: Please use the following template to report the bug.
Describe the bug Running examples/python/gui/text3d.py fails with this error:
Windows error code: 2000. (null)
in void __cdecl filament::PlatformWGL::makeCurrent(struct filament::backend::Platform::SwapChain *,struct filament::backend::Platform::SwapChain *) noexcept:241 reason: wglMakeCurrent() failed. hdc = 0000000004010C83
To Reproduce
- Simply run this file
Expected behavior
Expected the 3d text example to work correctly
Screenshots
This is the GUI window that pops up

This is the error message:

Environment (please complete the following information):
- Operating system: Windows 10 64-bit
- Python version: Python 3.8.5
- Open3D version: Latest build from master (also had this problem on 0.12)
- Is this remote workstation?: no
- How did you install Open3D?: build from source (problem also happened from pip install of latest release)
- Compiler version (if built from source): cmake version 3.20.1
Additional context Add any other context about the problem here.
I've tried this using both Python 3.8 and 3.9 on Windows 10 and it works for me. The errors are within Filament (the rendering engine), not being able to use the OpenGL context. What graphics card are you using? Are you able to use other programs that use OpenGL? Are you using another OpenGL program at the same time as Open3D?
Hi I have updated my drivers for my integrated graphics: AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx 2.00 GHz
Is there a simple program I can run to test whether OpenGL is working correctly on my machine?
I recommend GLview. Check that OpenGL 4.1 is supported, it might be that your driver only supported 3.2 or something, which would fail with our renderer, which requires 4.1. It has a "Rendering tests" link-button in the left, too, that would be worth trying to verify that you can actually get a WGL context.
I've done all this and the rendering tests went fine, and. I have run the code on a different computer without issue so the code is not the problem. Any other thoughts?

It seems like OpenGL is working okay, as both of us can run the example on different computers it must be something about this configuration. Do the other examples in examples/python/gui work? Are you running in a virtual machine, by any chance? The Vega 8 GPU only has 1GB of VRAM, is it possible that VRAM is being used up by the OS or other applications (high resolution external monitor(s), many large windows open, CAD program running, for example)? I would not expect VRAM to be a problem, since this example isn't going to use much, but I suppose you never know.
Closing since we can't reproduce it. Please test with the latest Open3D and reopen the issue if you still have this problem.
I have the same issue with CPU AMD Ryzen 5 5600G with Radeon Graphics, but works well on intel cpu with a embedded graphics card.
I still have the same issue,how to solve it
I am also facing this error when using the open3d visualizer programs. I have AMD ryzen 5 5600H and RTX 3050 Ti.

I have the same problem. any ideas how to fix it? many thanks
I am also facing this error when using the open3d visualizer programs. I have AMD ryzen 5 5600H and RTX 3050 Ti.
You need to go to NVIDIA Control Panel,
go to 3D Settings > Manage 3D settings
and in the Global settings tab, set preferred graphics processor as "High-performance NVIDIA processor".
the integrated (AMD GPU) option is not working (it's mentioned in the other ticket but it is not known when it will be solved).
If someone has this issue, please test with the filament rendering engine that Open3D uses.
Download from: https://github.com/google/filament/releases Run the gltf_viewer example from the bin folder.
If this doesn't run on your system, please open an issue in the filament repo. If it does, let us know here. Also, we don't have an AMD GPU, so we would need your help to submit a bugfix PR for this.
Hello @ssheorey, I am also experiencing this issue. Which release version of filament should be used for testing? I am having difficulty determining which version the filament engine that Open3D uses belongs to.
Hi @ssheorey. I have the same problem on my laptop (Windows11 23H2, AMD Ryzen 5 4500U with Radeon Graphics).
If someone has this issue, please test with the filament rendering engine that Open3D uses.
Download from: https://github.com/google/filament/releases Run the gltf_viewer example from the bin folder.
I tested if the Filament(v1.9.19) example code works, and it worked. This result may indicate that this problem is not a bug in Filament.
Have the same problem with win11 and 7900XTX and the filament test works fine
I meet the same problem with Intel i7-14700 and AMD Radeon RX 550X Based on the similar issues mentioned at https://github.com/google/filament/issues/994 as well as https://github.com/google/filament/pull/1021, this problem seems to be caused by a change in Windows?
The same issue with Ryzen 7 5700G (Vega 8) on Windows 11. Any chances on clearing this up ?