Does the issue occur in the editor or during gameplay?
During Gameplay, on mapload
If it's a gameplay issue, please specify which movement system and camera type you're using (free movement vs. grid movement, third-person vs. first-person) or N/A if not applicable:
First Person, Free movement
Briefly describe the issue you're experiencing:
Script to random generate a town crashes Godot when adding tiles into map - basic proof of concept worked. Started crashing when I started rotating tiles to randomly change direction of buildings.
Are there any errors in the in-game debug console or external console window?
Yes:
CrashHandlerException: Program crashed
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[0] <couldn't map PC to fn name>
[1] <couldn't map PC to fn name>
[2] <couldn't map PC to fn name>
[3] <couldn't map PC to fn name>
[4] <couldn't map PC to fn name>
[5] <couldn't map PC to fn name>
[6] <couldn't map PC to fn name>
[7] <couldn't map PC to fn name>
[8] <couldn't map PC to fn name>
[9] <couldn't map PC to fn name>
[10] <couldn't map PC to fn name>
[11] <couldn't map PC to fn name>
[12] <couldn't map PC to fn name>
[13] <couldn't map PC to fn name>
[14] BaseThreadInitThunk
-- END OF BACKTRACE --
Provide the steps necessary to reproduce the issue:
Running game again usually causes another crash.
Provide a download link to the bare bones project (strongly recommended if it's an in-game issue, since this helps significantly when attempting to reproduce it; the report will also be given more priority in this case):
https://1drv.ms/u/c/f01f8181d3315806/EbVfOJEcAoRGozO-AdT-Qu4BpDCxTMFyX9PCdIsF21RbDw?e=wlyvPI