[0.16.27] Crash when destroying trains

This subforum contains all the issues which we already resolved.
Post Reply
Filter Inserter
Filter Inserter
Posts: 313
Joined: Wed Dec 07, 2016 8:35 am

[0.16.27] Crash when destroying trains

Post by aaargha » Sat Mar 03, 2018 1:02 pm

If the player has the "all train GUI" open (the one that shows a list of all active trains) the game can crash if trains are deleted through scripts. I've attached a log of this crash and a save in which I can reproduce it.

To use the save simply load it, open the train list and run the following script:

Code: Select all

/c for _,t in ipairs(game.player.force.get_trains()) do for _,l in ipairs(t.locomotives.front_movers) do l.destroy() end end
Whether or not the crash occurs seems to be dependant on how many trains there are, In some tests with only a few trains it did not crash.
Delete train crash.zip
(1.61 MiB) Downloaded 42 times
(7.85 KiB) Downloaded 47 times

Factorio Staff
Factorio Staff
Posts: 9981
Joined: Wed Jun 11, 2014 5:23 am

Re: [0.16.27] Crash when destroying trains

Post by Rseding91 » Sat Mar 03, 2018 4:28 pm

Thanks for the report. It's now fixed for the next version of 0.16.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”

Who is online

Users browsing this forum: No registered users