Page 1 of 1

[0.12.20] [kovarex] surface.set_tiles crashes with invalid name

Posted: Sun Dec 06, 2015 10:16 pm
by prg
Discovered in https://forums.factorio.com/forum/viewtop ... 18&t=18179 but seems like OP didn't report this after all.

Code: Select all

game.local_player.surface.set_tiles{{name="crashme", position=game.local_player.position}}
results in

Code: Select all

   0.000 2015-12-06 23:06:39; Factorio 0.12.20 (Build 17489, linux64)
   0.000 Operating system: Linux
   0.000 Program arguments: "./factorio" 
   0.000 Read data path: /home/prg/Downloads/factorio/data
   0.000 Write data path: /home/prg/Downloads/factorio
   0.000 Binaries path: /home/prg/Downloads/factorio/bin
   0.075 Available display adapters: 2
   0.075  [0]: resolution 1280x1024px at [0,0]
   0.075  [1]: resolution 1024x768px at [1280,0]
   0.075 Create display on adapter 1. Size 1280x720 at position [0, 134]. Monitor 0
   0.142 Initialised OpenGL:[1] GeForce GTX 660/PCIe/SSE2; driver: 4.5.0 NVIDIA 358.13
   0.167 Graphics options: [FullScreen: false] [VSync: false] [UIScale: 100%] [MultiSampling: OFF] [Graphics quality: normal] [Video memory usage: all] [Light scale: 100%] [Screen: 255]
   0.203 Loading mod core 0.0.0 (data.lua)
   0.205 Loading mod base 0.12.20 (data.lua)
   0.565 Initial atlas bitmap size is 16384
   0.567 Created atlas bitmap 16384x7759
   5.918 Factorio initialised
  11.275 Info Scenario.cpp:123: Map version 0.12.20-1
  19.535 Warning Logger.cpp:316: Symbols.size() == 31, usedSize == 21
Factorio crashed. Generating symbolized stacktrace, please wait ...
  20.019 Warning Logger.cpp:316: Symbols.size() == 30, usedSize == 20
#0  0x7efd9107c440 in ?? at ??:0
#1  0x80dfcb in ID<TilePrototype, unsigned char>::ID(ID<TilePrototype, unsigned char> const&) at /tmp/factorio-ZIIOVU/src/ID/ID.hpp:24
#2  0x44659f in getID at /tmp/factorio-ZIIOVU/src/ID/Prototype.hpp:20
#3  0xaa1bbe in luaSetTiles at /tmp/factorio-ZIIOVU/src/Script/LuaSurface.cpp:865
#4  0xa9faad in LuaBinder<LuaSurface>::callWrapper(lua_State*) at /tmp/factorio-ZIIOVU/src/Script/LuaBinder.hpp:307
#5  0xaa1fce in luaD_precall(lua_State*, lua_TValue*, int) at crtstuff.c:?
#6  0xaa2b1d in luaV_execute(lua_State*) at crtstuff.c:?
#7  0xa8dc48 in luaD_call(lua_State*, lua_TValue*, int, int) at crtstuff.c:?
#8  0x998dcb in luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) at crtstuff.c:?
#9  0x99b4cc in lua_pcallk(lua_State*, int, int, int, int, int (*)(lua_State*)) at ??:?
#10 0x998823 in LuaContext::runLuaCommand(std::string const&, Player*) [clone .constprop.55105] at /tmp/factorio-ZIIOVU/src/Script/LuaGameScript.cpp:898
#11 0x7c2814 in runLuaCommand at /tmp/factorio-ZIIOVU/src/Script/LuaContext.cpp:174
#12 0x6e413c in CommandProcessor::executeCommand(Map&, Player*, std::string const&) at /tmp/factorio-ZIIOVU/src/CommandProcessor.cpp:104
#13 0x89adf3 in std::string::_M_rep() const at /usr/include/c++/5/bits/basic_string.h:2694
#14 0xa2efc9 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string() at /usr/include/c++/5/bits/basic_string.h:2940
#15 0x6e3348 in process at /tmp/factorio-ZIIOVU/src/CommandProcessor.cpp:38
#16 0x7e2c64 in writeToConsole at /tmp/factorio-ZIIOVU/src/GameActionHandler.cpp:1725
#17 0xd4144f in GameActionHandler::actionPerformed(InputAction const&) at /tmp/factorio-ZIIOVU/src/GameActionHandler.cpp:209 (discriminator 4)
#18 0x7efd92c65324 in InputHandler::flushActions(bool) at /tmp/factorio-ZIIOVU/src/Input/InputHandler.cpp:41
#19 0x7efd911311cd in flushActions at /tmp/factorio-ZIIOVU/src/Input/InputHandler.cpp:34
  20.019 Error Util.cpp:63: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.

Re: [0.12.20] [kovarex] surface.set_tiles crashes with invalid name

Posted: Tue Dec 08, 2015 3:42 pm
by kovarex
Thanks for the report, it is fixed for either 0.12.21 or 0.13.