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

Game crashes if gamescript has more than 2048 strings #7553

Closed
ldpl opened this issue Apr 30, 2019 · 0 comments
Closed

Game crashes if gamescript has more than 2048 strings #7553

ldpl opened this issue Apr 30, 2019 · 0 comments

Comments

@ldpl
Copy link
Contributor

@ldpl ldpl commented Apr 30, 2019

Version of OpenTTD

1.9.1

Expected result

Not crash

Actual result

Crash encountered, generating crash log...
*** OpenTTD Crash Report ***

Crash at: Tue Apr 30 16:57:45 2019
In game date: 2050-01-01 (0)

Crash reason:
 Signal:  Segmentation fault (11)
 Message: <none>

OpenTTD version:
 Version:    1.9.1 (0)
 NewGRF ver: 19186d64
 Bits:       64
 Endian:     little
 Dedicated:  no
 Build date: Apr 30 2019 19:55:45

Stacktrace:
 [00] bin/openttd(_ZNK12CrashLogUnix13LogStacktraceEPcPKc+0x51) [0x557d53fe7e41]
 [01] bin/openttd(_ZNK8CrashLog12FillCrashLogEPcPKc+0x103) [0x557d53ecdbf3]
 [02] bin/openttd(_ZNK8CrashLog12MakeCrashLogEv+0x89) [0x557d53ecdea9]
 [03] bin/openttd(+0x36ed55) [0x557d53fe7d55]
 [04] /lib/x86_64-linux-gnu/libc.so.6(+0x41100) [0x7fe023345100]
 [05] bin/openttd(_ZN12StringReader12HandleStringEPc+0x251) [0x557d540b86e1]
 [06] bin/openttd(_ZN12StringReader9ParseFileEv+0x14e) [0x557d540b897e]
 [07] bin/openttd(_ZN11GameStrings7CompileEv+0x90) [0x557d53f17330]
 [08] bin/openttd(_Z16LoadTranslationsv+0x2e5) [0x557d53f17b35]
 [09] bin/openttd(_Z23RegisterGameTranslationP8Squirrel+0x14b) [0x557d53f17eab]
 [10] bin/openttd(_ZN12GameInstance11RegisterAPIEv+0x3d5) [0x557d53f0c895]
 [11] bin/openttd(_ZN14ScriptInstance10InitializeEPKcS1_5Owner+0x65) [0x557d540703c5]
 [12] bin/openttd(_ZN4Game8StartNewEv+0xdb) [0x557d53ef6d6b]
 [13] bin/openttd(+0x2a13f0) [0x557d53f1a3f0]
 [14] bin/openttd(_ZN20ThreadObject_pthread10ThreadProcEv+0xb) [0x557d540c8feb]
 [15] bin/openttd(_ZN20ThreadObject_pthread12stThreadProcEPv+0x2a) [0x557d540c908a]
 [16] /lib/x86_64-linux-gnu/libpthread.so.0(+0x8164) [0x7fe0250a7164]
 [17] /lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7fe02341edef]

Operating system:
 Name:     Linux
 Release:  4.18.0-17-generic
 Version:  #18-Ubuntu SMP Wed Mar 13 14:34:40 UTC 2019
 Machine:  x86_64
 Compiler: GCC 8.2.0 "8.2.0"

Configuration:
 Blitter:      32bpp-optimized
 Graphics set: OpenGFX (5580)
 Language:     /home/pavels/Downloads/openttd-1.9.1/bin/lang/english.lng
 Music driver: extmidi
 Music set:    NoMusic (0)
 Network:      no
 Sound driver: sdl
 Sound set:    NoSound (2)
 Video driver: sdl

Fonts:
 Small:  DejaVu Sans
 Medium: DejaVu Sans
 Large:  DejaVu Sans
 Mono:   sprite

AI Configuration (local: 255) (current: 18):
 GS: TestMaxStrings (v1)

Libraries:
 FontConfig: 2.13.0
 FreeType:   2.8.1
 ICU i18n:   60.2
 ICU lx:     60.2
 LZMA:       5.2.2
 LZO:        2.10
 PNG:        1.6.34
 SDL:        1.2.15
 Zlib:       1.2.11

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

Recent news messages:

*** End of OpenTTD Crash Report ***

Steps to reproduce

glx22 added a commit to glx22/OpenTTD that referenced this issue Apr 30, 2019
PeterN added a commit to PeterN/OpenTTD that referenced this issue May 1, 2019
glx22 added a commit to glx22/OpenTTD that referenced this issue May 1, 2019
@glx22 glx22 closed this in cef9a76 May 1, 2019
PeterN added a commit to PeterN/OpenTTD that referenced this issue May 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.