Zylann/godot_heightmap_module

Error when starting game with Heightmap

mixedCase opened this issue · 2 comments

Title. Just trying to run a scene with a heightmap node will do it. Tried adding a default HeightMapData and editing but it does nothing. This is on godot's 3.0.1-stable branch (also reproduced on master from a few hours ago). This is the terminal output:

Running: /mnt/DataHDD/code/tools/godot/bin/godot.x11.tools.64 --path /mnt/DataHDD/code/games/Test1 --remote-debug 127.0.0.1:6007 --allow_focus_steal_pid 17942 --position 2368,240
OpenGL ES 3.0 Renderer: GeForce GTX 970/PCIe/SSE2
ERROR: operator[]: FATAL: Index p_index=0 out of size (size()=0)
   At: core/vector.h:138.
handle_crash: Program crashed with signal 4
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] /usr/lib/libc.so.6(+0x348e0) [0x7f313f4bc8e0] (??:0)
[2] Vector<HeightMapChunk*>::operator[](int) (??:0)
[3] Grid2D<HeightMapChunk*>::set(int, int, HeightMapChunk*) (??:0)
[4] Grid2D<HeightMapChunk*>::set(Point2i, HeightMapChunk*) (??:0)
[5] HeightMap::_make_chunk_cb(Point2i, int) (??:0)
[6] HeightMap::s_make_chunk_cb(void*, Point2i, int) (??:0)
[7] QuadTreeLod<HeightMapChunk*>::make_chunk(int, Point2i) (??:0)
[8] QuadTreeLod<HeightMapChunk*>::make_chunks_recursively(QuadTreeLod<HeightMapChunk*>::Node&, int) (??:0)
[9] QuadTreeLod<HeightMapChunk*>::update(Vector3) (??:0)
[10] HeightMap::_process() (??:0)
[11] HeightMap::_notification(int) (??:0)
[12] HeightMap::_notificationv(int, bool) (??:0)
[13] Object::notification(int, bool) (??:0)
[14] SceneTree::_notify_group_pause(StringName const&, int) (??:0)
[15] SceneTree::idle(float) (??:0)
[16] Main::iteration() (??:0)
[17] OS_X11::run() (??:0)
[18] /mnt/DataHDD/code/tools/godot/bin/godot.x11.tools.64(main+0xd5) [0x558071bf45cf] (??:0)
[19] /usr/lib/libc.so.6(__libc_start_main+0xea) [0x7f313f4a8f4a] (??:0)
[20] /mnt/DataHDD/code/tools/godot/bin/godot.x11.tools.64(_start+0x2a) [0x558071bf441a] (??:0)
-- END OF BACKTRACE --
Nothing read: Connection reset by peer
ERROR: read: Server disconnected!

Did you save the data as a .heightmap? Maybe it's the same issue as #6

I did not. While my error is completely different, saving the heightmap fixed it. Thanks.