Search Issue Tracker
Fixed in 5.4.0
Votes
1
Found in
5.4.0b6
Issue ID
770224
Regression
Yes
[Shuriken] "StackOverflowException" appears and Editor freezes while using "Particle Callbacks demo" project
Regression from at least Version 5.3.2p3 (b6c1a63227dc)
Steps:
1. Open project https://www.assetstore.unity3d.com/en/#!/content/11903
==>
Delete the script that causes a compilation error
2. Run "particleCallbacks" scene
3. Click several times on the barrel with the fire
==>
Editor freezes and "StackOverflowException" appears
Please, find attached movie for details
Comments (2)
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
hunterloftis
Mar 21, 2016 06:36
An onParticleCollision callback by itself doesn't cause the issue. This code caused no issues:
void OnParticleCollision(GameObject other) {
List<ParticleCollisionEvent> collisions = new List<ParticleCollisionEvent>();
ps.GetCollisionEvents(other, collisions);
foreach (ParticleCollisionEvent c in collisions) {
PlayHitSound(c.intersection);
DamageDestroyables(other.GetComponentInParent<Destroyable>(), c.intersection);
}
}
Further down the chain, DamageDestroyables() led to this:
damageParticles.transform.position = location;
//damageParticles.Play();
The commented out line is what caused the stack overflow. Changing that to:
if (!damageParticles.isPlaying) damageParticles.Play();
...Did not help anything. Still a stack overflow.
hunterloftis
Mar 21, 2016 06:12
I'm getting the same thing with a project that was previously working (5.3.2-something). I'm using an "OnParticleCollision" callback to determine when a bullet hits a player and it causes a series of StackOverflowException errors with no extra information. The editor also freezes as in this description.