Closed jarquafelmu closed 5 years ago
I had posted it here (https://github.com/Yousei9/Logistic-Train-Network/issues/161) but was told that this bug was caused by LTN Tracker.
Thanks for the report. This bug is indeed caused by LTN Tracker. Do you happen to have a save game from around the time when that bug occurred? Because I can't figure out how this error could possibly happen.
Yeah i can get you a save game. I'm not sure how close it will be since I use 15 minute autosaves and this was a crash so depending on when it might be better or worse
It could be related to the GUI crashes that were addressed in patches .19 - .21. When I get home I will try to recreate the error and if I can I will get you that save game
I was about to say that the issue had been resolved in 0.17.21. But as I starting writing this the crash happened again. I think it was due to a schedule being created.
Error:
Error MainLoop.cpp:1142: Exception at tick 33860198: The mod LTN - Logistic Train Network caused a non-recoverable error.
Please report this error to the mod author.
Error while running event LogisticTrainNetwork::on_tick (ID 0)
The mod LTN Tracker caused a non-recoverable error.
Please report this error to the mod author.
Error while running event LTN_Tracker::Custom event (ID 268)
The mod LTN Tracker caused a non-recoverable error.
Please report this error to the mod author.
Error while running event LTN_Tracker::Custom event (ID 271)
__LTN_Tracker__/ui/classes/GuiComposition.lua:175: attempt to index local 'element' (a nil value)
stack traceback:
__LTN_Tracker__/ui/classes/GuiComposition.lua:175: in function 'get_el'
__LTN_Tracker__/ui/outer_frame.lua:109: in function 'set_alert'
__LTN_Tracker__/ltnt/gui_ctrl.lua:219: in function <__LTN_Tracker__/ltnt/gui_ctrl.lua:215>
[C]: in function 'raise_event'
__LTN_Tracker__/ltnt/data_processing.lua:505: in function <__LTN_Tracker__/ltnt/data_processing.lua:492>
stack traceback:
__LTN_Tracker__/ltnt/data_processing.lua:505: in function <__LTN_Tracker__/ltnt/data_processing.lua:492>
stack traceback:
[C]: in function 'raise_event'
__LTN_Tracker__/ltnt/data_processing.lua:505: in function <__LTN_Tracker__/ltnt/data_processing.lua:492>
stack traceback:
__LogisticTrainNetwork__/script/dispatcher.lua:87: in function <__LogisticTrainNetwork__/script/dispatcher.lua:34>
stack traceback:
[C]: in function 'raise_event'
__LogisticTrainNetwork__/script/dispatcher.lua:87: in function <__LogisticTrainNetwork__/script/dispatcher.lua:34
101.203 Error ServerMultiplayerManager.cpp:92: MultiplayerManager failed: "The mod LTN - Logistic Train Network caused a non-recoverable error.
Please report this error to the mod author.
Error while running event LogisticTrainNetwork::on_tick (ID 0)
The mod LTN Tracker caused a non-recoverable error.
Please report this error to the mod author.
Error while running event LTN_Tracker::Custom event (ID 268)
The mod LTN Tracker caused a non-recoverable error.
Please report this error to the mod author.
Error while running event LTN_Tracker::Custom event (ID 271)
__LTN_Tracker__/ui/classes/GuiComposition.lua:175: attempt to index local 'element' (a nil value)
stack traceback:
__LTN_Tracker__/ui/classes/GuiComposition.lua:175: in function 'get_el'
__LTN_Tracker__/ui/outer_frame.lua:109: in function 'set_alert'
__LTN_Tracker__/ltnt/gui_ctrl.lua:219: in function <__LTN_Tracker__/ltnt/gui_ctrl.lua:215>
[C]: in function 'raise_event'
__LTN_Tracker__/ltnt/data_processing.lua:505: in function <__LTN_Tracker__/ltnt/data_processing.lua:492>
stack traceback:
__LTN_Tracker__/ltnt/data_processing.lua:505: in function <__LTN_Tracker__/ltnt/data_processing.lua:492>
stack traceback:
[C]: in function 'raise_event'
__LTN_Tracker__/ltnt/data_processing.lua:505: in function <__LTN_Tracker__/ltnt/data_processing.lua:492>
stack traceback:
__LogisticTrainNetwork__/script/dispatcher.lua:87: in function <__LogisticTrainNetwork__/script/dispatcher.lua:34>
stack traceback:
[C]: in function 'raise_event'
__LogisticTrainNetwork__/script/dispatcher.lua:87: in function <__LogisticTrainNetwork__/script/dispatcher.lua:34>
Reproduce: Load in, go to the constant combinator to the SE at the logistics station and remove the min or max train signals.
I'm not sure fi it matters but I am loading the game as multiplayer.
Log: factorio-current.log
Save: https://drive.google.com/open?id=1fOQXjAevzt-KasOFoufR_AnQgJwHiII_
Version: Factorio: 0.17.21 LTN Tracker: 0.9.4 LTN: 1.10.4
Thanks! Will be fixed with 0.9.7. That was yet another case of UI mods messing with LTNT's UI.
I'm curious which UI mod was it that was interfering?
So am I, but the way things work its very hard to figure out. All I can say is that in your save parts of the LTNT UI had been deleted in a way I did not anticipate. That only happens to become a problem when trying to access them. By that time, there is no way for me to know which mod interfered.
I think there are a few mods around that (accidentally or because their authors don't know better) delete one of the root GUI elements to which LTNT is attached. Since every mod runs in its own lua instance, that might seem like a save thing to do. However, UI elements are shared across all mods and can therefore be accessed by any mod.
Error message or bug description
To Reproduce Removed a min or max train length restriction from an active LTN station.
LTN version 1.10.4
LTN Tracker version 0.9.6
Factorio version 0.17.18
Log file factorio-previous.log