Open3D icon indicating copy to clipboard operation
Open3D copied to clipboard

3d text example failing with windows error code: 2000

Open luke-sockhill opened this issue 5 years ago • 17 comments

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

  1. Simply run this file

Expected behavior

Expected the 3d text example to work correctly

Screenshots This is the GUI window that pops up image

This is the error message: image

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.

luke-sockhill avatar Apr 20 '21 22:04 luke-sockhill

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?

prewettg avatar Apr 21 '21 19:04 prewettg

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?

luke-sockhill avatar Apr 22 '21 05:04 luke-sockhill

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.

prewettg avatar Apr 22 '21 17:04 prewettg

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? image

luke-sockhill avatar Apr 26 '21 10:04 luke-sockhill

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.

prewettg avatar Apr 26 '21 15:04 prewettg

Closing since we can't reproduce it. Please test with the latest Open3D and reopen the issue if you still have this problem.

ssheorey avatar Feb 25 '23 07:02 ssheorey

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.

Leerw avatar Feb 25 '23 08:02 Leerw

屏幕截图 2023-04-27 234800 I still have the same issue,how to solve it

v479038280 avatar Apr 27 '23 15:04 v479038280

I am also facing this error when using the open3d visualizer programs. I have AMD ryzen 5 5600H and RTX 3050 Ti. image

jrajpal5-singularity avatar Apr 27 '23 17:04 jrajpal5-singularity

I have the same problem. any ideas how to fix it? many thanks

rebaljber avatar May 08 '23 13:05 rebaljber

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).

pebbie avatar Oct 15 '23 12:10 pebbie

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.

ssheorey avatar Oct 16 '23 04:10 ssheorey

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.

Timezyxdev avatar Nov 03 '23 21:11 Timezyxdev

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.

image

organic-nailer avatar Apr 20 '24 12:04 organic-nailer

Have the same problem with win11 and 7900XTX and the filament test works fine

Gilabite avatar May 04 '24 20:05 Gilabite

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?

ICO-Fantasy avatar Jul 23 '25 01:07 ICO-Fantasy

The same issue with Ryzen 7 5700G (Vega 8) on Windows 11. Any chances on clearing this up ?

macsunmood avatar Aug 28 '25 13:08 macsunmood