[0.12.0] Crash on repeated use of alias for game.player.print

Things that has been reported already before.
Post Reply
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

[0.12.0] Crash on repeated use of alias for game.player.print

Post by Adil »

Ubuntu 14.04
No mods.
The following commands were put in console:

Code: Select all

/c dis=game.player.print
/c dis('1')
/c dis('2') 
/c dis('3') 
The last command crashed the game.
Repeated usage of game.player.print doesn't result in crash.

The following was inside log file:

Code: Select all

Factorio crashed. Generating symbolized stacktrace, please wait ...
  49.566 Warning Logger.cpp:315: Symbols.size() == 29, usedSize == 21
#0  0x5e7499 in SignalHandler at /tmp/factorio-tDqLaj/src/Util/CrashHandler.cpp:139
#1  0x7feacf3cad40 in ?? at ??:0
#2  0x957a42 in luaPrint at /tmp/factorio-tDqLaj/src/Script/LuaPlayer.cpp:229
#3  0x444b4f in callWrapper at /tmp/factorio-tDqLaj/src/Script/LuaBinder.hpp:307
#4  0xa56dbe in luaD_precall(lua_State*, lua_TValue*, int) at crtstuff.c:?
#5  0xa54cad in luaV_execute(lua_State*) at crtstuff.c:?
#6  0xa571ce in luaD_call(lua_State*, lua_TValue*, int, int) at crtstuff.c:?
#7  0xa57d1d in luaD_pcall(lua_State*, void (*)(lua_State*, void*), void*, long, long) at crtstuff.c:?
#8  0xa42ee8 in lua_pcallk(lua_State*, int, int, int, int, int (*)(lua_State*)) at ??:?
#9  0x95c87b in runLuaCommand at /tmp/factorio-tDqLaj/src/Script/LuaGameScript.cpp:851
#10 0x95ebdc in runLuaCommand at /tmp/factorio-tDqLaj/src/Script/LuaContext.cpp:150
#11 0x95c2bb in executeCommand at /tmp/factorio-tDqLaj/src/CommandProcessor.cpp:104
#12 0x6af904 in std::string::_M_rep() const at /usr/include/c++/5/bits/basic_string.h:2694
#13 0x4b4138 in _ZNSsD4Ev at /usr/include/c++/5/bits/basic_string.h:2940
#14 0x9a0b56 in process at /tmp/factorio-tDqLaj/src/CommandProcessor.cpp:38
#15 0x9c00d7 in writeToConsole at /tmp/factorio-tDqLaj/src/GameActionHandler.cpp:1704
#16 0x7406d8 in actionPerformed at /tmp/factorio-tDqLaj/src/GameActionHandler.cpp:205 (discriminator 4)
#17 0x7a6d14 in flushToListeners at /tmp/factorio-tDqLaj/src/Input/InputHandler.cpp:36
#18 0xcf564f in flushActions at /tmp/factorio-tDqLaj/src/Input/InputHandler.cpp:30
#19 0x7fead0f37182 in updateCrcCheck at /tmp/factorio-tDqLaj/src/GameActionHandler.cpp:247
#20 0x7feacf48e47d in update at /tmp/factorio-tDqLaj/src/GameActionHandler.cpp:242
  50.237 Warning Logger.cpp:315: Symbols.size() == 28, usedSize == 20
  50.237 Error Util.cpp:45: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.

Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [0.12.0] Crash on repeated use of alias for game.player.print

Post by Oxyd »

Yes, this is a known bug. Don't do it.

Instead, you can do

Code: Select all

dis = function(m) game.player.print(m) end
The bug might get fixed eventually, but it's low priority.

Post Reply

Return to “Duplicates”