itsapi / pycraft

A Minecraft-inspired game for the terminal
GNU General Public License v2.0
197 stars 21 forks source link

C-renderer crash on large viewports #144

Open olls opened 6 years ago

olls commented 6 years ago

Once the size of the view gets above around 30x80 it starts to crash after between 0-10 frames with the following error:

IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 404, in <module>
    main()
  File "main.py", line 43, in main
    game(server_obj, settings, benchmarks)
  File "main.py", line 317, in game
    server.spawn_mobs(n_mob_spawn_cycles, bk_objects, sky_colour, day, lights)
  File "/home/olls/repos/python/pycraft/server_interface.py", line 384, in spawn_mobs
    self._server.local_interface_spawn_mobs(*args)
  File "/home/olls/repos/python/pycraft/server.py", line 216, in local_interface_spawn_mobs
    self.game.spawn_mobs(*args)
  File "/home/olls/repos/python/pycraft/server.py", line 323, in spawn_mobs
    render_interface.create_lighting_buffer(width, height, x_start, y_start, self._map, self._slice_heights, bk_objects, sky_colour, day, lights)
  File "/home/olls/repos/python/pycraft/render_interface.py", line 35, in create_lighting_buffer
    return render_c.create_lighting_buffer(width, height, x, y, map_, slice_heights, bk_objects, sky_colour, day, lights, settings_ref)
SystemError: <built-in function create_lighting_buffer> returned a result with an error set
geraintwhite commented 6 years ago

I think that was the same crash I was getting

On Sat, 12 May 2018, 14:49 Oliver Faircliff, notifications@github.com wrote:

Once the size of the view gets above around 30x80 it starts to crash after between 0-10 frames with the following error:

IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main.py", line 404, in main() File "main.py", line 43, in main game(server_obj, settings, benchmarks) File "main.py", line 317, in game server.spawn_mobs(n_mob_spawn_cycles, bk_objects, sky_colour, day, lights) File "/home/olls/repos/python/pycraft/server_interface.py", line 384, in spawn_mobs self._server.local_interface_spawn_mobs(args) File "/home/olls/repos/python/pycraft/server.py", line 216, in local_interface_spawn_mobs self.game.spawn_mobs(args) File "/home/olls/repos/python/pycraft/server.py", line 323, in spawn_mobs render_interface.create_lighting_buffer(width, height, x_start, y_start, self._map, self._slice_heights, bk_objects, sky_colour, day, lights) File "/home/olls/repos/python/pycraft/render_interface.py", line 35, in create_lighting_buffer return render_c.create_lightingbuffer(width, height, x, y, map, slice_heights, bk_objects, sky_colour, day, lights, settings_ref) SystemError: returned a result with an error set

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/itsapi/pycraft/issues/144, or mute the thread https://github.com/notifications/unsubscribe-auth/ADxjaPC98f3rVDXPURIKQqnQdKl2M-eTks5txuhfgaJpZM4T8a4t .