Search Issue Tracker

Fixed in 2018.1

Fixed in 2017.1, 2017.2, 2017.3

Votes

6

Found in

2017.1.2f1

Issue ID

957427

Regression

Yes

Unity crashes when emitting particles from script and using a Size module, if system has not been updated yet

Shuriken

-

How to reproduce:
1. Open user attached project "Ralliz"
2. Open "track1a" scene
3. Add "Ground Material Manager" prefab from EVP5 folder
4. Enter play mode
5. Do some donuts with car to make it slide and enable particles with written "TireParticleEmitter" script
--Unity crashes

Expected result: Particles should start when car is sliding
Actual result: Crash

Regression first introduced in: 2017.1.1p3
Reproducible with: 2017.1.1p3 2017.1.2f1, 2017.2.0f2, 2017.3.0b3
Not reproducible with: 5.6.3p4, 2017.1.0b7, 2017.1.0p4, 2017.1.1p1, 2017.1.1p2

Comments (6)

  1. 042e04881754ef5cf82cd7f4e7b0c002?d=mm

    zangad

    Nov 21, 2017 02:54

    This is listed as fixed, but I just confirmed it still happens in 2017.2.0f3. Grofie's and Zarlang's fix worked for me as a hack.

  2. 053d5834b9b470e58f60efcfd8cf9264?d=mm

    grofie

    Nov 13, 2017 08:48

    The patch release (2017.2.0p1) does not work for me.

    But Zarlang's 'fix' helps. (Thx allot!)

    I end up using this in my world particle manager, so I only have to call it once:

    void Start ()
    {
    Debug.LogWarning("Preventing UNITY CRASH 957427: https://issuetracker.unity3d.com/issues/unity-crashes-when-particles-are-awaken-by-script");
    foreach (ParticleSystem l_ParticleSystem in m_ParticleSystems)
    {
    l_ParticleSystem.Emit(1);
    l_ParticleSystem.Clear();
    }
    }

  3. Da23f1cb634a68e2a70c8b5dc03d8016?d=mm

    Gustav

    Nov 11, 2017 22:23

    Still happens in 2017.2.0f3

  4. 26cc86af465c703fd8ac7fee57572d36?d=mm

    RichGarcia

    Nov 10, 2017 20:52

    Still happens in 2017.2.0p1

  5. A4a10b99fee8510a00dbc7b8543af205?d=mm

    Zarlang

    Nov 09, 2017 22:14

    If you manage to fix this crash using this:
    - Call Emit(1)
    - Call Clear

    you still end up with a performance spike due to the Size Over Lifetime module

  6. 04acf4ab7adba6df33a9bebb9e101413?d=mm

    demonpants

    Nov 07, 2017 17:25

    I found this issue as well. Will try the patch release.

All about bugs

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