You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created an empty project, imported a tileset PNG, created a new tileset, placed a few tiles, undid the placements, upped the tileset size to 128x128px, placed a few more tiles, and then hit run, but the play window crashed. After closing the project and attempting to reopen, the editor crashes now as well.
I think information about those original placements is still stored somewhere when the tileset tile size was 16x16, and since there were more tiles present in the 16x16 tilemap, it crashes with an index out of bounds error now that there are fewer tiles.
A sample of the error spam (it is infinite):
ERROR: Cannot create tile. The tile is outside the texture or tiles are already present in the space the tile would cover.
at: (scene\resources\tile_set.cpp:4153)
ERROR: The TileSetAtlasSource atlas has no tile at (21, 21).
at: (scene\resources\tile_set.cpp:4590)
ERROR: TileSetAtlasSource has no tile at (21, 21).
at: (scene\resources\tile_set.cpp:4538)
ERROR: Cannot create tile. The tile is outside the texture or tiles are already present in the space the tile would cover.
at: (scene\resources\tile_set.cpp:4153)
ERROR: The TileSetAtlasSource atlas has no tile at (22, 21).
at: (scene\resources\tile_set.cpp:4590)
ERROR: TileSetAtlasSource has no tile at (22, 21).
at: (scene\resources\tile_set.cpp:4538)
ERROR: Cannot create tile. The tile is outside the texture or tiles are already present in the space the tile would cover.
at: (scene\resources\tile_set.cpp:4153)
ERROR: The TileSetAtlasSource atlas has no tile at (23, 21).
at: (scene\resources\tile_set.cpp:4590)
ERROR: TileSetAtlasSource has no tile at (23, 21).
at: (scene\resources\tile_set.cpp:4538)
ERROR: Cannot create tile. The tile is outside the texture or tiles are already present in the space the tile would cover.
at: (scene\resources\tile_set.cpp:4153)
ERROR: The TileSetAtlasSource atlas has no tile at (24, 21).
at: (scene\resources\tile_set.cpp:4590)
ERROR: TileSetAtlasSource has no tile at (24, 21).
at: (scene\resources\tile_set.cpp:4538)
ERROR: Cannot create tile. The tile is outside the texture or tiles are already present in the space the tile would cover.
at: (scene\resources\tile_set.cpp:4153)
ERROR: The TileSetAtlasSource atlas has no tile at (25, 21).
at: (scene\resources\tile_set.cpp:4590)
ERROR: TileSetAtlasSource has no tile at (25, 21).
at: (scene\resources\tile_set.cpp:4538)
Can't reproduce the crash, although the editor spams errors for a couple of minutes until the scene is loaded. After that it's possible to go to TileSet tab and cleanup the invalid tiles.
Tested versions
4.3.dev 2d0ee20
System information
Windows 11
Issue description
I created an empty project, imported a tileset PNG, created a new tileset, placed a few tiles, undid the placements, upped the tileset size to 128x128px, placed a few more tiles, and then hit run, but the play window crashed. After closing the project and attempting to reopen, the editor crashes now as well.
I think information about those original placements is still stored somewhere when the tileset tile size was 16x16, and since there were more tiles present in the 16x16 tilemap, it crashes with an index out of bounds error now that there are fewer tiles.
A sample of the error spam (it is infinite):
Steps to reproduce
Open the repro, it should crash immediately.
Minimal reproduction project (MRP)
TileMapPlayground.zip
The text was updated successfully, but these errors were encountered: