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

This subforum contains all the issues which we already resolved.
User avatar
Gerkiz
Long Handed Inserter
Long Handed Inserter
Posts: 67
Joined: Fri Nov 30, 2018 3:36 pm
Contact:

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

Post 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
Attachments
market_crash.zip
(9.25 MiB) Downloaded 15 times
factorio-previous.log
(8.56 KiB) Downloaded 17 times
User avatar
Gerkiz
Long Handed Inserter
Long Handed Inserter
Posts: 67
Joined: Fri Nov 30, 2018 3:36 pm
Contact:

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

Post 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
Rseding91
Factorio Staff
Factorio Staff
Posts: 14244
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

Thanks for the report. This is now fixed for 2.0.11.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”