ClaudeMetz / FactoryPlanner

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

Crash when clicking gear icon next to "Production" #401

Closed Silv3rDragon closed 1 week ago

Silv3rDragon commented 1 week ago

Problem Description

All i do is open the planner window and click the gear icon next to "Production". It happens on any factory large or small. Please ask what other information is needed if any, and i will post back with it.

The mod Factory Planner (2.0.6) caused a non-recoverable error. Please report this error to the mod author.

Error while running event factoryplanner::Custom event (ID 260) factoryplanner/ui/dialogs/utility_dialog.lua:92: attempt to index local 'main_inventory' (a nil value) stack traceback: factoryplanner/ui/dialogs/utility_dialog.lua:92: in function 'refresh_component_flow' factoryplanner/ui/dialogs/utility_dialog.lua:132: in function 'components' factoryplanner/ui/dialogs/utility_dialog.lua:432: in function 'dialog_open' factoryplanner/ui/base/modal_dialog.lua:171: in function 'enter' factoryplanner/ui/event_handler.lua:222: in function <factoryplanner/ui/event_handler.lua:202> stack traceback: [C]: in function 'raise_event' factoryplanner/util/raise.lua:19: in function 'open_dialog' factoryplanner/ui/main/production_box.lua:351: in function 'handler' factoryplanner/ui/event_handler.lua:169: in function <factoryplanner/ui/event_handler.lua:121>

Reproduction

No response

ClaudeMetz commented 1 week ago

Thanks for the report. I think you might have the editor open or similar? Will have a look.

Silv3rDragon commented 1 week ago

Yes i do most of the time, and testing just now with editor off does not cause the crash.

ClaudeMetz commented 1 week ago

Turns out it even happens when you just have the map open. Fixed for the next release, thanks again.