Willy-JL / F95Checker

GNU General Public License v3.0
113 stars 17 forks source link

Debian glGetUniformLocation (1, b’Texture\x00’) 'invalid operation' err 1282 result -1 in glfwrenderer setup #29

Closed yohudood closed 1 year ago

yohudood commented 2 years ago

python3 main.py Unable to load numpy_formathandler accelerator from OpenGL_accelerate Traceback (most recent call last): File "/home/yorickhuizenga/Downloads/f95/F95Checker-Source/main.py", line 79, in main() File "/home/yorickhuizenga/Downloads/f95/F95Checker-Source/main.py", line 54, in main globals.gui = gui.MainGUI() File "/home/yorickhuizenga/Downloads/f95/F95Checker-Source/modules/gui.py", line 153, in init self.impl = GlfwRenderer(self.window) File "/usr/local/lib/python3.10/dist-packages/imgui/integrations/glfw.py", line 12, in init super(GlfwRenderer, self).init() File "/usr/local/lib/python3.10/dist-packages/imgui/integrations/opengl.py", line 60, in init super(ProgrammablePipelineRenderer, self).init() File "/usr/local/lib/python3.10/dist-packages/imgui/integrations/base.py", line 17, in init self._create_device_objects() File "/usr/local/lib/python3.10/dist-packages/imgui/integrations/opengl.py", line 108, in _create_device_objects self._attrib_location_tex = gl.glGetUniformLocation(self._shader_handle, "Texture") File "src/latebind.pyx", line 51, in OpenGL_accelerate.latebind.Curry.call File "/home/yorickhuizenga/.local/lib/python3.10/site-packages/OpenGL/GL/VERSION/GL_2_0.py", line 430, in glGetUniformLocation return baseOperation( program, name ) File "/home/yorickhuizenga/.local/lib/python3.10/site-packages/OpenGL/platform/baseplatform.py", line 415, in call return self( *args, **named ) File "src/errorchecker.pyx", line 58, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError OpenGL.error.GLError: GLError(       err = 1282,       description = b'invalid operation',       baseOperation = glGetUniformLocation,       cArguments = (1, b'Texture\x00'),       result = -1 ) Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7f9fd1003400>

Willy-JL commented 2 years ago

at a brief glance it looks like the same error that unroot has been having since the beginnings of 9.0... still no clue on the cause, can you check if it works with the prebuilt binaries?

first spotted here https://f95zone.to/threads/f95checker-willyjl.44173/post-8675364

yohudood commented 2 years ago

log.txt

F95Checker-Linux

Willy-JL commented 2 years ago

Hm, same thing there...

Willy-JL commented 1 year ago

Tried looking more into it, managed nothing. Made a plea for help in pyimgui/pyimgui#309...

Willy-JL commented 1 year ago

Should be fixed after build 731. Went through quite the struggles with unroot: first opengl issues, then libc version mismatches and finally outdated sqlite versions, but that's all been fixed and it seems that the proposed fix with the window hints (3db3167e34e1110fb98e6f92d90e23b29c355da1) actually fixes this issue. try it out for yourself and let me know if it's fixed for you too, I'll mark as pending release in the meantime

Willy-JL commented 1 year ago

Released in version 9.5