When I click on a coupler in the Train Operations Window I get a crash, see attached log.
OpenRailsLog.txt (30.5K)
Number of downloads: 26
Page 1 of 1
Crash with U2024.02.12-0808
#2
Posted 13 February 2024 - 10:14 AM
Probably my fault, the guilty line of code is related to DP brake synchronization. I'm guessing there's a split second when uncoupling that the lead locomotive hasn't been decided yet and that line of code really wants there to be a lead locomotive.
#3
Posted 13 February 2024 - 11:44 AM
Yes, the small analysis I just did is that this seems to occur in a train with DPU units, when you cut the train so that the DPU units are no more part of the train. The variable "lead" evaluates to null, generating the crash.
#4
Posted 15 February 2024 - 05:29 PM
Reproduced and committed a fix. Won't assume that a lead locomotive has been set this time.
Page 1 of 1