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

MemoryError #108

Open
r58Playz opened this issue Jun 27, 2019 · 2 comments
Open

MemoryError #108

r58Playz opened this issue Jun 27, 2019 · 2 comments

Comments

@r58Playz
Copy link

Traceback (most recent call last):
File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\graphics\vertexdomain.py", line 249, in _safe_alloc
return self.allocator.alloc(count)
File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\graphics\allocation.py", line 195, in alloc
raise AllocatorMemoryException(self.capacity + size - free_size)
pyglet.graphics.allocation.AllocatorMemoryException: 2097168

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:/Users/toshi/MicroHat/applications/games/factories/astrocraft-renovation/main.py", line 167, in
main(options)
File "C:/Users/toshi/MicroHat/applications/games/factories/astrocraft-renovation/main.py", line 139, in main
pyglet.app.run()
File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\app_init_.py", line 138, in run
event_loop.run()
File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\app\base.py", line 142, in run
self._run()
File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\app\base.py", line 154, in _run
timeout = self.idle()
File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\app\base.py", line 275, in idle
redraw_all = self.clock.call_scheduled_functions(dt)
File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\clock.py", line 346, in call_scheduled_functions
item.func(now - item.last_ts, *item.args, **item.kwargs)
File "C:\Users\toshi\MicroHat\applications\games\factories\astrocraft-renovation\world.py", line 310, in process_queue
self.packetreceiver.dequeue_packet()
File "C:\Users\toshi\MicroHat\applications\games\factories\astrocraft-renovation\client.py", line 104, in dequeue_packet
blocks.show_block(position)
File "C:\Users\toshi\MicroHat\applications\games\factories\astrocraft-renovation\world.py", line 201, in show_block
self._show_block(position, block)
File "C:\Users\toshi\MicroHat\applications\games\factories\astrocraft-renovation\world.py", line 234, in show_block
('c3f/static', color_data))
File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\graphics_init
.py", line 370, in add
vlist = domain.create(count)
File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\graphics\vertexdomain.py", line 279, in create
start = self._safe_alloc(count)
File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\graphics\vertexdomain.py", line 254, in _safe_alloc
buffer.resize(capacity * buffer.element_size)
File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\graphics\vertexbuffer.py", line 431, in resize
data = (ctypes.c_byte * size)()
MemoryError

@r58Playz
Copy link
Author

Traceback (most recent call last):
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\graphics\vertexdomain.py", line 249, in _safe_alloc
    return self.allocator.alloc(count)
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\graphics\allocation.py", line 195, in alloc
    raise AllocatorMemoryException(self.capacity + size - free_size)
pyglet.graphics.allocation.AllocatorMemoryException: 2097168

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:/Users/toshi/MicroHat/applications/games/factories/astrocraft-renovation/main.py", line 167, in <module>
    main(options)
  File "C:/Users/toshi/MicroHat/applications/games/factories/astrocraft-renovation/main.py", line 139, in main
    pyglet.app.run()
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\app\__init__.py", line 138, in run
    event_loop.run()
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\app\base.py", line 142, in run
    self._run()
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\app\base.py", line 154, in _run
    timeout = self.idle()
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\app\base.py", line 275, in idle
    redraw_all = self.clock.call_scheduled_functions(dt)
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\clock.py", line 346, in call_scheduled_functions
    item.func(now - item.last_ts, *item.args, **item.kwargs)
  File "C:\Users\toshi\MicroHat\applications\games\factories\astrocraft-renovation\world.py", line 310, in process_queue
    self.packetreceiver.dequeue_packet()
  File "C:\Users\toshi\MicroHat\applications\games\factories\astrocraft-renovation\client.py", line 104, in dequeue_packet
    blocks.show_block(position)
  File "C:\Users\toshi\MicroHat\applications\games\factories\astrocraft-renovation\world.py", line 201, in show_block
    self._show_block(position, block)
  File "C:\Users\toshi\MicroHat\applications\games\factories\astrocraft-renovation\world.py", line 234, in _show_block
    ('c3f/static', color_data))
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\graphics\__init__.py", line 370, in add
    vlist = domain.create(count)
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\graphics\vertexdomain.py", line 279, in create
    start = self._safe_alloc(count)
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\graphics\vertexdomain.py", line 254, in _safe_alloc
    buffer.resize(capacity * buffer.element_size)
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\graphics\vertexbuffer.py", line 431, in resize
    data = (ctypes.c_byte * size)()
MemoryError

1 similar comment
@r58Playz
Copy link
Author

Traceback (most recent call last):
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\graphics\vertexdomain.py", line 249, in _safe_alloc
    return self.allocator.alloc(count)
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\graphics\allocation.py", line 195, in alloc
    raise AllocatorMemoryException(self.capacity + size - free_size)
pyglet.graphics.allocation.AllocatorMemoryException: 2097168

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:/Users/toshi/MicroHat/applications/games/factories/astrocraft-renovation/main.py", line 167, in <module>
    main(options)
  File "C:/Users/toshi/MicroHat/applications/games/factories/astrocraft-renovation/main.py", line 139, in main
    pyglet.app.run()
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\app\__init__.py", line 138, in run
    event_loop.run()
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\app\base.py", line 142, in run
    self._run()
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\app\base.py", line 154, in _run
    timeout = self.idle()
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\app\base.py", line 275, in idle
    redraw_all = self.clock.call_scheduled_functions(dt)
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\clock.py", line 346, in call_scheduled_functions
    item.func(now - item.last_ts, *item.args, **item.kwargs)
  File "C:\Users\toshi\MicroHat\applications\games\factories\astrocraft-renovation\world.py", line 310, in process_queue
    self.packetreceiver.dequeue_packet()
  File "C:\Users\toshi\MicroHat\applications\games\factories\astrocraft-renovation\client.py", line 104, in dequeue_packet
    blocks.show_block(position)
  File "C:\Users\toshi\MicroHat\applications\games\factories\astrocraft-renovation\world.py", line 201, in show_block
    self._show_block(position, block)
  File "C:\Users\toshi\MicroHat\applications\games\factories\astrocraft-renovation\world.py", line 234, in _show_block
    ('c3f/static', color_data))
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\graphics\__init__.py", line 370, in add
    vlist = domain.create(count)
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\graphics\vertexdomain.py", line 279, in create
    start = self._safe_alloc(count)
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\graphics\vertexdomain.py", line 254, in _safe_alloc
    buffer.resize(capacity * buffer.element_size)
  File "C:\Program Files (x86)\Python37-32\lib\site-packages\pyglet\graphics\vertexbuffer.py", line 431, in resize
    data = (ctypes.c_byte * size)()
MemoryError

@r58Playz r58Playz reopened this Jun 28, 2019
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

1 participant