DragGAN
DragGAN copied to clipboard
GLError
OpenGL.error.GLError: GLError( err = 1282, description = b'invalid operation', baseOperation = glGetUniformLocation, cArguments = (1, b'Texture\x00'), result = -1 )
Run on WSL2 windows11
我的在mac电脑、intel 处理器 ,运行也报上面错误提示
raise self._errorClass(
OpenGL.error.GLError: GLError( err = 1282, description = b'invalid operation', baseOperation = glGetUniformLocation, cArguments = (1, b'Texture\x00'), result = -1 )
Add these lines of code before create window In gui_util>glfw_window.py>line 35
glfw.window_hint(glfw.CONTEXT_VERSION_MAJOR, 3)
glfw.window_hint(glfw.CONTEXT_VERSION_MINOR, 3)
glfw.window_hint(glfw.OPENGL_FORWARD_COMPAT, GL_TRUE)
glfw.window_hint(glfw.OPENGL_PROFILE, glfw.OPENGL_CORE_PROFILE)
if that not work Try this https://github.com/NVlabs/stylegan3/issues/66#issuecomment-1006375618
I try it: export MESA_GL_VERSION_OVERRIDE=3.3. But the following error still occurred, My computer is configured with MAC 2.4 GHz 8-core Intel Core i9
raise self._errorClass( OpenGL.error.GLError: GLError( err = 1282, description = b'invalid operation', baseOperation = glGetUniformLocation, cArguments = (1, b'Texture\x00'), result = -1 )
Add these lines of code before create window In gui_util>glfw_window.py>line 35
glfw.window_hint(glfw.CONTEXT_VERSION_MAJOR, 3) glfw.window_hint(glfw.CONTEXT_VERSION_MINOR, 3) glfw.window_hint(glfw.OPENGL_FORWARD_COMPAT, GL_TRUE) glfw.window_hint(glfw.OPENGL_PROFILE, glfw.OPENGL_CORE_PROFILE)
if that not work Try this NVlabs/stylegan3#66 (comment)
what is GL_TRUE?
NameError: name 'GL_TRUE' is not defined
export MESA_GL_VERSION_OVERRIDE=3.3, this has solved my issue.
Change
GL_TRUE
togl.GL_TRUE
Same here with an Intel Mac.
Try both export MESA_GL_VERSION_OVERRIDE=3.3
and changes from @Pawandeep-prog in glfw_window.py
file, none of the two works for me.
I still have these errors:
With glfw_window.py
change:
OpenGL.error.GLError: GLError(
err = 1282,
description = b'invalid operation',
baseOperation = glMatrixMode,
cArguments = (GL_PROJECTION,)
)
With export MESA_GL_VERSION_OVERRIDE=3.3
OpenGL.error.GLError: GLError(
err = 1282,
description = b'invalid operation',
baseOperation = glGetUniformLocation,
cArguments = (1, b'Texture\x00'),
result = -1
)
Same here with an Intel Mac. Try both
export MESA_GL_VERSION_OVERRIDE=3.3
and changes from @Pawandeep-prog inglfw_window.py
file, none of the two works for me. I still have these errors:With
glfw_window.py
change:OpenGL.error.GLError: GLError( err = 1282, description = b'invalid operation', baseOperation = glMatrixMode, cArguments = (GL_PROJECTION,) )
With
export MESA_GL_VERSION_OVERRIDE=3.3
OpenGL.error.GLError: GLError( err = 1282, description = b'invalid operation', baseOperation = glGetUniformLocation, cArguments = (1, b'Texture\x00'), result = -1 )
Same error with Mac M2 Pro Try both, still errors
same error, Is there any solution to solve this problem?
same error with Ubuntu 20, any solution?
same error with Ubuntu 20, any solution?
ok, i use export MESA_GL_VERSION_OVERRIDE=3.3
than it work
Same problem after borth https://github.com/XingangPan/DragGAN/issues/36#issuecomment-1614356178
export MESA_GL_VERSION_OVERRIDE=3.3, this has solved my issue.
Thank u!
export MESA_GL_VERSION_OVERRIDE=3.3
This fixed the issue. Tested on Ubuntu.
I have met an error using pyopengl OpenGL.error.GLError: GLError( err = 1282, description = b'\xce\xde\xd0\xa7\xb2\xd9\xd7\xf7', baseOperation = glPushMatrix, cArguments = () )
export MESA_GL_VERSION_OVERRIDE=3.3, this has solved my issue.
thanks!