Increase NUM_ELEMENTS_IN_POOL Error

In Android build after about 5 minutes of game playing I receive below error which doesn’t occur on 4.8…

09-11 00:48:29.056 22656 29742 D UE4     : Assertion failed: Result && "Increase NUM_ELEMENTS_IN_POOL" [File:F:\Epic Games\4.9\Engine\Source\Runtime\Core\Private\Stats\Stats2.cpp] [Line: 992] 
09-11 00:48:29.056 22656 29742 D UE4     : [2015.09.10-22.48.29:056][  0]Assertion failed: Assertion failed: Result && "Increase NUM_ELEMENTS_IN_POOL" [File:F:\Epic Games\4.9\Engine\Source\Runtime\Core\Private\Stats\Stats2.cpp] [Line: 992]

Hey ,

In order to better assist you, could you please provide me with your full error output ? Please provide them to us as an upload of a .txt document. Please also include the type of Android device you were on, including the Android version. Did you obtain the editor from the Epic Games Launcher or from GitHub?

Looking forward to hearing back from you, thanks!

I’ve attached . I tested this on Nexus 4 (Android 5.1) and Samsung Galaxy Grand Prime (Android 4.4). I’m using UE4 from GitHub.

[link text][1]

58248-num_elements_in_pool.txt (422 KB)

Hey ,

NUM_ELEMENTS_IN_POOL is 128 and set in Stats2.h. You should be able to increase it within that file. If you run into any complications by modifying this within Stats2.h, please let us know.

Thanks!

Why I need modifying anything? The same project in UE 4.8 worked good…

Modifying Stats2.h should correct the issue that you’re running into. 4.9 is an updated version of 4.8, it has additional features added in which sometimes require modifications to work around an issue you’ve ran in to.

Have a great day.

And I should change this file after every update? Why you can’t fix this?

You should only have to increase it through this file if you receive an error as you did previously. Have you attempted to solve your issue by increasing the NUM_ELEMENTS_IN_POOL in Stats2.h?

I’ve increased NUM_ELEMENTS_IN_POOL to 256 and error stil occurs but after 10 minutes not 5 as previously… So time without crash linearly depends on NUM_ELEMENTS_IN_POOL. If I change this to 512 crash happened after 20 minutes… It’s strange that this error occurs also after run garbage collector and unload all levels…

It means that threads aren’t correctly destroyed. This pool is used by threads, so if you set it to 256, it means that you have 256 active threads which seems bizarre. , could you log this into to investigate?

I think very important fact is that it worked good on 4.8. It’s broken since 4.9.

Hey,

I have entered a report (UE-21382) for investigation. If you have any questions or concerns regarding the movement on this bug, feel free to ask.

Thanks!

Any new info about fix this issue?

This issue is currently backlogged and hasn’t been resolved yet.

I have same issue. (engine version 4.10). this problem has been solved yet?

No, it hasn’t been resolved quite yet. Please keep coming back for updates.

Thanks!

I have same issue. 4.10.

UE-21382 was actually related to another bug within our system. NUM_ELEMENTS_IN_POOL turned out to be an Android audio issue. UE-28057 was fixed in 4.11 and should make it in the release of 4.11

Thanks!

I have same issue in 4.10.

I have same issue in 4.10.4

03-29 19:49:52.559: D/UE4(12361): Assertion failed: Result && “Increase NUM_ELEMENTS_IN_POOL” [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.10\Engine\Source\Runtime\Core\Private\Stats\Stats2.cpp] [Line: 992]
03-29 19:49:52.560: D/UE4(12361): [2016.03.29-22.49.52:560][192000]Assertion failed: Assertion failed: Result && “Increase NUM_ELEMENTS_IN_POOL” [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.10\Engine\Source\Runtime\Core\Private\Stats\Stats2.cpp] [Line: 992]