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 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 #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 glx22 commented Oct 3, 2021

Fixed with #9592.

Loading

@glx22 glx22 closed this 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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants