friture icon indicating copy to clipboard operation
friture copied to clipboard

Detect when OpenGL is unavailable

Open ghost opened this issue 7 years ago • 1 comments

File "friture\plotting\glCanvasWidget.py", line 160, in tryGlGetString File "errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError (src\errorchecker.c:1218) OpenGL.error.GLError: GLError( err = 1280, description = b'\xed\xe5\xe4\xee\xef\xf3\xf1\xf2\xe8\xec\xfb\xe9 \xfd\xeb\xe5\xec\xe5\xed\xf2 \xef\xe5\xf0\xe5\xf7\xe8\xf1\xeb\xe5..., baseOperation = glGetString, cArguments = (GL_SHADING_LANGUAGE_VERSION,) ) 2018-10-29 11:30:30,312 WARNING OpenGL.arrays.numpymodule: Unable to load numpy_formathandler accelerator from OpenGL_accelerate 2018-10-29 11:30:30,313 ERROR friture.plotting.glCanvasWidget: glGetIntegerv failed Traceback (most recent call last): File "friture\plotting\glCanvasWidget.py", line 167, in tryGlGetIntegerv File "latebind.pyx", line 32, in OpenGL_accelerate.latebind.LateBind.call (src\latebind.c:989) File "wrapper.pyx", line 318, in OpenGL_accelerate.wrapper.Wrapper.call (src\wrapper.c:6561) File "wrapper.pyx", line 311, in OpenGL_accelerate.wrapper.Wrapper.call (src\wrapper.c:6439) File "site-packages\OpenGL\platform\baseplatform.py", line 402, in call File "errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError (src\errorchecker.c:1218) OpenGL.error.GLError: GLError( err = 1280, description = b'\xed\xe5\xe4\xee\xef\xf3\xf1\xf2\xe8\xec\xfb\xe9 \xfd\xeb\xe5\xec\xe5\xed\xf2 \xef\xe5\xf0\xe5\xf7\xe8\xf1\xeb\xe5..., baseOperation = glGetIntegerv, pyArgs = ( GL_NUM_EXTENSIONS, <object object at 0x04228C90>, ), cArgs = ( GL_NUM_EXTENSIONS, array([0], dtype=int32), ), cArguments = ( GL_NUM_EXTENSIONS, array([0], dtype=int32), ) ) 2018-10-29 11:30:30,314 INFO friture.plotting.glCanvasWidget: Microsoft Corporation, GDI Generic, Version: 1.1.0, Shaders: unknown, Extensions: unknown 2018-10-29 11:30:30,315 CRITICAL friture.exceptionhandler: Unhandled exception: Traceback (most recent call last): File "friture\plotting\glCanvasWidget.py", line 226, in initializeGL File "site-packages\OpenGL\GL\shaders.py", line 213, in compileShader File "latebind.pyx", line 31, in OpenGL_accelerate.latebind.LateBind.call (src\latebind.c:965) File "site-packages\OpenGL\extensions.py", line 245, in finalise OpenGL.error.NullFunctionError: Attempt to call an undefined alternate function (glCreateShader, glCreateShaderObjectARB), check for bool(glCreateShader) before calling

2018-10-29 11:30:30,453 INFO friture.ringbuffer: Ringbuffer: growing buffer for length 15360

ghost avatar Oct 29 '18 08:10 ghost

Dear @Dmeatray could you please tell us more about your setup (Windows I guess ?), how you installed Friture, and what you observed ? From the logs it seems that maybe Friture crashed because there was no suitable OpenGL implementation in your machine, but it's just a guess. Thanks!

tlecomte avatar Feb 24 '19 12:02 tlecomte