0 votes

I'm trying to make a path finding algorithm in a hexagonal tile. Since the code is complex and requires long scripts, I don't attach it. When I execute, Godot editor closes and in the console appears:
ERROR: All memory pool allocations are in use.
At: ./core/poolvector.h:529
ERROR: set: Index p
index = -1 is out of bounds (size() = 0).
At: ./core/poolvector.h:493
ERROR: All memory pool allocations are in use.
At: ./core/pool
vector.h:529

Why is this happening?

Godot version 3.2.3
in Engine by (238 points)

Something is running out of memory, most likely if it happens every time. What does your process manager show?

What do you mean by "process manager"? The game editor closes, the game screen opens in black and in the console the error appears.

In Windows; "Task Manager" (Ctrl+Alt+Del), in KDE "System Activity" (Ctrl+Esc) etc...

Sorry, I corrected the code and now there is no error. Since I'm working with many Arrays, PoolVector2Array and a while loop, it seems that the arrays were growing always (or I suppose that). Moreover, I found better algorithm already implemented in Godot. Thanks for comment

No problem, be sure to write it up as an answer and accept it :)

1 Answer

–1 vote
Best answer

I corrected the code and now there is no error. Since I'm working with many Arrays, PoolVector2Array and a while loop, it seems that the arrays were growing always (or I suppose that). Moreover, I found better algorithm already implemented in Godot. Thanks for the comments

by (238 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.