I got a crash when "tidying up" a rather large SSSP class structure (still working out my favourite way to use the mod :)). I think that it's lost track of some trains. Before I say why I think that's the cause, here's the "context" when the crash happened:
The mod SSPP Logistics Train Mod (0.3.21) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event SourceSinkPushPull::on_tick (ID 0)
SourceSinkPushPull/scripts/tick.lua:402: attempt to index field '?' (a nil value)
stack traceback:
SourceSinkPushPull/scripts/tick.lua:402: in function 'pop_best_dispatch_hauler_if_any'
SourceSinkPushPull/scripts/tick.lua:773: in function 'tick_dispatch'
SourceSinkPushPull/scripts/tick.lua:869: in function <SourceSinkPushPull/scripts/tick.lua:845>
The crash happened when I deleted the unused class at the top of this screenshot:
https://drive.google.com/file/d/1bIHJSn9kY2wveGDxF5Fl-gztNrn-X4Cg/view?usp=sharing
There are a lot of classes defined (~50!), but only three are "active".
================================
Now, I think that it has lost track of some trains because the "Network" window shows this sort of thing:
https://drive.google.com/file/d/1YSOhRjXXnQ-61ILlzGS7MdKLP_bBi3rY/view?usp=sharing
The coal trains are all out "somewhere" (0/3), but it doesn't know "where". The coal trains have, in fact, been reassigned to one of the three new classes and those trains are sitting in the depot under the new class.
When I click the trash button on the "coal" class showing 0/3, the class disappears and the crash happens about 1-2 seconds later.
Hope that helps :)