Page 1 of 1
[LTN 1.11.1] dispatcher.lua:323: attempt to concatenate field 'name'
Posted: Tue Oct 01, 2019 11:08 am
by Rue99
Good afternoon all. I've used LTN for a long time and it's been rock solid, which is why I was surprised to see this error today (it's happened a number of times).
Error while running event LogisticTrainNetwork::on_nth_tick(1)
__LogisticTrainNetwork__/script/dispatcher.lua:323: attempt to concatenate field 'name' (a nil value)
stack traceback:
__LogisticTrainNetwork__/script/dispatcher.lua:323: in function 'getFreeTrain'
__LogisticTrainNetwork__/script/dispatcher.lua:502: in function 'ProcessRequest'
__LogisticTrainNetwork__/script/dispatcher.lua:98: in function <__LogisticTrainNetwork__/script/dispatcher.lua:20
Now, I have some work to do on my end - I'm playing with a very large number of stations via Creative mode (trying a new Pyanodon layout). So, this error might be caused by something I've done, but I thought I'd share it. More information as I have it.
*edit* Reverting to version 1.10.15 fixes the issue afaict.
Re: Unrecoverable error in latest version
Posted: Tue Oct 01, 2019 7:50 pm
by Optera
Please always include version and FULL logfiles in bug reports so I don't have to ask the following and can just start working on the reported bug.
Are using LTN 1.11.1 and have debug logging enabled?
Re: Unrecoverable error in latest version
Posted: Tue Oct 01, 2019 8:44 pm
by Rue99
Yes, I was using 1.11.1, but only notifications enabled. I reverted to the last version I had kicking around (1.10.15) and it's fixed the initial problem.
At some point tomorrow, I'll reinstate 1.11.1 and turn debug logging on, to see if that gives more information, which I will then share.
Re: [LTN 1.11.1] dispatcher.lua:323: attempt to concatenate field 'name'
Posted: Wed Oct 02, 2019 6:44 am
by Optera
Updated the title to include useful information.
I can't figure out how you managed to get this error.
1) Line 323 can only be executed with debug logging enabled
https://github.com/Yousei9/Logistic-Tra ... r.lua#L323
2) Even with a cached force having a valid name reference containing a nil value should be impossible.
Update: Please attach the save file producing this error.
Re: [LTN 1.11.1] dispatcher.lua:323: attempt to concatenate field 'name'
Posted: Thu Oct 03, 2019 3:29 pm
by Rue99
An overnight run has failed to reproduce the bug. Suggest we put it down to an Act of God.
Re: [LTN 1.11.1] dispatcher.lua:323: attempt to concatenate field 'name'
Posted: Thu Oct 17, 2019 9:58 pm
by alex.dobjanschi
For what it's worth, I got the same error using factorio 0.17.69 & ltn 0.11.2 (4 times already today)
12519.066 Error MainLoop.cpp:1195: Exception at tick 32792384: 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_nth_tick(2)
__LogisticTrainNetwork__/script/dispatcher.lua:325: attempt to concatenate field 'name' (a nil value)
stack traceback:
__LogisticTrainNetwork__/script/dispatcher.lua:325: in function 'getFreeTrain'
__LogisticTrainNetwork__/script/dispatcher.lua:504: in function 'ProcessRequest'
__LogisticTrainNetwork__/script/dispatcher.lua:98: in function <__LogisticTrainNetwork__/script/dispatcher.lua:20
For the moment, I will disable debug.
Re: [LTN 1.11.1] dispatcher.lua:323: attempt to concatenate field 'name'
Posted: Fri Oct 18, 2019 4:33 am
by Optera
Again, I can't do anything about it without having a save where this happens reproducible to check how the array looks internally.
PS: Debug logging should only be enabled when I ask you to do so for bug reports. It takes a lot of performance to write that high verbosity.
Re: [LTN 1.11.1] dispatcher.lua:323: attempt to concatenate field 'name'
Posted: Sun Nov 10, 2019 9:00 am
by hellgate1
Hi i, just run same issue
here link for debug log and my save file
https://www.dropbox.com/sh/q2tc28p0luro ... Cy_Oa?dl=0
if you try my file, just wait and error will occur
using LTN [1.11.6] , thanks