eduran84 / LTN_Tracker

Other
7 stars 6 forks source link

[Crash] Unrecoverable error in factorio 0.17.18 #19

Closed jarquafelmu closed 5 years ago

jarquafelmu commented 5 years ago

Error message or bug description

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)
real number expected got nil.
stack traceback:
    __LTN_Tracker__/ui/classes/GuiComposition.lua:158: in function 'get'
    __LTN_Tracker__/ui/classes/GuiComposition.lua:172: 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:
    [C]: in function 'raise_event'
    __LTN_Tracker__/ui/classes/GuiComposition.lua:158: in function 'get'
    __LTN_Tracker__/ui/classes/GuiComposition.lua:172: 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
5829.989 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)
real number expected got nil.
stack traceback:
    __LTN_Tracker__/ui/classes/GuiComposition.lua:158: in function 'get'
    __LTN_Tracker__/ui/classes/GuiComposition.lua:172: 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:
    [C]: in function 'raise_event'
    __LTN_Tracker__/ui/classes/GuiComposition.lua:158: in function 'get'
    __LTN_Tracker__/ui/classes/GuiComposition.lua:172: 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>

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

jarquafelmu commented 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.

eduran84 commented 5 years ago

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.

jarquafelmu commented 5 years ago

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

jarquafelmu commented 5 years ago

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

jarquafelmu commented 5 years ago

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

eduran84 commented 5 years ago

Thanks! Will be fixed with 0.9.7. That was yet another case of UI mods messing with LTNT's UI.

jarquafelmu commented 5 years ago

I'm curious which UI mod was it that was interfering?

eduran84 commented 5 years ago

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.