OpenTTD

Tasklist

FS#5995 - Crash: with 'Exception: E1212012'

Attached to Project: OpenTTD
Opened by James Rowden (JamesRowden) - Sunday, 27 April 2014, 12:31 GMT
Last edited by andythenorth (andythenorth) - Tuesday, 22 August 2017, 06:51 GMT
Type Bug
Category Core
Status New
Assigned To No-one
Operating System Windows
Severity Medium
Priority High
Reported Version 1.4.0
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

The crash files are attached.
This task depends upon

Comment by frosch (frosch) - Sunday, 27 April 2014, 13:14 GMT
Information from crash.dmp:
012f36c 0043bc58 5f544f4e 43414552 20444548 openttd!abort+0x10 [f:\dd\vctools\crt_bld\self_x86\crt\src\abort.c @ 74]
0012f574 00405468 00e887a8 00000113 00eb7580 openttd!error+0x40 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\openttd.cpp @ 122]
0012f5a0 00407ab7 0d200b88 00000005 00000015 openttd!VehicleCargoList::Append+0xb7 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\cargopacket.cpp @ 267]
0012f5f0 004074c8 0d196e84 0000003b 0000fffd openttd!StationCargoList::ShiftCargo<CargoReservation>+0xa5 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\cargopacket.cpp @ 725]
0012f624 004063e9 0d196e7c fffffffd 00000001 openttd!StationCargoList::ShiftCargo<CargoReservation>+0xc8 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\cargopacket.cpp @ 754]
0012f674 00411787 0d196e7c 00000015 0012f630 openttd!StationCargoList::Reserve+0x7f [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\cargopacket.cpp @ 826]
0012f6bc 00412265 0d196ca8 0012f6dc 003bfffd openttd!ReserveConsist+0x104 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\economy.cpp @ 1330]
0012f7bc 00412c14 0012f6dc 00000000 0000003e openttd!LoadUnloadVehicle+0xf3 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\economy.cpp @ 1461]
0012f7d8 00456c40 00000000 001e9694 00000000 openttd!LoadUnloadStation+0x74 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\economy.cpp @ 1781]
0012f880 0043e3f8 001e9694 00000000 00f55782 openttd!CallVehicleTicks+0x59 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\vehicle.cpp @ 879]
0012f9bc 0043e5fd 7627a256 00000000 005bcfec openttd!StateGameLoop+0x12d [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\openttd.cpp @ 1389]
0012f9c8 005bcfec 00000001 00000000 0012fde0 openttd!GameLoop+0xea [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\openttd.cpp @ 1489]
0012fa10 0043d57d 0139da18 0012fdf8 7ffda000 openttd!VideoDriver_Win32::MainLoop+0x2f8 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\video\win32_v.cpp @ 1290]
0012fde0 005bf307 00000001 0012fdf8 00000000 openttd!openttd_main+0x10cf [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\openttd.cpp @ 871]
0012fef8 00691779 00400000 00000000 01551fff openttd!WinMain+0x7a [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\os\windows\win32.cpp @ 452]
Comment by fonsinchen (fonsinchen) - Sunday, 11 May 2014, 09:55 GMT
From the crash.sav it seems a vehicle has somehow managed to unload more cargo than it had so that the MTA_KEEP count underflowed. Like that the counts are still "consistent" with each other but you can't get to the MTA_LOAD count anymore by adding up the packet counts. This is then how it exits that loop without adding the packet.
Comment by fonsinchen (fonsinchen) - Sunday, 11 May 2014, 10:44 GMT
Another interesting fact: The vehicle in question station-refits "to available cargo" at every single stop. As that does a cargo.Truncate(), which in turn assumes all cargo is MTA_KEEP and just subtracts from that I currently suspect the bug is somewhere around there.

Loading...