ClaudeMetz / FactoryPlanner

A mod for Factorio. Allows you to plan out your production in detail.
https://mods.factorio.com/mod/factoryplanner
MIT License
81 stars 40 forks source link

Crash when interacting with module on specific recipe #285

Open mihaild opened 2 months ago

mihaild commented 2 months ago

Problem Description

Crash message: The mod Factory Planner (1.1.78) caused a non-recoverable error. Please report this error to the mod author.

Error while running event factoryplanner::on_gui_click (ID 1) factoryplanner/util/clipboar factorio-current.log d.lua:27: attempt to index local 'object' (a nil value) stack traceback: factoryplanner/util/clipboard.lua:27: in function 'copy' factoryplanner/ui/main/production_handler.lua:176: in function 'handler' factoryplanner/ui/event_handler.lua:157: in function <factoryplanner/ui/event_handler.lua:114> crash.log sandbox - se.18.space rail14.zip

Reproduction

  1. Load the save.
  2. Open the factory planner, factory with beryl ingots (second from the end)
  3. On iron plate production, right click on machine, or right click/shift-right click/ctrl-right click on module. Game crashes with error above.

Observation: if before doing this I try to edit anything - reorder recipes, change machine for other step or even for different factory, and after that try to edit recipe for iron plate - it doesn't crash.