-
Notifications
You must be signed in to change notification settings - Fork 97
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
There are still some problems with 'Headless Rendering' #46
Comments
Hi, |
I changed the egl.py like this: """EGL (cross-platform) platform library"""
import ctypes, ctypes.util
from OpenGL.platform import baseplatform, ctypesloader
class EGLPlatform( baseplatform.BasePlatform ):
try:
return ctypesloader.loadLibrary(
ctypes.cdll,
'OpenGL',
mode=ctypes.RTLD_GLOBAL
)
except OSError: |
Okay, good. But if you don't have a display connected, you can't run the code in debugging mode, i.e. with the -d flag. This is also mentioned in the README. Does it run without the flag? |
I assume it does, closing the issue for now. |
I came upon the same issue, I changed my code to be like in the comment above yet still it doesn't work and nothing changed. I'm using OpenGL version 4.6.0 |
Hey I have similar issues , did you manage to fix these errors ? |
Hey @B-Acharya , I am facing the same issue as you mentioned above. Did you manage to resolve it ? |
run 'export PYOPENGL_PLATFORM='egl'', and then run "ae_train exp_group/my_autoencoder -d"
but it occured to have this error:
OpenGL.error.GLError: GLError(
err = 12297,
baseOperation = eglCreateContext,
cArguments = (
<OpenGL._opaque.EGLDisplay_pointer object at 0x7fec2fd053b0>,
<OpenGL._opaque.EGLConfig_pointer object at 0x7fec2fd05320>,
<OpenGL._opaque.EGLContext_pointer object at 0x7fec2fdc5560>,
<OpenGL.arrays.lists.c_int_Array_7 object at 0x7fec2fd054d0>,
),
result = <OpenGL._opaque.EGLContext_pointer object at 0x7fec2fd057a0>
)
The text was updated successfully, but these errors were encountered: