FS#6032 - Crash: loading savegame [1.4.1-RC2]

Attached to Project: OpenTTD
Opened by Eskymak (Eskymak) - Sunday, 01 June 2014, 12:48 GMT
Last edited by andythenorth (andythenorth) - Thursday, 31 August 2017, 08:04 GMT
Type Bug
Category Core
Status Confirmed
Assigned To No-one
Operating System Windows
Severity Medium
Priority High
Reported Version other
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


I was trying to open my old savegame and got this strange error. In stable 1.4.0 I got "just" disconnecting train error, but in lates 1.4.1-RC2 error is different.

Crash at: Sun Jun 01 12:39:03 2014
In game date: 2318-03-01 (46)

Crash reason:
Exception: E1212012
Location: 000007FEFD90940D
Message: Assertion failed at line 225 of c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w64bit\src\ground_vehicle.hpp: this->z_pos == GetSlopePixelZ(this->x_pos, this->y_pos)

OpenTTD version:
Version: 1.4.1-RC2 (0)
NewGRF ver: 141067e8
Bits: 64
Endian: little
Dedicated: no
Build date: May 18 2014 18:52:56

This task depends upon

Comment by Remko Bijker (Rubidium) - Sunday, 27 July 2014, 14:56 GMT
In stable releases we disable the assertion checks, so it's probably the same issue for both.

When I open the savegame in 0.6.3, let it run for a bit, save it and then open it in 1.4 it seems to work just fine. As a result I'm wondering how/why this particular savegame is deemed to be broken by 1.4.
Comment by Peter Nelson (peter1138) - Monday, 13 March 2017, 21:13 GMT
A maglev on a bridge head at 300x485 is apparently in the wrong place vertically.
Comment by James (james1101) - Wednesday, 23 August 2017, 23:53 GMT
1. Pause the game immediately upon loading.
2. Go to Train 79 (problem train).
3. Stop the train before it reaches the tile boundary.
4. Make another train crash into the problem train (Train 79).
5. To save the train, clone it.
6. Once the wreck disappears, restore the modified tile(s) to original.