# Warning: Stalled gamethread waiting for particles

**URL:** <https://forums.unrealengine.com/t/warning-stalled-gamethread-waiting-for-particles/385771>\
**Category:** FX\
**Tags:** disable-rendering, unreal-engine, question, CPP\
**Created:** [February 22, 2017, 7:24am UTC](https://forums.unrealengine.com/t/warning-stalled-gamethread-waiting-for-particles/385771 "2017-02-22T07:24:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![dldls](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dldls](https://forums.unrealengine.com/u/dldls)\
**Post date:** [February 22, 2017, 7:24am UTC](https://forums.unrealengine.com/t/warning-stalled-gamethread-waiting-for-particles/385771/1 "2017-02-22T07:24:08Z")

</div>

Hello we’re having this warning spammed alot in our packaged build. It happend when we’re turning particle systems on and off, which we do rather often by calling DeactivateSystem on ParticleSystemComponents from C++.

Mostly this stall is in tens of thousands fractures of ms, according to log, but it spams this a lot of times, making log close to unusable.

As I understand the source of this is WaitForAsyncAndFinalize which is just spinning in main thread waiting for AsyncWork to complete.

What are we doing wrong and what is the correct way of disabling emitter, if not by using Deactivate/DeactivateSystem in particle system component?

Thank you.

---

<div class="post-metadata">

**Author:** ![DigitalMage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DigitalMage](https://forums.unrealengine.com/u/DigitalMage)\
**Post date:** [February 23, 2017, 6:27am UTC](https://forums.unrealengine.com/t/warning-stalled-gamethread-waiting-for-particles/385771/2 "2017-02-23T06:27:39Z")

</div>

I also have this problem- tagging in case you get a response.

---

<div class="post-metadata">

**Author:** ![dldls](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dldls](https://forums.unrealengine.com/u/dldls)\
**Post date:** [February 23, 2017, 6:51am UTC](https://forums.unrealengine.com/t/warning-stalled-gamethread-waiting-for-particles/385771/3 "2017-02-23T06:51:12Z")

</div>

I did some more researching, and found out that guys from Unreal Tournament had same problem: [https://unrealtournament.atlassian.net/browse/UT-3932](https://unrealtournament.atlassian.net/browse/UT-3932).

That is how they fixed it: [https://github.com/EpicGames/UnrealTournament/commit/e6953e642c9b2da87ac510bd0c3b46e7901c822f](https://github.com/EpicGames/UnrealTournament/commit/e6953e642c9b2da87ac510bd0c3b46e7901c822f)

We probably will switch to same fix for now, but would be nice to get some official comments in case we’re missusing particle systems in some way and can fix warning without rebuilding the engine.

---

<div class="post-metadata">

**Author:** ![DigitalMage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DigitalMage](https://forums.unrealengine.com/u/DigitalMage)\
**Post date:** [February 23, 2017, 3:22pm UTC](https://forums.unrealengine.com/t/warning-stalled-gamethread-waiting-for-particles/385771/4 "2017-02-23T15:22:02Z")

</div>

I like how the fix is turning off the log spam 😃

---

<div class="post-metadata">

**Author:** ![Bruno\_G](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bruno\_G](https://forums.unrealengine.com/u/Bruno_G)\
**Post date:** [February 28, 2017, 4:24pm UTC](https://forums.unrealengine.com/t/warning-stalled-gamethread-waiting-for-particles/385771/5 "2017-02-28T16:24:17Z")

</div>

Any updates on this?

I,m having the same issue with a parameterized burning effect driven by a termprature parameter.

The effect itself is sober but eveytime it starts it spams these warnings.

That fix on Github Dldls posted says not found?

---

<div class="post-metadata">

**Author:** ![Bruno\_G](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bruno\_G](https://forums.unrealengine.com/u/Bruno_G)\
**Post date:** [February 28, 2017, 4:35pm UTC](https://forums.unrealengine.com/t/warning-stalled-gamethread-waiting-for-particles/385771/6 "2017-02-28T16:35:48Z")

</div>

How did they fix it?

I cant see that solution it says not found?

---

<div class="post-metadata">

**Author:** ![Bruno\_G](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bruno\_G](https://forums.unrealengine.com/u/Bruno_G)\
**Post date:** [February 28, 2017, 5:01pm UTC](https://forums.unrealengine.com/t/warning-stalled-gamethread-waiting-for-particles/385771/7 "2017-02-28T17:01:57Z")

</div>

How did they fix it?

I cant see that solution it says not found?

---

<div class="post-metadata">

**Author:** ![dldls](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dldls](https://forums.unrealengine.com/u/dldls)\
**Post date:** [March 8, 2017, 8:23am UTC](https://forums.unrealengine.com/t/warning-stalled-gamethread-waiting-for-particles/385771/8 "2017-03-08T08:23:34Z")

</div>

Not sure i can post code here, you need to be registered in epicgames github where unreal engine sources are.

They switched UE\_LOG macro from Warning to Verbose so it do not spam. Not sure that it’s official fix though. And you need to recompile engine after that.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe2d247](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe2d247](https://forums.unrealengine.com/u/anonymous_user_fbe2d247)\
**Post date:** [June 2, 2018, 11:15pm UTC](https://forums.unrealengine.com/t/warning-stalled-gamethread-waiting-for-particles/385771/9 "2018-06-02T23:15:14Z")

</div>

We also have this on iOS but it causes awful long stalls in millisecond range.
