Page 1 of 1

[Rseding91] [2.0.8] Crash using LuaEntity::die()

Posted: Wed Oct 23, 2024 5:28 pm
by Gerkiz
Hello,

This one was a bit odd. The crash does not generate any logs, just freezes and exits the process.

1. Load the save
2. Select the market with your cursor
3. Run the following command while having your cursor on the market: /sc game.player.selected.die()
4. Program freezes and exits.

Kind regards,
Gerkiz

Re: [2.0.8] Crash using LuaEntity::die()

Posted: Wed Oct 23, 2024 5:46 pm
by Gerkiz
The freeze seems to come from

Code: Select all

game.merge_forces(force_name, 'neutral')
Removing this piece of code makes the game stable and does not freeze nor crash the game.

Checking the call stack, the heap becomes corrupt right after this function is run:

Code: Select all

Chart::clearTagsForSubChart

Re: [Rseding91] [2.0.8] Crash using LuaEntity::die()

Posted: Thu Oct 24, 2024 4:28 pm
by Rseding91
Thanks for the report. This is now fixed for 2.0.11.