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

LuaGuiElement API call when LuaGuiElement was invalid. #219

Open Quezler opened 6 months ago

Quezler commented 6 months ago

Problem Description

15946.846 Error MainLoop.cpp:1391: Exception at tick 15262462: 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::Custom event (ID 293) LuaGuiElement API call when LuaGuiElement was invalid. stack traceback: [C]: in function 'index' factoryplanner/ui/base/modal_dialog.lua:173: in function 'enter' factoryplanner/ui/event_handler.lua:209: in function <factoryplanner/ui/event_handler.lua:189> [C]: in function 'raise_event' factoryplanner/util/raise.lua:20: in function 'open_dialog' factoryplanner/ui/main/production_handler.lua:120: in function 'handler' factoryplanner/ui/event_handler.lua:157: in function <factoryplanner/ui/event_handler.lua:114> stack traceback: [C]: in function 'raise_event' factoryplanner/util/raise.lua:20: in function 'open_dialog' factoryplanner/ui/main/production_handler.lua:120: in function 'handler' factoryplanner/ui/event_handler.lua:157: in function <factoryplanner__/ui/event_handler.lua:114> 15946.846 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::Custom event (ID 293) LuaGuiElement API call when LuaGuiElement was invalid. stack traceback: [C]: in function 'index' factoryplanner/ui/base/modal_dialog.lua:173: in function 'enter' factoryplanner/ui/event_handler.lua:209: in function <factoryplanner/ui/event_handler.lua:189> [C]: in function 'raise_event' factoryplanner/util/raise.lua:20: in function 'open_dialog' factoryplanner/ui/main/production_handler.lua:120: in function 'handler' factoryplanner/ui/event_handler.lua:157: in function <factoryplanner/ui/event_handler.lua:114> stack traceback: [C]: in function 'raise_event' factoryplanner/util/raise.lua:20: in function 'open_dialog' factoryplanner/ui/main/production_handler.lua:120: in function 'handler' factoryplanner/ui/event_handler.lua:157: in function <factoryplanner__/ui/event_handler.lua:114>"

Reproduction

It happened during a k2 + space exploration when i was setting prod modules on an electrolysis plant. (wasn't able to reproduce it from memory right after)

ClaudeMetz commented 6 months ago

Hm that's a weird one, not sure I'll be able to figure it out without a reproduction. Will have a look though.