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

In windows 10 unhandled exception "System.Exception: 'wglChoosePixelFormatARB failed: error 0'" #75

Open
migueltk opened this issue Dec 1, 2021 · 4 comments
Labels

Comments

@migueltk
Copy link

migueltk commented Dec 1, 2021

Hello ...
When testing the demos, the following error is thrown in all of them:
"System.Exception: 'wglChoosePixelFormatARB failed: error 0'"
inside the method "private void CreateOpenGLContext (IntPtr hwnd)" in the file "Win32OpenGLRenderer.Windows.cs".
I use 'Windows 10 pro', version '21H1', 64-bit operating system.
OpenGL:
Renderer: Radeon RX 580 Series
Vendor: ATI Technologies Inc.
Version: 4.6.14761 Core Profile Forward-Compatible Context 21.10.2 30.0.13025.5005
Shading language version: 4.60

I appreciate any help, your project is great.
Thanks in advance ... Miguel

@zwcloud zwcloud added the bug label Dec 2, 2021
@zwcloud
Copy link
Owner

zwcloud commented Dec 2, 2021

The demo project should run without problem, but they haven't been tested for a long time. Maybe I broke something when developing child window rendering. I'll look into the issue this weekend.

BTW, I will restart development of ImGui in the next month. Thanks for let me know you are interested in this project.

@zwcloud
Copy link
Owner

zwcloud commented Dec 6, 2021

Seems to be a GPU-specific issue. I cannot reproduce the error on win10 and NVIDIA 1070Ti/2080Ti.

Please try disable MSAA by setting Application.EnableMSAA to false, and run the demo again. @migueltk
If it works, please reply to let me know, thanks.

@migueltk
Copy link
Author

migueltk commented Dec 7, 2021 via email

@zwcloud
Copy link
Owner

zwcloud commented Dec 7, 2021

when closing the window the
following exception appears:

System.InvalidOperationException: 'Wgl.MakeCurrent failed, error: Invalid
controller.'

This is a known issue. I will fix it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants