FactoryPlanner icon indicating copy to clipboard operation
FactoryPlanner copied to clipboard

Crash on multiplayer server when deleting factories quickly

Open blargh2015 opened this issue 9 months ago • 0 comments

Problem Description

I was cleaning up a long list of factories in my factory planner by rapidly clicking the delete button for them. After I had ran out of factories, the server crashed with:

Error while running event factoryplanner::on_gui_click (ID 1) factoryplanner/ui/main/factory_list.lua:279: attempt to index local 'factory' (a nil value) stack traceback: factoryplanner/ui/main/factory_list.lua:279: in function 'handler' factoryplanner/ui/event_handler.lua:157: in function <factoryplanner/ui/event_handler.lua:114>"

Reproduction

  1. Be in a multiplayer game (at least for when I did it)
  2. Have a lot of factories defined (in my case I had about 20 or so).
  3. Click the delete button a lot of times quickly.
  4. Server crashed (although clients didn't).

blargh2015 avatar May 04 '24 20:05 blargh2015