OpenTTD

Tasklist

FS#4845 - Crash when trying to remove lock with no ship using it but on tile

Attached to Project: OpenTTD
Opened by Transportman (Transportman) - Sunday, 20 November 2011, 14:03 GMT
Last edited by Remko Bijker (Rubidium) - Sunday, 20 November 2011, 15:40 GMT
Type Bug
Category Vehicles → YAPF
Status Closed
Assigned To No-one
Operating System Windows
Severity Medium
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

OpenTTD (r23266) crashes with the YAPF Pathfinder for ships using the following steps:

-Place a lock on a tile with a ship on it
-Try to demolish the lock (gives warning that there is a ship on it)

Game crashes. It is easiest to reproduce when you build while paused.

*** OpenTTD Crash Report ***

Crash at: Sun Nov 20 13:55:20 2011
In game date: 2050-04-17 (18)

Crash reason:
Exception: E1212012
Location: 000007FEFDFFCACD
Message: Assertion failed at line 125 of c:\bamboo-agent-home\xml-data\build-dir\ottd-nightly-w64bit\src\pathfinder\yapf\../follow_track.hpp: ((TrackStatusToTrackdirBits(GetTileTrackStatus(m_old_tile, TT(), IsRoadTT() && m_veh != NULL ? RoadVehicle::From(m_veh)->compatible_roadtypes : 0)) & TrackdirToTrackdirBits(m_old_td)) != 0) || (IsTram() && GetSingleTramBit(m_old_tile) != INVALID_DIAGDIR)

OpenTTD version:
Version: r23266 (0)
NewGRF ver: 12005ae2
Bits: 64
Endian: little
Dedicated: no
Build date: Nov 19 2011 19:08:56

Registers:
RAX: 0000000077FBB0C8 RBX: 0000000000000016 RCX: 00000000001A4020 RDX: 0000000000000000
RSI: 0000000000000000 RDI: 0000000000000008 RBP: 00000000001A4A60 RSP: 00000000001A4630
R8: 0000000000000000 R9: 0000000000000000 R10: 0000000000000000 R11: 0000000000000286
R12: 000000013FD71B78 R13: 000000013F66F710 R14: 0000000000000001 R15: 000000AC00000000
RIP: 000007FEFDFFCACD EFLAGS: 00000202

Bytes at instruction pointer:
48 81 C4 C8 00 00 00 C3 90 90 90 90 90 90 90 90 90 90 90 48 89 5C 24 18

Stack trace:
00000016 00000000 00000000 00000000 00000008 00000000 00000184 00000000
E1212012 00000000 00000000 00000000 FDFFCACD 000007FE 00000000 00000000
3FDFEC90 00000001 7765146B 00000000 00000308 00000000 000402B6 00000000
00000010 00000000 3FCF1978 00000001 00000050 00000000 000402B6 00000000
00000000 00000000 77863BFA 00000000 3FCF1978 00000001 00000010 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000001 00000000 3F769915 00000001 00000016 00000000 7C52DED0 00000000
00000001 00000000 77859C7A 00000000 00000000 00000000 00000000 000000AC
00000000 00000000 C8770B9D 000009C6 061A0048 00000000 05664A90 00000000
001A4A20 00000000 3F768CD4 00000001 00000001 00000000 3FDFEC90 00000001
000000FF 00000000 FFFFFFFF 00000000 001A4A20 00000000 3F483077 00000001
00001000 00000000 001A4A60 00000000 000000FF 00000000 00000000 00000000
65737341 6F697472 6166206E 64656C69 20746120 656E696C 35323120 20666F20
625C3A63 6F626D61 67612D6F 2D746E65 656D6F68 6C6D785C 7461642D 75625C61
2D646C69 5C726964 6474746F 67696E2D 796C7468 3436772D 5C746962 5C637273
68746170 646E6966 795C7265 5C667061 662F2E2E 6F6C6C6F 72745F77 2E6B6361
3A707068 54282820 6B636172 74617453 6F547375 63617254 7269646B 73746942
74654728 656C6954 63617254 6174536B 28737574 6C6F5F6D 69745F64 202C656C
29285454 7349202C 64616F52 29285454 20262620 65765F6D 3D212068 4C554E20
203F204C 64616F52 69686556 3A656C63 6F72463A 5F6D286D 29686576 6F633E2D
7461706D 656C6269 616F725F 70797464 3A207365 29293020 54202620 6B636172
54726964 6172546F 69646B63 74694272 5F6D2873 5F646C6F 29296474 203D2120
7C202930 4928207C 61725473 2029286D 47202626 69537465 656C676E 6D617254
28746942 6C6F5F6D 69745F64 2029656C 49203D21 4C41564E 445F4449 44474149

Operating system:
Name: Windows
Release: 6.1.7601 (Service Pack 1)
Compiler: MSVC 1600

Configuration:
Blitter: 8bpp-optimized
Graphics set: OpenGFX (746)
Language: C:\games\OpenTTD\lang\english_US.lng
Music driver: win32
Music set: NoMusic (0)
Network: no
Sound driver: win32
Sound set: NoSound (2)
Video driver: win32

AI Configuration (local: 0):
0: Human

Libraries:
FreeType: 2.4.5
ICU: 4.4.2
LZMA: 5.0.3
LZO: 2.05
PNG: 1.5.4
Zlib: 1.2.5

Module information:
C:\games\OpenTTD\openttd.exe handle: 000000013F440000 size: 9906688 crc: 1AF796DE date: 2011-11-19 19:11:56
C:\Windows\SYSTEM32\ntdll.dll handle: 0000000077830000 size: 1731936 crc: 7AB8D690 date: 2010-11-20 13:28:37
C:\Windows\system32\kernel32.dll handle: 00000000774C0000 size: 1162752 crc: 4F9F79FE date: 2011-07-16 05:37:12
C:\Windows\system32\KERNELBASE.dll handle: 000007FEFDFF0000 size: 421888 crc: D7A16149 date: 2011-07-16 05:37:12
C:\Windows\system32\WINMM.dll handle: 000007FEF8800000 size: 217600 crc: 7BC1529F date: 2009-07-14 01:41:56
C:\Windows\system32\msvcrt.dll handle: 000007FEFE200000 size: 634880 crc: 7F3E716F date: 2009-07-14 01:41:32
C:\Windows\system32\USER32.dll handle: 00000000775E0000 size: 1008128 crc: 70FF7D7F date: 2010-11-20 13:27:27
C:\Windows\system32\GDI32.dll handle: 000007FEFE0B0000 size: 403968 crc: 3D5BC405 date: 2010-11-20 13:26:25
C:\Windows\system32\LPK.dll handle: 000007FEFE2A0000 size: 41984 crc: 350AF03B date: 2009-07-14 01:41:19
C:\Windows\system32\USP10.dll handle: 000007FEFF660000 size: 800256 crc: B511F4B9 date: 2010-11-20 13:27:27
C:\Windows\system32\WS2_32.dll handle: 000007FEFF520000 size: 297984 crc: 0F68689B date: 2010-11-20 13:27:29
C:\Windows\system32\RPCRT4.dll handle: 000007FEFF240000 size: 1219584 crc: 5217F07C date: 2010-11-20 13:27:24
C:\Windows\system32\NSI.dll handle: 000007FEFF5D0000 size: 13824 crc: 53B46F6C date: 2009-07-14 01:41:53
C:\Windows\system32\ADVAPI32.dll handle: 000007FEFE120000 size: 877056 crc: FA615A20 date: 2009-07-14 01:40:01
C:\Windows\SYSTEM32\sechost.dll handle: 000007FEFE090000 size: 113664 crc: 978CFAE5 date: 2009-07-14 01:41:53
C:\Windows\system32\SHELL32.dll handle: 000007FEFE4B0000 size: 14173184 crc: 976AAFA5 date: 2011-08-30 05:25:09
C:\Windows\system32\SHLWAPI.dll handle: 000007FEFFAC0000 size: 448512 crc: 086DF743 date: 2010-11-20 13:27:25
C:\Windows\system32\IMM32.DLL handle: 000007FEFE060000 size: 167424 crc: 41B2805A date: 2009-07-14 01:41:09
C:\Windows\system32\MSCTF.dll handle: 000007FEFF370000 size: 1067008 crc: 798DDDA0 date: 2009-07-14 01:41:28
c:\program files (x86)\f-secure\hips\fshook64.dll handle: 0000000072E00000 size: 452296 crc: 789AD8AF date: 2011-08-30 17:03:42
C:\Windows\system32\PSAPI.DLL handle: 0000000077A00000 size: 9216 crc: 84B5E9BA date: 2009-07-14 01:41:53
C:\Windows\system32\SHFolder.dll handle: 000007FEEF410000 size: 10240 crc: 08A48DE3 date: 2009-07-14 01:41:54
C:\Windows\system32\ole32.dll handle: 000007FEFF730000 size: 2086912 crc: 72F91CD0 date: 2010-11-20 13:27:23
C:\Windows\system32\uxtheme.dll handle: 000007FEFC4E0000 size: 332288 crc: B0A13DF9 date: 2009-07-14 01:41:56
C:\Windows\system32\CRYPTBASE.dll handle: 000007FEFDBC0000 size: 44032 crc: F547C16E date: 2009-07-14 01:40:24
C:\Program Files (x86)\F-Secure\FSPS\program\fslsp_x64.dll handle: 00000000750A0000 size: 224968 crc: 644EF2F0 date: 2011-08-30 17:03:54
c:\program files (x86)\f-secure\scanner-interface\fsgkiapi_x64.dll handle: 0000000180000000 size: 368328 crc: D0CAE258 date: 2011-08-30 17:03:34
C:\Windows\system32\mswsock.dll handle: 000007FEFD500000 size: 326144 crc: 136B1525 date: 2010-11-20 13:27:10
C:\Windows\System32\wshtcpip.dll handle: 000007FEFCE60000 size: 13312 crc: 5D1E2C55 date: 2009-07-14 01:41:58
C:\Windows\system32\MMDevAPI.DLL handle: 000007FEFC030000 size: 284160 crc: CDF2EF81 date: 2009-07-14 01:41:26
C:\Windows\system32\PROPSYS.dll handle: 000007FEFC540000 size: 1212416 crc: B83FA3BE date: 2010-11-20 13:27:23
C:\Windows\system32\OLEAUT32.dll handle: 000007FEFF940000 size: 861696 crc: 1F331414 date: 2011-08-27 05:37:49
C:\Windows\system32\wdmaud.drv handle: 000007FEF6570000 size: 217088 crc: 12829973 date: 2010-11-20 13:24:21
C:\Windows\system32\ksuser.dll handle: 0000000070B00000 size: 5120 crc: AA2071D9 date: 2009-07-14 01:41:13
C:\Windows\system32\AVRT.dll handle: 000007FEFC020000 size: 18432 crc: 5CE53CB7 date: 2009-07-14 01:40:05
C:\Windows\system32\SETUPAPI.dll handle: 000007FEFE2B0000 size: 1900544 crc: A364BD6A date: 2010-11-20 13:27:25
C:\Windows\system32\CFGMGR32.dll handle: 000007FEFDFB0000 size: 207872 crc: 1984C339 date: 2010-11-20 13:25:50
C:\Windows\system32\DEVOBJ.dll handle: 000007FEFDF90000 size: 93184 crc: A7541AE2 date: 2009-07-14 01:40:28
C:\Windows\system32\AUDIOSES.DLL handle: 000007FEF8740000 size: 296448 crc: 90389554 date: 2010-11-20 13:25:42
C:\Windows\system32\msacm32.drv handle: 000007FEF6560000 size: 25600 crc: 2B579A05 date: 2009-07-14 01:38:50
C:\Windows\system32\MSACM32.dll handle: 000007FEF6540000 size: 83456 crc: 3D67538B date: 2009-07-14 01:41:27
C:\Windows\system32\midimap.dll handle: 000007FEF6530000 size: 20480 crc: CB902A13 date: 2009-07-14 01:41:23
C:\Windows\system32\CLBCatQ.DLL handle: 000007FEFFA20000 size: 607744 crc: 939E35C9 date: 2009-07-14 01:40:15
C:\Windows\system32\dwmapi.dll handle: 000007FEFBC30000 size: 82432 crc: A459F360 date: 2009-07-14 01:40:34
C:\Program Files\Dell\QuickSet\dadkeyb.dll handle: 0000000001CA0000 size: 89168 crc: 02E89D89 date: 2009-07-02 14:14:40

---- gamelog start ----
Tick 0: new game started
Revision text changed to r23266, savegame version 163, not modified, _openttd_newgrf_version = 0x12005ae2
New game mode: 1 landscape: 0
---- gamelog end ----

*** End of OpenTTD Crash Report ***

Decoded stack trace:
[00] KERNELBASE 0x000007FEFDFFCACD RaiseException + 61
[01] openttd 0x000000013F769915
[02] openttd 0x000000013F768CD4
[03] openttd 0x000000013F483077
[04] openttd 0x000000013F66B111
[05] openttd 0x000000013F66ABE7
[06] openttd 0x000000013F669745
[07] openttd 0x000000013F6688E8
[08] openttd 0x000000013F562E42
[09] openttd 0x000000013F563298
[10] openttd 0x000000013F5634D8
[11] openttd 0x000000013F4A4AAE
[12] openttd 0x000000013F486A25
[13] openttd 0x000000013F486D7F
[14] openttd 0x000000013F66DFE1
[15] openttd 0x000000013F485161
[16] openttd 0x000000013F6704F6
[17] openttd 0x000000013F76B694
[18] kernel32 0x00000000774D652D BaseThreadInitThunk + 13
[19] ntdll 0x000000007785C521 RtlUserThreadStart + 33

*** End of additional info ***
This task depends upon

Closed by  Remko Bijker (Rubidium)
Sunday, 20 November 2011, 15:40 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r23284

Loading...