[boskid][2.0.42] crash when writing deconstruction filters via script

This subforum contains all the issues which we already resolved.
User avatar
SunBlade
Burner Inserter
Burner Inserter
Posts: 11
Joined: Mon Jan 15, 2018 8:27 am
Contact:

[boskid][2.0.42] crash when writing deconstruction filters via script

Post by SunBlade »

issue:
scripts writing deconstruction planner filter slots may crash the game.

required conditions:
  • assigning a new table to the entity_filters property of a deconstruction planner. both planner types (items in an inventory and records in a shelf) are affected.
  • the new table contains an entry with a missing name property.
how to reproduce:
  1. load the supplied crash test save. no mods, just normal space age.
  2. entering either of these commands into the console will crash the game.
    • /c game.player.cursor_stack.entity_filters = table.deepcopy(game.player.cursor_stack.entity_filters)
    • /c game.blueprints[1].entity_filters = table.deepcopy(game.blueprints[1].entity_filters)
Attachments
crash_test.zip
test save
(482.8 KiB) Downloaded 9 times
factorio-current.log
log file
(10.56 KiB) Downloaded 13 times
Live your life, you got only one.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3754
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [boskid][2.0.42] crash when writing deconstruction filters via script

Post by boskid »

Thanks for the report. Issue is now fixed for 2.0.43.
Post Reply

Return to “Resolved Problems and Bugs”