OpenLoco / OpenLoco

An open source re-implementation of Chris Sawyer's Locomotion
https://openloco.io/
MIT License
1.29k stars 157 forks source link

Game crash when game save loaded. #2320

Open FenderBender2 opened 8 months ago

FenderBender2 commented 8 months ago

Version information:

Describe the bug Game crashes the instant the attached save file is loaded. I re-loaded an older autosave, and it crashes when I add the electric loco.

To Reproduce Steps to reproduce the behaviour:

  1. Load save file
  2. Instant crash

Expected behaviour

Screenshots n/a

Dump file b2203746-794e-46d2-8ea7-d4b358eeb2d3(OpenLoco, v24.02.1 (8e40251e on master)).dmp

Save file (rename to SV5 to load) Challenge #3

FenderBender2 commented 8 months ago

FYI it also crashes the vanilla version. I've checked several autosave files and they all crash on the 18th April.

FenderBender2 commented 8 months ago

I've played about with this using an autosave that doesn't crash, and found that it only seems to crash after I've converted 6 or so steam locos to electric locos (with new wagons).

AaronVanGeffen commented 8 months ago

Are you adding this locomotive through the object selection window, by any chance?

FenderBender2 commented 8 months ago

No:

https://github.com/OpenLoco/OpenLoco/assets/121941598/9d6c36d4-a2da-4ffd-824f-63ed921a0ffb