nihilistzsche / LtnManager

A GUI for managing your Logistic Train Network. A mod for Factorio.
https://mods.factorio.com/mod/LtnManager
MIT License
49 stars 13 forks source link

Crash when opening manager with an unfinishied station? #187

Closed alv666 closed 1 year ago

alv666 commented 1 year ago

Describe the Bug

When opening the manager with an unfinished station (station scheduled to receive a train (yellow light), some tracks are still ghosts), game crashes.

Station name: 1231231

To Reproduce

Right after loading the save game, trying to open LTN Manager gives instant crash.

Save file & Username

kras SE 5.3 sandboxed HT 7.zip

Username: alv666

Log file

factorio-current.log

Crash info:

The mod LTN Manager (0.4.14) caused a non-recoverable error. Please report this error to the mod author.

Error while running event LtnManager::ltnm-toggle-gui (ID 239) LtnManager/scripts/util.lua:62: attempt to call field 'is_valid_sprite_path' (a nil value) stack traceback: LtnManager/scripts/util.lua:62: in function 'slot_table_update' LtnManager/scripts/gui/trains.lua:165: in function 'update' LtnManager/scripts/gui/index.lua:134: in function 'update' LtnManager/scripts/gui/index.lua:34: in function 'open' LtnManager/scripts/gui/index.lua:66: in function 'toggle' LtnManager/control.lua:180: in function <LtnManager/control.lua:172>

Thank you for the great mod btw.

Update: it's not related to the station. Loading an earlier save still give the same crash. Save file: kras SE 5.3 sandboxed HT 7 crash test.zip

Crash is eliminated when downgrading to earlier version.