Page 1 of 1

[0.16.51][mac] Crash: "LuaContext::clearTemporaryStateIncremental()"

Posted: Tue Oct 16, 2018 3:03 am
by xorlev
So far I haven't found a reliable way to reproduce other than to play for 5-20 minutes. With the same saves / mods on Windows, it seems to behave totally fine. It doesn't seem to matter what I do, it eventually segfaults.

Re: [0.16.51][mac] Crash: "LuaContext::clearTemporaryStateIncremental()"

Posted: Tue Oct 16, 2018 11:28 am
by Loewchen
Post the save please.

Re: [0.16.51][mac] Crash: "LuaContext::clearTemporaryStateIncremental()"

Posted: Wed Oct 17, 2018 1:54 am
by xorlev
Save attached, sorry about that. I was pretty sure I had.

Re: [0.16.51][mac] Crash: "LuaContext::clearTemporaryStateIncremental()"

Posted: Mon Jan 07, 2019 4:19 am
by Rseding91
Thanks for the report however until someone finds a way to reproduce this every time there's nothing I can do. I suspect there's some fault in the Mac compiler when it comes to building Lua since I've never seen or heard of this on Windows but I can't verify because nobody is able to reproduce it.

Re: [0.16.51][mac] Crash: "LuaContext::clearTemporaryStateIncremental()"

Posted: Mon Jan 07, 2019 4:50 am
by TruePikachu
Rseding91 wrote: Mon Jan 07, 2019 4:19 am Thanks for the report however until someone finds a way to reproduce this every time there's nothing I can do. I suspect there's some fault in the Mac compiler when it comes to building Lua since I've never seen or heard of this on Windows but I can't verify because nobody is able to reproduce it.
I can actually state that there might be a bug in the Lua compile/link steps for Windows as well. I was doing some disassembly of mod-code-related functions (mainly related to `LuaHelper::packageRequire`), and in some inlined Lua functions (IIRC they were related to getting function upvalues) there were references to the wrong register in an unexecuted code path that would have caused a segfault. Notably, I saw a correct reference in one instance of inlining the function and an incorrect reference probably one Factorio-source-code-line down.

Re: [0.16.51][mac] Crash: "LuaContext::clearTemporaryStateIncremental()"

Posted: Mon Jan 07, 2019 4:55 am
by Rseding91
Well, until someone knows of a way to reproduce this I can't verify anything. Lua is linked no differently than any of the other parts of Factorio.