[LTN 1.11.1] dispatcher.lua:323: attempt to concatenate field 'name'

Adds new train stops forming a highly configurable logistic network.

Moderator: Optera

Post Reply
Rue99
Long Handed Inserter
Long Handed Inserter
Posts: 84
Joined: Wed Mar 26, 2014 7:07 am
Contact:

[LTN 1.11.1] dispatcher.lua:323: attempt to concatenate field 'name'

Post 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.
Last edited by Optera on Wed Oct 02, 2019 6:28 am, edited 1 time in total.
Reason: Updated title to include meaningful information

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2916
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Unrecoverable error in latest version

Post 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?

Rue99
Long Handed Inserter
Long Handed Inserter
Posts: 84
Joined: Wed Mar 26, 2014 7:07 am
Contact:

Re: Unrecoverable error in latest version

Post 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.

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2916
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: [LTN 1.11.1] dispatcher.lua:323: attempt to concatenate field 'name'

Post 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.

Rue99
Long Handed Inserter
Long Handed Inserter
Posts: 84
Joined: Wed Mar 26, 2014 7:07 am
Contact:

Re: [LTN 1.11.1] dispatcher.lua:323: attempt to concatenate field 'name'

Post by Rue99 »

An overnight run has failed to reproduce the bug. Suggest we put it down to an Act of God.

alex.dobjanschi
Manual Inserter
Manual Inserter
Posts: 1
Joined: Thu Oct 17, 2019 9:55 pm
Contact:

Re: [LTN 1.11.1] dispatcher.lua:323: attempt to concatenate field 'name'

Post 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.

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2916
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: [LTN 1.11.1] dispatcher.lua:323: attempt to concatenate field 'name'

Post 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.

hellgate1
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun Nov 10, 2019 8:50 am
Contact:

Re: [LTN 1.11.1] dispatcher.lua:323: attempt to concatenate field 'name'

Post 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

Post Reply

Return to “Logistic Train Network”