[Oxyd] [15.21] kill_all_units() corrupts save causing crash

Bugs that we were not able to reproduce, and/or are waiting for more detailed info.
Post Reply
faraway9912
Inserter
Inserter
Posts: 23
Joined: Sat Feb 25, 2017 8:43 am
Contact:

[Oxyd] [15.21] kill_all_units() corrupts save causing crash

Post by faraway9912 »

Game info:

Running on OSX 10.10.5, factorio version 0.15.21, mod list attached.

Steps to reproduce:
* Load attached save.
* Enter into the console "/c game.forces.enemy.kill_all_units()".
* Save game
* Reload, or restart and reload.
* Observe crash logs as attached.

It seems this is due to running Pathfinding() on a zero-length list of biters ... maybe?

I've run "for key, entity in pairs(game.player.surface.find_entities_filtered({area={{96, -768}, {384, 0}}, force= "enemy"})) do
entity.destroy()
end" in the console with no save corruption.
Attachments
mods_01_03_0118.zip
(7.97 MiB) Downloaded 84 times
mod-list.txt
(3.6 KiB) Downloaded 95 times
mod-list.json
(8.37 KiB) Downloaded 103 times
factorio-crash.log
(16.58 KiB) Downloaded 109 times

faraway9912
Inserter
Inserter
Posts: 23
Joined: Sat Feb 25, 2017 8:43 am
Contact:

Re: [15.21] kill_all_units() corrupts save causing crash

Post by faraway9912 »

If you guys are having trouble reproing I'll try to find a base game crash as well. I suspect just disabling all the mods in this save would do it.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [15.21] kill_all_units() corrupts save causing crash

Post by Klonan »

faraway9912 wrote:If you guys are having trouble reproing I'll try to find a base game crash as well. I suspect just disabling all the mods in this save would do it.
If you can narrow down exactly which mod is contributing the issue it would really help

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

Re: [Oxyd] [15.21] kill_all_units() corrupts save causing crash

Post by Oxyd »

At least post your mod folder, please. Since it doesn't crash in vanilla, there isn't much I can do for you without the necessary mods.

faraway9912
Inserter
Inserter
Posts: 23
Joined: Sat Feb 25, 2017 8:43 am
Contact:

Re: [Oxyd] [15.21] kill_all_units() corrupts save causing crash

Post by faraway9912 »

Hi,

Sorry for the delay.

I did some testing and managed to repro on base game. Saves attached. Same repro mechanism (type `game.forces.enemy.kill_all_units()` after loading up _precrash).

It's probably not hard to cook up a minimal crashing example either. How I would do it:
* start up a base that produces some pollution
* trigger a biter attack
* set peaceful mode to on, either using the console, or using creative mode button
* save
* kill_all_units()
* save <- this save probably crashes.
Attachments
mods_01_03_0118_base_postcrash.zip
(6.16 MiB) Downloaded 95 times
mods_01_03_0118_base_precrash.zip
(6.41 MiB) Downloaded 100 times

Rseding91
Factorio Staff
Factorio Staff
Posts: 13198
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Oxyd] [15.21] kill_all_units() corrupts save causing crash

Post by Rseding91 »

I've been trying to reproduce the problem on a fresh save file but so far haven't been able to.

Are you able to reproduce the problem on a new save file?
If you want to get ahold of me I'm almost always on Discord.

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

Re: [Oxyd] [15.21] kill_all_units() corrupts save causing crash

Post by Oxyd »

Same here, can't reproduce. Your precrash save is already in an invalid state, so what I would really like to know is how that happened. Just triggerring an attack, switching to peaceful and doing kill_all_units does not do it for me.

Post Reply

Return to “Pending”