Skip to content

pyglet.gl.lib.GLException: b'stack overflow' #7

@happyleibniz

Description

@happyleibniz

some hell program output:

pyglet.gl.lib.GLException: b'invalid value'
pyglet.gl.lib.GLException: b'invalid value'
pyglet.gl.lib.GLException: b'invalid value'
pyglet.gl.lib.GLException: b'invalid value'
pyglet.gl.lib.GLException: b'invalid value'
pyglet.gl.lib.GLException: b'invalid value'
pyglet.gl.lib.GLException: b'invalid value'
pyglet.gl.lib.GLException: b'invalid value'
pyglet.gl.lib.GLException: b'invalid value'
pyglet.gl.lib.GLException: b'invalid value'
pyglet.gl.lib.GLException: b'invalid value'
pyglet.gl.lib.GLException: b'invalid value'
pyglet.gl.lib.GLException: b'invalid value'
pyglet.gl.lib.GLException: b'invalid value'
pyglet.gl.lib.GLException: b'invalid value'
Traceback (most recent call last):
  File "C:\Users\leibniz\Desktop\Documents\all python\Minecraft_python_Edition\.venv1\Lib\site-packages\pyglet\graphics\__init__.py", line 450, in _get_domain
    domain = domain_map[key]
             ~~~~~~~~~~^^^^^
KeyError: (('v3f', 't2f'), GL_QUADS, False)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\leibniz\Desktop\Documents\all python\Minecraft_python_Edition\minecraft_main_program.py", line 845, in <module>
    scene.updateScene()
  File "C:\Users\leibniz\Desktop\Documents\all python\Minecraft_python_Edition\game\Scene.py", line 252, in updateScene
    self.clouds.update()
  File "C:\Users\leibniz\Desktop\Documents\all python\Minecraft_python_Edition\game\world\Clouds.py", line 17, in update
    self.gl.stuffBatch.add(4, GL_QUADS, self.gl.block["clouds"][0],
  File "C:\Users\leibniz\Desktop\Documents\all python\Minecraft_python_Edition\.venv1\Lib\site-packages\pyglet\graphics\__init__.py", line 366, in add
    domain = self._get_domain(False, mode, group, formats)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\leibniz\Desktop\Documents\all python\Minecraft_python_Edition\.venv1\Lib\site-packages\pyglet\graphics\__init__.py", line 456, in _get_domain
    domain = vertexdomain.create_domain(*formats)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\leibniz\Desktop\Documents\all python\Minecraft_python_Edition\.venv1\Lib\site-packages\pyglet\graphics\vertexdomain.py", line 134, in create_domain
pyglet.gl.lib.GLException: b'invalid value'
    return VertexDomain(attribute_usages)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\leibniz\Desktop\Documents\all python\Minecraft_python_Edition\.venv1\Lib\site-packages\pyglet\graphics\vertexdomain.py", line 183, in __init__
    attribute.buffer = vertexbuffer.create_mappable_buffer(
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\leibniz\Desktop\Documents\all python\Minecraft_python_Edition\.venv1\Lib\site-packages\pyglet\graphics\vertexbuffer.py", line 110, in create_mappable_buffer
    return MappableVertexBufferObject(size, target, usage)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\leibniz\Desktop\Documents\all python\Minecraft_python_Edition\.venv1\Lib\site-packages\pyglet\graphics\vertexbuffer.py", line 384, in __init__
    super(MappableVertexBufferObject, self).__init__(size, target, usage)
  File "C:\Users\leibniz\Desktop\Documents\all python\Minecraft_python_Edition\.venv1\Lib\site-packages\pyglet\graphics\vertexbuffer.py", line 301, in __init__
    glPushClientAttrib(GL_CLIENT_VERTEX_ARRAY_BIT)
  File "C:\Users\leibniz\Desktop\Documents\all python\Minecraft_python_Edition\.venv1\Lib\site-packages\pyglet\gl\lib.py", line 107, in errcheck
    raise GLException(msg)
pyglet.gl.lib.GLException: b'stack overflow'
Exception ignored in: <function VertexDomain.__del__ at 0x0000021403E1BC40>
Traceback (most recent call last):
  File "C:\Users\leibniz\Desktop\Documents\all python\Minecraft_python_Edition\.venv1\Lib\site-packages\pyglet\graphics\vertexdomain.py", line 232, in __del__
    for attribute in self.attributes:
                     ^^^^^^^^^^^^^^^
AttributeError: 'VertexDomain' object has no attribute 'attributes'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions