8000 ValueError: NULL pointer access in the provided test script "integrations_glfw3.py" · Issue #381 · pyimgui/pyimgui · GitHub
[go: up one dir, main page]

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

ValueError: NULL pointer access in the provided test script "integrations_glfw3.py" #381

Open
XinhaoT opened this issue Sep 19, 2024 · 0 comments

Comments

@XinhaoT
Copy link
XinhaoT commented Sep 19, 2024

When I run the provided test script "integrations_glfw3.py", I met the following error.
I use PyOpenGL=3.1.7, imgui=2.0.0 on Ubuntu22.04

File "pyimgui/doc/examples/integrations_glfw3.py", line 89, in
main()
File "pyimgui/doc/examples/integrations_glfw3.py", line 15, in main
impl = GlfwRenderer(window)
File "/home/gaps-sccg/anaconda3/envs/imgui/lib/python3.7/site-packages/imgui/integrations/glfw.py", line 13, in init
super(GlfwRenderer, self).init()
File "/home/gaps-sccg/anaconda3/envs/imgui/lib/python3.7/site-packages/imgui/integrations/opengl.py", line 60, in init
super(ProgrammablePipelineRenderer, self).init()
File "/home/gaps-sccg/anaconda3/envs/imgui/lib/python3.7/site-packages/imgui/integrations/base.py", line 17, in init
self._create_device_objects()
File "/home/gaps-sccg/anaconda3/envs/imgui/lib/python3.7/site-packages/imgui/integrations/opengl.py", line 125, in _create_device_objects
gl.glVertexAttribPointer(self._attrib_location_position, 2, gl.GL_FLOAT, gl.GL_FALSE, imgui.VERTEX_SIZE, ctypes.c_void_p(imgui.VERTEX_BUFFER_POS_OFFSET))
File "/home/gaps-sccg/anaconda3/envs/imgui/lib/python3.7/site-packages/OpenGL/latebind.py", line 61, in call
return self.wrapperFunction( self.baseFunction, *args, **named )
File "/home/gaps-sccg/anaconda3/envs/imgui/lib/python3.7/site-packages/OpenGL/GL/VERSION/GL_2_0.py", line 426, in glVertexAttribPointer
contextdata.setValue( key, array )
File "/home/gaps-sccg/anaconda3/envs/imgui/lib/python3.7/site-packages/OpenGL/contextdata.py", line 65, in setValue
current = storage.get( context )
File "/home/gaps-sccg/anaconda3/envs/imgui/lib/python3.7/site-packages/OpenGL/_opaque.py", line 20, in hash
return self.address
File "/home/gaps-sccg/anaconda3/envs/imgui/lib/python3.7/site-packages/OpenGL/_opaque.py", line 14, in address
return ctypes.addressof( self.contents )
ValueError: NULL pointer access

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

1 participant
0