Search Issue Tracker

Fixed in 2020.1.X

Fixed in 2019.3.X

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

Visual Effects - Legacy

-

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. 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 (14)

  1. karl_jones

    Mar 20, 2020 18:46

    Could you please file a bug report if you are still suffering from a crash.

  2. GainfulSage

    Mar 20, 2020 02:02

    Just got this crash on 2019.3.6f.

  3. luvjungle

    Mar 17, 2020 08:22

    Still happening in 2019.3.5
    Or this bug
    https://issuetracker.unity3d.com/issues/particle-system-that-has-a-stop-action-gets-cleared-after-being-paused-for-a-while

    Either way, 2019.3 build of my game is completely broken, need to rollback, i guess

  4. daniel-hall

    Mar 13, 2020 12:20

    I'm still getting this on 2019.3.5f1.

  5. Safemilk

    Mar 09, 2020 00:09

    Just confirmed this in 2019.3.4f1 using HDRP.

  6. luvjungle

    Mar 05, 2020 19:59

    2019.3.3 crashing without exiting editor.
    Crashing on adroid build too

  7. felixmann

    Mar 04, 2020 01:01

    Getting this issue on 2019.3.3f1 while playing a scene. Do not have to stop the scene to hit the crash.

  8. matheustaveiros

    Mar 04, 2020 00:09

    Same here, Unity 2019.3.3f1 still crashing on Editor and android build.

  9. wilczarz_84

    Feb 18, 2020 11:40

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

  10. 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.

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.