# FastGeo Job Queue Race Condition 

**URL:** <https://forums.unrealengine.com/t/fastgeo-job-queue-race-condition/2675037>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [October 10, 2025, 6:40pm UTC](https://forums.unrealengine.com/t/fastgeo-job-queue-race-condition/2675037 "2025-10-10T18:40:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 10, 2025, 6:40pm UTC](https://forums.unrealengine.com/t/fastgeo-job-queue-race-condition/2675037/1 "2025-10-10T18:40:56Z")

</div>

I suspect that when FFastGeoAsyncRenderStateJobQueue::Tick happens if there is queued work started by FFastGeoAsyncRenderStateJobQueue::Launch that FFastGeoAsyncRenderStateJobQueue::AreAsyncTasksExecuted could return true because UE::Tasks::HasWork loads the TaskCount atomic with std::memory\_order\_relaxed. When FFastGeoAsyncRenderStateJobQueue::AreAsyncTasksExecuted is then true but work is still in flight the check(PipeTasks.IsEmpty()); fails.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 10, 2025, 6:41pm UTC](https://forums.unrealengine.com/t/fastgeo-job-queue-race-condition/2675037/2 "2025-10-10T18:41:00Z")

</div>

**Steps to Reproduce**  
Load into a very content dense scene and then teleport to another part of the world that is also very content dense and sometimes a check trips.

---

<div class="post-metadata">

**Author:** ![RichMawlow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RichMawlow](https://forums.unrealengine.com/u/RichMawlow)\
**Post date:** [October 14, 2025, 4:15pm UTC](https://forums.unrealengine.com/t/fastgeo-job-queue-race-condition/2675037/3 "2025-10-14T16:15:20Z")

</div>

Hi Bryan, you are right, the checks are invalid.

I will go ahead and remove that whole chunk of code :

```auto
#if DO_CHECK
	if (AreAsyncTasksExecuted())
	{
		check(PipeTasks.IsEmpty());
		check(PipedJobs.IsEmpty());
		check(!IsReadyToRunAsyncTasksEvent.IsSet());
	}
#endif

```

---

<div class="post-metadata">

**Author:** ![RichMawlow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RichMawlow](https://forums.unrealengine.com/u/RichMawlow)\
**Post date:** [October 15, 2025, 7:39pm UTC](https://forums.unrealengine.com/t/fastgeo-job-queue-race-condition/2675037/4 "2025-10-15T19:39:30Z")

</div>

Submitted fix in our main branch (CL 46886071).

Thanks

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 13, 2025, 5:49pm UTC](https://forums.unrealengine.com/t/fastgeo-job-queue-race-condition/2675037/5 "2025-10-13T17:49:18Z")

</div>

I have also confirmed that added update to the FFastGeoAsyncRenderStateJobQueue class using bForceWaitCompletion to WaitForAsyncTasksExecution does not resolve the issue as the path taken to Tick seen has bForceWaitCompletion false.
