What does this error mean: All memory pool allocations are in use.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By abelgutierrez99

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/pool_vector.h:529
ERROR: set: Index p_index = -1 is out of bounds (size() = 0).
At: ./core/pool_vector.h:493
ERROR: All memory pool allocations are in use.
At: ./core/pool_vector.h:529

Why is this happening?

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

beaverusiv | 2021-04-03 23:26

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

abelgutierrez99 | 2021-04-04 08:57

In Windows; “Task Manager” (Ctrl+Alt+Del), in KDE “System Activity” (Ctrl+Esc) etc…

beaverusiv | 2021-04-04 18:37

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

abelgutierrez99 | 2021-04-05 07:10

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

beaverusiv | 2021-04-05 07:12

:bust_in_silhouette: Reply From: abelgutierrez99

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