Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WmDOT with 1024x1024+ map crashes OpenTTD #6624

Closed
DorpsGek opened this issue Sep 21, 2017 · 3 comments
Closed

WmDOT with 1024x1024+ map crashes OpenTTD #6624

DorpsGek opened this issue Sep 21, 2017 · 3 comments
Labels
component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

james1101 opened the ticket and wrote:

To Reproduce:

  1. Select WmDot as an AI for the game. (settings to change to which values: Debug Level = 8; Max Atlas Size = 150; Build Attempts = 15)
  2. Start new game (large map size, 1M tiles or more or 1k by 1k or larger)
  3. Execute console command: "startai" until WmDot starts.
  4. Open AI/Game Script Debug window.
  5. Wait until it crashes.

Possible reason: WmDOT's code gets too much for OpenTTD to handle. (Crash report stack trace says )

Tested across various map settings, with map area >= 1M tiles

OpenTTD Version 1.7.1 running on Win 7 Ultimate

Attachments

Reported version: 1.7.1
Operating system: Windows


This issue was imported from FlySpray: https://bugs.openttd.org/task/6624
@DorpsGek
Copy link
Member Author

frosch wrote:

Information from crash.dmp:
0012f780 0064e08a 261398b0 0012f7a4 006cea6d openttd!free+0x1c [f:\dd\vctools\crt_bld\self_x86\crt\src\free.c @ 51]
0012f78c 006cea6d 261398b0 00000000 0012f860 openttd!uprv_free_51+0x2a
0012f7a4 006cedd6 261388a8 00000000 00000800 openttd!icu_51::LayoutEngine::computeGlyphs+0x9d
0012f7d4 006a8e0c 261388a8 00000000 00000800 openttd!icu_51::LayoutEngine::layoutChars+0x76
0012f83c 00423f9a 00000000 288cab38 0012f878 openttd!icu_51::ParagraphLayout::ParagraphLayout+0x33c
0012f8a 004248ae 261388a8 00000800 000002c0 openttd!GetParagraphLayout+0xae [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\gfx_layout.cpp @ 207]
0012f918 004209e8 0012f940 2d9514a8 7fffffff openttd!Layouter::Layouter+0x327 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\gfx_layout.cpp @ 661]
0012f960 00550a65 00000007 0000053f 0000028e openttd!DrawString+0xb8 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\gfx.cpp @ 512]
0012f9a8 00463d19 0012f9d8 00000005 266966a0 openttd!AIDebugWindow::DrawWidget+0x135 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\ai\ai_gui.cpp @ 1233]
0012f9e8 004629ea 266966a0 28805c30 004629ea openttd!NWidgetBackground::Draw+0x352 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\widget.cpp @ 1864]
0012f9f4 004629ea 266966a0 28808e08 004629ea openttd!NWidgetPIPContainer::Draw+0x11 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\widget.cpp @ 1114]
0012fa00 004629ea 266966a0 28808f10 004629ea openttd!NWidgetPIPContainer::Draw+0x11 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\widget.cpp @ 1114]
0012fa0c 004629ea 266966a0 266966a0 0046230c openttd!NWidgetPIPContainer::Draw+0x11 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\widget.cpp @ 1114]
0012fa18 0046230c 266966a0 266966a0 00000556 openttd!NWidgetPIPContainer::Draw+0x11 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\widget.cpp @ 1114]
0012fa3c 00550602 266966a0 0012fae0 00463e29 openttd!Window::DrawWidgets+0x13 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\widget.cpp @ 609]
0012fa60 00467498 266966a0 00000152 000002b7 openttd!AIDebugWindow::OnPaint+0x16 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\ai\ai_gui.cpp @ 1108]
0012fa78 00467408 00000000 00000152 000002b7 openttd!DrawOverlappedWindow+0xff [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\window.cpp @ 921]
0012fa9c 00467408 00000000 000001d4 00000152 openttd!DrawOverlappedWindow+0x6f [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\window.cpp @ 886]
0012fac0 0046751d 00000000 00000556 000001d4 openttd!DrawOverlappedWindow+0x6f [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\window.cpp @ 886]
0012fafc 0042177c 00000000 00000000 00000556 openttd!DrawOverlappedWindowForAll+0x7e [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\window.cpp @ 938]
0012fb20 004218ef 00000000 00000000 00000000 openttd!RedrawScreenRect+0x5f [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\gfx.cpp @ 1299]
0012fb58 00469a48 76e2c09a 00e24695 0012fb70 openttd!DrawDirtyBlocks+0x156 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\gfx.cpp @ 1389]
0012fb70 005dc02f 00000000 00000000 0012fddc openttd!UpdateWindows+0x117 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\window.cpp @ 3057]
0012fbb8 0043faf7 00000001 00000001 02ad64a8 openttd!VideoDriver_Win32::MainLoop+0x323 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\video\win32_v.cpp @ 1283]
0012fddc 005de357 00000001 0012fdf8 00000000 openttd!openttd_main+0xa98 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\openttd.cpp @ 865]
0012fef8 006b06ac 00400000 00000000 01d4264f openttd!WinMain+0x99 [c:\bamboo-agent-home\xml-data\build-dir\ottd-rls-w32bit\src\os\windows\win32.cpp @ 467]
0012ff88 77c61154 7ffdf000 0012ffd4 77b1b299 openttd!__tmainCRTStartup+0x11a [f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c @ 275]


This comment was imported from FlySpray: https://bugs.openttd.org/task/6624#comment14772

@DorpsGek
Copy link
Member Author

frosch wrote:

It does not crash for me, but the AI uses a lot of memory.

Since the reporter uses a 32bit build and uses 32bpp blitter, this is likely just out-of-memory. I.e. #6322.


This comment was imported from FlySpray: https://bugs.openttd.org/task/6624#comment14773

@DorpsGek
Copy link
Member Author

frosch closed the ticket.

Reason for closing: Duplicate

of #6322


This comment was imported from FlySpray: https://bugs.openttd.org/task/6624

@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) duplicate component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant