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

Errors on scene shutdown #23

Open
aprotopsaltis opened this issue May 16, 2023 · 1 comment
Open

Errors on scene shutdown #23

aprotopsaltis opened this issue May 16, 2023 · 1 comment

Comments

@aprotopsaltis
Copy link
Collaborator

Some errors are generated on scene shutdown. It is probably related to VertexArray.
All examples, except 1,2 and 11, have this issue. Also, when running the code with the debugger the error is filtered.

Unable to import OpenGL.arrays.lists.ListHandler: sys.meta_path is None, Python is likely shutting down
Exception ignored in: <function VertexArray.del at 0x7fd074d10ca0>
Traceback (most recent call last):
File "/Users/antonisprotopsaltis/Documents/docs/work/ORAMAVR/src/Elements/Elements/pyGLV/GL/VertexArray.py", line 88, in del
File "src/latebind.pyx", line 39, in OpenGL_accelerate.latebind.LateBind.call
File "src/wrapper.pyx", line 299, in OpenGL_accelerate.wrapper.Wrapper.call
File "src/wrapper.pyx", line 161, in OpenGL_accelerate.wrapper.PyArgCalculator.c_call
File "src/wrapper.pyx", line 128, in OpenGL_accelerate.wrapper.PyArgCalculatorElement.c_call
File "src/wrapper.pyx", line 114, in OpenGL_accelerate.wrapper.PyArgCalculatorElement.c_call
File "src/wrapper.pyx", line 212, in OpenGL_accelerate.wrapper.CallFuncPyConverter.c_call
File "src/arraydatatype.pyx", line 172, in OpenGL_accelerate.arraydatatype.ArrayDatatype.asArray
File "src/arraydatatype.pyx", line 55, in OpenGL_accelerate.arraydatatype.HandlerRegistry.c_lookup
TypeError: ("No array-type handler for type <class 'list'> (value: [2]) registered", None)
Unable to import OpenGL.arrays.lists.ListHandler: sys.meta_path is None, Python is likely shutting down
Exception ignored in: <function VertexArray.del at 0x7fd074d10ca0>
Traceback (most recent call last):
File "/Users/antonisprotopsaltis/Documents/docs/work/ORAMAVR/src/Elements/Elements/pyGLV/GL/VertexArray.py", line 88, in del
File "src/latebind.pyx", line 39, in OpenGL_accelerate.latebind.LateBind.call
File "src/wrapper.pyx", line 299, in OpenGL_accelerate.wrapper.Wrapper.call
File "src/wrapper.pyx", line 161, in OpenGL_accelerate.wrapper.PyArgCalculator.c_call
File "src/wrapper.pyx", line 128, in OpenGL_accelerate.wrapper.PyArgCalculatorElement.c_call
File "src/wrapper.pyx", line 114, in OpenGL_accelerate.wrapper.PyArgCalculatorElement.c_call
File "src/wrapper.pyx", line 212, in OpenGL_accelerate.wrapper.CallFuncPyConverter.c_call
File "src/arraydatatype.pyx", line 172, in OpenGL_accelerate.arraydatatype.ArrayDatatype.asArray
File "src/arraydatatype.pyx", line 55, in OpenGL_accelerate.arraydatatype.HandlerRegistry.c_lookup
TypeError: ("No array-type handler for type <class 'list'> (value: [3]) registered", None)
Unable to import OpenGL.arrays.lists.ListHandler: sys.meta_path is None, Python is likely shutting down
Exception ignored in: <function VertexArray.del at 0x7fd074d10ca0>
Traceback (most recent call last):
File "/Users/antonisprotopsaltis/Documents/docs/work/ORAMAVR/src/Elements/Elements/pyGLV/GL/VertexArray.py", line 88, in del
File "src/latebind.pyx", line 39, in OpenGL_accelerate.latebind.LateBind.call
File "src/wrapper.pyx", line 299, in OpenGL_accelerate.wrapper.Wrapper.call
File "src/wrapper.pyx", line 161, in OpenGL_accelerate.wrapper.PyArgCalculator.c_call
File "src/wrapper.pyx", line 128, in OpenGL_accelerate.wrapper.PyArgCalculatorElement.c_call
File "src/wrapper.pyx", line 114, in OpenGL_accelerate.wrapper.PyArgCalculatorElement.c_call
File "src/wrapper.pyx", line 212, in OpenGL_accelerate.wrapper.CallFuncPyConverter.c_call
File "src/arraydatatype.pyx", line 172, in OpenGL_accelerate.arraydatatype.ArrayDatatype.asArray
File "src/arraydatatype.pyx", line 55, in OpenGL_accelerate.arraydatatype.HandlerRegistry.c_lookup
TypeError: ("No array-type handler for type <class 'list'> (value: [4]) registered", None)

@kamarianakis
Copy link
Collaborator

Using atexit seems to resolve all issues, at least on Mac. Resolved for Mac in #51

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