$ python3 run_game.py
Exception in thread Thread-1 (_thread_run):
Traceback (most recent call last):
File "/.../threading.py", line 1016, in _bootstrap_inner
self.run()
File "/.../threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/.../site-packages/pyglet/media/mediathreads.py", line 41, in _thread_run
self.run()
File "/.../site-packages/pyglet/media/mediathreads.py", line 120, in run
filled = player.refill_buffer()
File "/.../site-packages/pyglet/media/drivers/openal/adaptation.py", line 236, in refill_buffer
write_size = self._get_write_size()
File "/.../site-packages/pyglet/media/drivers/openal/adaptation.py", line 226, in _get_write_size
self._update_play_cursor()
File "/.../site-packages/pyglet/media/drivers/openal/adaptation.py", line 188, in _update_play_cursor
self._handle_processed_buffers()
File "/.../site-packages/pyglet/media/drivers/openal/adaptation.py", line 200, in _handle_processed_buffers
processed = self.alsource.unqueue_buffers()
File "/.../site-packages/pyglet/media/drivers/openal/interface.py", line 245, in unqueue_buffers
processed = self.buffers_processed
File "/.../site-packages/pyglet/media/drivers/openal/interface.py", line 183, in <lambda>
return property(lambda self: self._get_int(attribute),
File "/.../site-packages/pyglet/media/drivers/openal/interface.py", line 263, in _get_int
self._check_error('Failed to get value')
File "/.../site-packages/pyglet/media/drivers/openal/interface.py", line 37, in _check_error
raise OpenALException(message=message,
pyglet.media.drivers.openal.interface.OpenALException: OpenAL Exception [40965: b'Out of Memory']: Failed to get value
Traceback (most recent call last):
File "/.../run_game.py", line 1569, in <module>
render()
File "/.../run_game.py", line 1561, in render
g.scene.render()
File "/.../run_game.py", line 1398, in render
self.world.update()
File "/.../run_game.py", line 1085, in update
obj.update(self)
File "/.../run_game.py", line 1037, in update
self.space_ship.update(world)
File "/.../run_game.py", line 996, in update
speaker.play_beam()
File "/.../run_game.py", line 159, in play_beam
self.players.append(self.beam.play())
File "/.../site-packages/pyglet/media/codecs/base.py", line 230, in play
player.play()
File "/.../site-packages/pyglet/media/player.py", line 216, in play
self._set_playing(True)
File "/.../site-packages/pyglet/media/player.py", line 165, in _set_playing
self._create_audio_player()
File "/.../site-packages/pyglet/media/player.py", line 334, in _create_audio_player
self._audio_player = audio_driver.create_audio_player(source, self)
File "/.../site-packages/pyglet/media/drivers/openal/adaptation.py", line 31, in create_audio_player
return OpenALAudioPlayer(self, source, player)
File "/.../site-packages/pyglet/media/drivers/openal/adaptation.py", line 90, in __init__
self.alsource = driver.context.create_source()
File "/.../site-packages/pyglet/media/drivers/openal/interface.py", line 133, in create_source
return OpenALSource(self)
File "/.../site-packages/pyglet/media/drivers/openal/interface.py", line 146, in __init__
self._get_state()
File "/.../site-packages/pyglet/media/drivers/openal/interface.py", line 257, in _get_state
self._state = self._get_int(al.AL_SOURCE_STATE)
File "/.../site-packages/pyglet/media/drivers/openal/interface.py", line 263, in _get_int
self._check_error('Failed to get value')
File "/.../site-packages/pyglet/media/drivers/openal/interface.py", line 37, in _check_error
raise OpenALException(message=message,
pyglet.media.drivers.openal.interface.OpenALException: OpenAL Exception [40961: b'Invalid Name']: Failed to get value
Exception ignored in: <function OpenALSource.__del__ at 0x7f2f1e2c5900>
Traceback (most recent call last):
File "/.../site-packages/pyglet/media/drivers/openal/interface.py", line 152, in __del__
self.delete()
File "/.../site-packages/pyglet/media/drivers/openal/interface.py", line 158, in delete
self._check_error('Failed to delete source.')
File "/.../site-packages/pyglet/media/drivers/openal/interface.py", line 37, in _check_error
raise OpenALException(message=message,
pyglet.media.drivers.openal.interface.OpenALException: OpenAL Exception [40961: b'Invalid Name']: Failed to delete source.
AL lib: (EE) alc_cleanup: 1 device not closed