ClaudeMetz / FactoryPlanner

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

On Factorio 2.0 server crashes randomly after using the planner #353

Open SamueleLorefice opened 4 hours ago

SamueleLorefice commented 4 hours ago

Problem Description

Can't sort out exactly what triggers the crash, but after using it, few minutes later the server will crash with

Please report this error to the mod author.

Error while running event factoryplanner::on_nth_tick(893801)
__factoryplanner__/util/context.lua:109: attempt to index local 'object' (a nil value)
stack traceback:
    __factoryplanner__/util/context.lua:109: in function 'remove'
    __factoryplanner__/ui/main/factory_list.lua:7: in function 'handler'
    __factoryplanner__/util/nth_tick.lua:10: in function <__factoryplanner__/util/nth_tick.lua:7>```

Reproduction

No response

ClaudeMetz commented 3 hours ago

Hm that's a tricky one without a reproduction. Maybe it's multiplayer latency related :/ I'll try a fix.