Search Issue Tracker

Fixed in 2020.1

Fixed in 2019.3

Votes

3

Found in

2019.3.0b8

2019.3.0f3

2020.1.0a9

Issue ID

1206498

Regression

Yes

Crash on ParticleSystem::EndUpdateAll() when exiting Play mode while a Particle System is simulating

Shuriken

-

How to reproduce:
1. Open the attached project '1206498.zip'
2. Open 'Main Menu (Console)' scene
3. Enter Play mode
4. Exit it
-- observe the crash

Reproducible with: 2019.3.0b8, 2019.3.0f5, 2020.1.0a9, 2020.1.0a18
Not reproducible with: 2018.4, 2019.2, 2019.3.0b7, 2020.1.0a8

First few lines of the stack trace:
#0 0x005566b764287e in ParticleSystem::EndUpdateAll()
#1 0x005566b764314d in ParticleSystem::InitializeClass()::PostLateUpdateParticleSystemEndUpdateAllRegistrator::Forward()
#2 0x005566ba0133fe in ExecutePlayerLoop(NativePlayerLoopSystem*)
#3 0x005566ba01346a in ExecutePlayerLoop(NativePlayerLoopSystem*)

Note:
- In the UIParticleRenderer.cs script the Start() method starts simulating a Particle System for 10 seconds, to reproduce the crash you have to exit Play mode in that period

  1. Response avatar

    karl_jones

    Jan 04, 2020

    The issue is caused when a system has a stop action and gets destroyed while it is culled.
    We have a fix which will be available soon.

Comments (6)

  1. 987c3af03f578c9dd8c2f55ca841a424?d=mm

    wilczarz_84

    Feb 18, 2020 11:40

    One more thing. This issue does not require to exit playmode. It just happens during the gameplay

  2. 987c3af03f578c9dd8c2f55ca841a424?d=mm

    wilczarz_84

    Feb 18, 2020 11:36

    Same here, the Unity is crashing all the time because of the particle system. Practically all versions above 2019.3.0f1 is affected. The newest one 2019.3.1f1 does NOT fix this!

    @ MRDIZZLE26 I also have my pooling system. I suspect the crash is happening when I call
    particle.Stop(true, ParticleSystemStopBehavior.StopEmittingAndClear);

    However I am not sure which particle causes this. My stop behaviour is probably Callback.

  3. 0cc95d76e69203a546ed43b68f3d6a96?d=mm

    wagenheimer

    Jan 24, 2020 02:07

    I can confirm this crash happens on Android Build using Unity 2019.3.0f5.

    Native StackTrace:

    Thread 0 (crashed)
    0 libunity.so 0x00000000d362140c ParticleSystem::EndUpdateAll() (ParticleSystem.cpp:2436)
    1 libunity.so 0x00000000d329b13d ExecutePlayerLoop(NativePlayerLoopSystem*)
    2 libunity.so 0x00000000d329b159 ExecutePlayerLoop(NativePlayerLoopSystem*)
    3 libunity.so 0x00000000d329b2e5 PlayerLoop()
    4 libunity.so 0x00000000d3371769 UnityPlayerLoop()
    5 libunity.so 0x00000000d337eba5 nativeRender(_JNIEnv*, _jobject*)
    6 base.odex 0x00000000d42e3b63 <system symbols missing>

    Will the upcoming also fix the problem for builds?

  4. 306e706729454819e2630d637c53f0b7?d=mm

    Noname1122

    Jan 21, 2020 19:15

    I just received this issue as well on updating to 2019.3.0f5. It is 100% reproduceable.

  5. 8821a729788964d12905bb93d49929b5?d=mm

    MrDizzle26

    Jan 16, 2020 21:57

    I'm still having this issue, Editor crashes in play mode

    PostLateUpdateParticleSystemEndUpdateAllRegistrator

    Seems to be related to the particles in my object pooling system.

  6. F578411e8e1346ee01b1642caa4abfb8?d=mm

    SaturnCO

    Jan 03, 2020 11:36

    I'm pretty sure I'm having this same bug without exiting play mode.
    It's crashing sometimes for me when a particle system is destroyed while playing, and it happens in out-of-editor builds which makes it a higher priority issue than the initial report suggests.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.