# Running with wp.Runtime.UpdateStreaming.EnableAsyncUpdate=true can make the AsyncUpdateStreamingStateTask run during the GC phase as its .Wait() call happens on the next Tick - and crash in ULevelStreaming::GetLevelStreamingStatus() 

**URL:** <https://forums.unrealengine.com/t/running-with-wp-runtime-updatestreaming-enableasyncupdate-true-can-make-the-asyncupdatestreamingstatetask-run-during-the-gc-phase-as-its-wait-call-happens-on-the-next-tick-and-crash-in-ulevelstreaming-getlevelstreamingstatus/2693070>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [December 15, 2025, 4:14pm UTC](https://forums.unrealengine.com/t/running-with-wp-runtime-updatestreaming-enableasyncupdate-true-can-make-the-asyncupdatestreamingstatetask-run-during-the-gc-phase-as-its-wait-call-happens-on-the-next-tick-and-crash-in-ulevelstreaming-getlevelstreamingstatus/2693070 "2025-12-15T16:14:32Z")\
**Posts on this page:** 6\
**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:** [December 15, 2025, 4:14pm UTC](https://forums.unrealengine.com/t/running-with-wp-runtime-updatestreaming-enableasyncupdate-true-can-make-the-asyncupdatestreamingstatetask-run-during-the-gc-phase-as-its-wait-call-happens-on-the-next-tick-and-crash-in-ulevelstreaming-getlevelstreamingstatus/2693070/1 "2025-12-15T16:14:32Z")

</div>

This is very similar to [Content removed] - but we do believe it can also happen when not using incremental GC, just much less often. The culprit is that AsyncUpdateStreamingStateTask is started on a certain frame, but it waits on the next frame, where GC can also happen through-out. When ULevelStreaming::GetLevelStreamingStatus() gets called, the following call:

```
UPackage\* LevelPackage \= FindObjectFast\<UPackage\>(nullptr, GetWorldAssetPackageFName());

```

Will trigger with “Illegal call to StaticFindObjectFast() while garbage collecting!”.

We did notice this crash because we are using incremental GC on our project, and we intend to ship with it - but as I said, I don’t think incremental GC is the actual problem, but the fact that the task can bleed-out from the same frame.

[Attachment Removed]

---

<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:** [December 15, 2025, 4:14pm UTC](https://forums.unrealengine.com/t/running-with-wp-runtime-updatestreaming-enableasyncupdate-true-can-make-the-asyncupdatestreamingstatetask-run-during-the-gc-phase-as-its-wait-call-happens-on-the-next-tick-and-crash-in-ulevelstreaming-getlevelstreamingstatus/2693070/2 "2025-12-15T16:14:36Z")

</div>

**Steps to Reproduce**  
\* Run with wp.Runtime.UpdateStreaming.EnableAsyncUpdate=true

Run around that does streaming updates with GC happening

\* Using gc.AllowIncrementalReachability=1 and gc.AllowIncrementalGather=1 makes it happen much, much more as GC runs on many frames

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![Svegn2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/svegn2/32/924220_2.png) [@Svegn2](https://forums.unrealengine.com/u/Svegn2)\
**Post date:** [December 15, 2025, 8:11pm UTC](https://forums.unrealengine.com/t/running-with-wp-runtime-updatestreaming-enableasyncupdate-true-can-make-the-asyncupdatestreamingstatetask-run-during-the-gc-phase-as-its-wait-call-happens-on-the-next-tick-and-crash-in-ulevelstreaming-getlevelstreamingstatus/2693070/3 "2025-12-15T20:11:50Z")

</div>

Hello!

We strongly recommend that you stop using the incremental reachability analysis and the incremental Gather. Those are highly experimental features that are not proven to be thread safe. The only use case that we have validated is with a single thread server.

The comment on AsyncUpdateStreamingStateTask is still valid and I’ll have the engine team review that part of the code.

Regards,

Martin

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![Svegn2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/svegn2/32/924220_2.png) [@Svegn2](https://forums.unrealengine.com/u/Svegn2)\
**Post date:** [December 18, 2025, 1:38pm UTC](https://forums.unrealengine.com/t/running-with-wp-runtime-updatestreaming-enableasyncupdate-true-can-make-the-asyncupdatestreamingstatetask-run-during-the-gc-phase-as-its-wait-call-happens-on-the-next-tick-and-crash-in-ulevelstreaming-getlevelstreamingstatus/2693070/4 "2025-12-18T13:38:41Z")

</div>

Hello!

We added a guard to prevent the Async Streaming state update from running concurrently with the GC. CL#49409329

Regards,

Martin

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![Svegn2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/svegn2/32/924220_2.png) [@Svegn2](https://forums.unrealengine.com/u/Svegn2)\
**Post date:** [December 19, 2025, 2:35pm UTC](https://forums.unrealengine.com/t/running-with-wp-runtime-updatestreaming-enableasyncupdate-true-can-make-the-asyncupdatestreamingstatetask-run-during-the-gc-phase-as-its-wait-call-happens-on-the-next-tick-and-crash-in-ulevelstreaming-getlevelstreamingstatus/2693070/5 "2025-12-19T14:35:19Z")

</div>

I’m not sure what is happening with the mirroring. Here is the change. In WorldPartitionStreamingPolicy.cpp:

```auto
		{
			// Create async tasks
			TRACE_CPUPROFILER_EVENT_SCOPE(UWorldPartitionStreamingPolicy::CreateAndDispatchAsyncTasks);
			FUpdateStreamingStateParams InputParams = FUpdateStreamingStateParams(this, AsyncTaskCurrentState).SetRequiredWorldDataLayersEffectiveStatesCopy(true);
			AsyncUpdateStreamingStateTask = UE::Tasks::Launch(UE_SOURCE_LOCATION, [InputParams = MoveTemp(InputParams), this]()
			{
				QUICK_SCOPE_CYCLE_COUNTER(STAT_WorldPartitionStreamingPolicy_AsyncUpdateStreamingState);
				
-----> FGCScopeGuard GCGuard;
				UWorldPartitionStreamingPolicy::UpdateStreamingStateInternal(InputParams, AsyncTaskTargetState);
 
			}, UE::Tasks::ETaskPriority::Normal);
			AsyncUpdateTaskState = EAsyncUpdateTaskState::Started;
		}

```

[Attachment Removed]

---

<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:** [December 19, 2025, 1:40am UTC](https://forums.unrealengine.com/t/running-with-wp-runtime-updatestreaming-enableasyncupdate-true-can-make-the-asyncupdatestreamingstatetask-run-during-the-gc-phase-as-its-wait-call-happens-on-the-next-tick-and-crash-in-ulevelstreaming-getlevelstreamingstatus/2693070/6 "2025-12-19T01:40:47Z")

</div>

Alrighty ! Although the github syncs seem to not be working today, I don’t see it and all commits are at least 24 hours old.

[Attachment Removed]
