checkf(FreeIndex < FPageAllocator::NumWorkerCaches, TEXT("Exceeded max active GC worker contexts")); failing if GetAllReferencers runs while increment garbage collection is running

Hi Epic Friends!

As described, sometimes in PIE, I’m seeing this check fire (out of GC worker threads) if a load happens that ends up using the reference finder while incremental GC is running. One fix might be to force the second reference finder to run single threaded if there’s incremental GC pending. another fix might be to just finalize the incremental GC? I’m not sure what you recommend.

Thanks!

Josh

[Attachment Removed]

Steps to Reproduce
use incremental garbage collection, use the editor- specifically this time I was starting PIE

[Attachment Removed]

Hi,

Incremental garbage collection is not thread safe, it’s known to produce all kinds of errors. It’s only recommended for singled thread server and the support is still experimental. This is documented at the end of this page: https://dev.epicgames.com/documentation/unreal\-engine/incremental\-garbage\-collection\-in\-unreal\-engine -> Known Limitations.

Regards,

Patrick

[Attachment Removed]