Skip to content

Instantly share code, notes, and snippets.

@JPLeBreton
Created January 2, 2018 06:27
Show Gist options
  • Save JPLeBreton/782b92872380ee6ab3b11b3954ca56cd to your computer and use it in GitHub Desktop.
Save JPLeBreton/782b92872380ee6ab3b11b3954ca56cd to your computer and use it in GitHub Desktop.
playscii raspberry pi3 PyOpenGL crash
pi@emulord:~/playscii $ python3 playscii.py
Playscii v0.9.9
Loading config from /home/pi/.config/Playscii/playscii.cfg...
Config loaded.
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
Detecting hardware...
CPU: armv7l
OS: Linux-4.9.35-v7+-armv7l-with-debian-8.0
Python: 3.4.2 (default, Oct 19 2014, 13:31:11) [GCC 4.9.1] (32bit)
Modules: PySDL2: 0.9.6, numpy: 1.13.3, PyOpenGL: 3.1.0, appdirs: 1.4.3, PIL: 4.3.0
SDL: 2.0.6 hg-0:aaaaaaaaaaah, SDLmixer: 2.0.0
Detected screen resolution: 1920 x 1080, window: 1280 x 720
GPU: Broadcom - Gallium 0.4 on VC4 V3D 2.1
OpenGL detected: OpenGL ES 2.0 Mesa 13.0.0
GLSL detected: OpenGL ES GLSL ES 1.0.16
Vertex Array Object support NOT found.
Traceback (most recent call last):
File "playscii.py", line 1097, in <module>
state_to_load, autoplay_game)
File "playscii.py", line 290, in __init__
self.gw = GameWorld(self)
File "/home/pi/playscii/game_world.py", line 113, in __init__
self.grid = GameGrid(self.app)
File "/home/pi/playscii/renderable_line.py", line 57, in __init__
GL.glVertexAttribPointer(self.pos_attrib, self.vert_items, GL.GL_FLOAT, GL.GL_FALSE, 0, offset)
File "/usr/local/lib/python3.4/dist-packages/OpenGL/latebind.py", line 61, in __call__
return self.wrapperFunction( self.baseFunction, *args, **named )
File "/usr/local/lib/python3.4/dist-packages/OpenGL/GL/VERSION/GL_2_0.py", line 426, in glVertexAttribPointer
contextdata.setValue( key, array )
File "/usr/local/lib/python3.4/dist-packages/OpenGL/contextdata.py", line 58, in setValue
context = getContext( context )
File "/usr/local/lib/python3.4/dist-packages/OpenGL/contextdata.py", line 41, in getContext
"""Attempt to retrieve context when no valid context"""
OpenGL.error.Error: Attempt to retrieve context when no valid context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment