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 while removing modules #281

Open burninghey opened 3 months ago

burninghey commented 3 months ago

Problem Description

Crash;:

Die Mod Factory Planner (1.1.78) hat einen Fehler verursacht, der nicht behoben werden kann. Bitte informiere den Autor der Mod über diesen Fehler.

Error while running event factoryplanner::on_gui_click (ID 1) factoryplanner/ui/main/production_handler.lua:168: attempt to index field 'parent' (a nil value) stack traceback: factoryplanner/ui/main/production_handler.lua:168: in function 'handler' factoryplanner/ui/event_handler.lua:157: in function <factoryplanner/ui/event_handler.lua:114>

Reproduction

plan something with modules and beacons remove modules remove modules in beacons / remove beacons with right click

I planned to build some mod item (nuclear artillery). While trying to put modules on (vanilla) ingredients, and removing, it crashed reproducable

burninghey commented 3 months ago

Not sure when exactly the crash happens. I'm editing the speed modules in beacons. Removing them, adding them again, sometimes crash happens on rightclick the speed module (last row)

image

burninghey commented 3 months ago

maybe related to https://github.com/ClaudeMetz/FactoryPlanner/issues/271

Scarabytes commented 1 month ago

Not sure when exactly the crash happens.

A 100% reliable way to reproduce:

Zeroji commented 1 month ago

A 100% reliable way to reproduce

I've had the same bug (on beacon modules) and can confirm the repro steps. It doesn't have to be closed using ESC, pressing Cancel also triggers the issue.

Edit: seems like a duplicate of #263