ClaudeMetz / FactoryPlanner

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

Crash on_gui_click #217

Open Sil3ntStorm opened 9 months ago

Sil3ntStorm commented 9 months ago

Problem Description

Crashes when opening modules

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

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

Reproduction

No response

ClaudeMetz commented 9 months ago

Hello, you're on an older version of the mod, a more recent version fixes this one I think. So give updating a try and let me know if it still happens for you.

ajungg commented 9 months ago

Had that one happen too, in Version 1.1.78. Space Exploration Mod.

Last action i did was add a "Productivity Module 9" in a Machine, than the Server crashed with this Stacktrace:

`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>
51103.751 Error ServerMultiplayerManager.cpp:92: MultiplayerManager failed: "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__/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>"`