raiguard / TaskList

A simple and unobtrusive todo list for Factorio.
https://mods.factorio.com/mod/TaskList
MIT License
12 stars 9 forks source link

When deleting data for a player assigned as the responsible party in the Task List, a crash occurs. #45

Closed xeon0527 closed 11 months ago

xeon0527 commented 1 year ago

Description

Hello. I'm in the middle of using the Task List Mod, and I encountered a Server Crash. I'd like to submit a Bug Report.

The crash occurred during server operation, along with the following log:

... 307.090 Info AppManager.cpp:298: Saving to _autosave2929 (non-blocking). 307.128 Info AsyncScenarioSaver.cpp:165: Saving process PID: 530044 308.334 Error MainLoop.cpp:1395: Exception at tick 183344455: The mod Task List (0.4.7) caused a non-recoverable error. Please report this error to the mod author.

Error while running event TaskList::on_player_removed (ID 75) LuaPlayer API call when LuaPlayer was invalid. stack traceback: [C]: in function 'index' TaskList__/scripts/task.lua:98: in function 'update_guis' TaskList/scripts/task.lua:41: in function 'delete' TaskList/control.lua:175: in function <TaskList/control.lua:168> 308.334 Error ServerMultiplayerManager.cpp:92: MultiplayerManager failed: "The mod Task List (0.4.7) caused a non-recoverable error. Please report this error to the mod author.

Error while running event TaskList::on_player_removed (ID 75) LuaPlayer API call when LuaPlayer was invalid. stack traceback: [C]: in function 'index' TaskList__/scripts/task.lua:98: in function 'update_guis' TaskList/scripts/task.lua:41: in function 'delete' TaskList/control.lua:175: in function <TaskList/control.lua:168>" 308.334 Info ServerMultiplayerManager.cpp:813: updateTick(183344455) changing state from(InGame) to(Failed) 308.334 Quitting: multiplayer error. 308.334 Info GlobalContext.cpp:762: Waiting for child processes to exit: 530044

It seems like the issue occurs when you delete the data of a player who is assigned as the responsible party in one or more tasks. In this context, "Player Data deletion" refers to manually deleting player data from the Player Management window using the /admin command.

Reproduction

No response