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

[Crash]: Assertion failed - An AI's info.nut fills up the maximum memory allocation almost exactly. #9601

Closed
James103 opened this issue Oct 3, 2021 · 1 comment

Comments

@James103
Copy link
Contributor

James103 commented Oct 3, 2021

Version of OpenTTD

20211002-master-ga2cf81e722 (Steam only) on Windows 10

Steps to reproduce

  1. Set the value of Maximum memory usage per script to 1,024 MiB.
  2. Close the game.
  3. Extract the contents of the attached AI script zip file into your OpenTTD working directory's ai directory.
  4. Start up the game.
  5. The game asserts here. The assertion is introduced in Fix #9588, 140a96b: [Squirrel] Reaching memory limit during script registration could prevent further script detections #9589.
    assert(this->allocator->allocated_size == 0);

If the game does not crash during reproduction, you may need to change the constant 3778 in the AI's info.nut so that it does crash.

Upload crash files

Crash files: crash.zip

Crashing AI: _TestAI.zip

@glx22
Copy link
Contributor

glx22 commented Oct 3, 2021

Fixed with #9592.

@glx22 glx22 closed this as completed Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants