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

OpenGL.raw.EGL._errors.EGLError: EGLError(..baseOperation = eglInitialize..) #82

Open
Yuhuoo opened this issue May 20, 2022 · 1 comment

Comments

@Yuhuoo
Copy link

Yuhuoo commented May 20, 2022

I have meet an error as following:
OpenGL.raw.EGL._errors.EGLError: EGLError(
err = EGL_NOT_INITIALIZED,
baseOperation = eglInitialize,
cArguments = (
<OpenGL._opaque.EGLDisplay_pointer object at 0x7fa42ed54240>,
<importlib._bootstrap.LP_c_int object at 0x7fa42ed543c0>,
<importlib._bootstrap.LP_c_int object at 0x7fa42ed69b40>,
),
result = 0
)
My environment is Ubuntu 20.04.3 LTS、NVIDIA GeForce RTX 3090、python3.8、pyopengl3.1.6
How can I solve it?

@mcfletch
Copy link
Owner

mcfletch commented Jan 6, 2023

Sorry, there's not enough information to debug what's happening. You haven't told me what your code is, or what you've tried doing. Presumably somewhere you have code that looks like:

    major, minor = ctypes.c_long(), ctypes.c_long()
    display = eglGetDisplay(EGL_DEFAULT_DISPLAY)
    if not eglInitialize(display, major, minor):
        log.error("Unable to initialize")
        return

as seen in tests/check_egl_pygame.py in the repository. But without knowing what you are running I can't really say what is wrong. EGL_NOT_INITIALIZED is a valid return from eglInitialize(), basically a "we failed" to init response, but I can't say why it failed.

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

No branches or pull requests

2 participants