Closed martinvonwittich closed 1 year ago
Up to a minute ago I believed that this might be some kind of a strange desync bug - as if the task list on his side had a different state from the task list on my side. I assumed that my game had a task list in a consistent state (where the entry was marked as completed and still fine), and that he had a corrupted task list (where the entry wasn't marked as completed). I thought the crash occurred when he attempted to mark the entry as completed because then this conflict might trigger the crash.
To verify my assumption, I located my last save game right before the crash, and attempted to mark the entry as uncompleted. Turns out, my task list is apparently not in a consistent state, because the attempt crashed my game immediately, even in singleplayer :)
I've uploaded this savegame too: https://clip.iserv.eu/t/OiMld8oXVLy0dqz24jGgSzp7TfrNB4fPmsN6l-Di7fA/tasklist%20bug%20reproducible.zip
The issue is reproducible with this save game like follows:
Unfortunately, I am unable to reproduce the crash. This is the second issue to come up with regard to the GUI becoming desynced from the task state, and unfortunately, without a reproduction to get it into that state, there isn't much I can do to fix it.
This mod is a dumpster fire code-wise and I have little motivation to rewrite it.
Edit: I managed to reproduce it!
I am no closer to figuring out how the issue occurs in the first place, but I have applied a band-aid that should prevent this crash in the future.
Description
I'm playing in multiplayer with a friend (I was hosting, and he had joined my game), and we had a strange TaskList issue today concerning the entry "[Mall] Big Electric Miner" in our task list:
Now in single player, I'm unfortunately unable to crash the game in this way, but the task is still peculiar, maybe this can help figuring out the issue?
The save game: https://clip.iserv.eu/t/ELI3Wj9NiWgakVPiiD4EDdizWjaqVuWn9h3fDi9R2lM/tasklist%20bug.zip (beware, the link is only valid for 30 days)
factorio-previous.log
Reproduction
I cannot reproduce the crash on my own, but in theory, it might be reproducible in a multiplayer game as follows:
Without multiplayer, at least the peculiar behavior of the task is reproducible: