Search Issue Tracker
Fixed in 2018.1.X
Fixed in 2017.1.X, 2017.2.X, 2017.3.X
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
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 (7)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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.
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();
}
}
Gustav
Nov 11, 2017 22:23
Still happens in 2017.2.0f3
RichGarcia
Nov 10, 2017 20:52
Still happens in 2017.2.0p1
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
demonpants
Nov 07, 2017 17:25
I found this issue as well. Will try the patch release.