knoxfighter / belt-balancer

MIT License
3 stars 12 forks source link

balancer.lua:140: attempt to index local 'stack_belt' (a nil value) #7

Open diamond-lizard opened 4 years ago

diamond-lizard commented 4 years ago

When I deleted a belt feeding a belt balancer, Factorio crashed with this error:

Error MainLoop.cpp:1202: Exception at tick 2374160: The mod Belt Balancer (2.1.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event belt-balancer::on_player_mined_entity (ID 65)
__belt-balancer__/objects/balancer.lua:140: attempt to index local 'stack_belt' (a nil value)
stack traceback:
    __belt-balancer__/objects/balancer.lua:140: in function 'recalculate_nth_tick'
    __belt-balancer__/objects/belt.lua:329: in function 'remove_belt'
    __belt-balancer__/control.lua:139: in function <__belt-balancer__/control.lua:124>

I'm using belt-balancer 2.1.3 on Factorio 0.18.21, on Gentoo Linux.

uejo commented 3 years ago

We are having the same issue now with game version 1.1.39

11320.630 Error MainLoop.cpp:1285: Exception at tick 10659252: The mod Belt Balancer (3.0.0) caused a non-recoverable error.

Error while running event belt-balancer::on_player_mined_entity (ID 66)
__belt-balancer__/objects/balancer.lua:140: attempt to index local 'stack_belt' (a nil value)
stack traceback:
        __belt-balancer__/objects/balancer.lua:140: in function 'recalculate_nth_tick'
        __belt-balancer__/objects/belt.lua:350: in function 'remove_belt'
        __belt-balancer__/control.lua:173: in function <__belt-balancer__/control.lua:154>"

11320.630 Info ServerMultiplayerManager.cpp:780: updateTick(10659252) changing state from(InGame) to(Failed)

Is there anything we might provide to assist in helping with the issue?