Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2020.2.X, 2021.1.X
Votes
2
Found in
2020.2.0f1
Issue ID
1311111
Regression
No
Infinity loop issue about Sub-Emitters of Particle System Editor
A customer asked me about infinity loop issue occurred at Particle System Editor.
Be occurring an infinity loop issue when Sub-Emitters sets between same hierarchy particles (They are not root object!!) in ParticleSystem Editor.
I think to cause of this commit.
https://github.cds.internal.unity3d.com/unity/unity/commit/7897dc5d540c34027bb84bca3e932e4f5e5d9188
| parent = parent.transform;
Because inputted a same transform value to parent variable, I think to can't out a loop.
-----------------------------------
Step to rerpduce:
1. Creates a new project.
2. Adds a new particle effect A as root obejct in hierarchy
3. Add new two particle effects (B, C) under the A object.
4. Sets the C object at B's Sub-Emitters.
Actual Result:
The editor can't get out of 'while' loop statement and it come to an infinity loop state.
Expected Result:
EditorGUILayout.HelpBox(string.Format("{0}\n{1}", s_Texts.invalidSubEmitterParenting.text, invalidSubEmitters.TrimEnd('\n')), MessageType.Error, true);
This code is ran and an error message is displayed normally. And the editor doesn't come to an infinity loop state.
Reproducible in:
2020.2.0f1, 2020.2.1f1, 2020.2.2f1 (all version of above 2020.2.0f1)
Comments (1)
-
Whatever560
Feb 21, 2023 11:24
Does seems to have been reintroduced, I reproduced this in 2021.3.17
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
- [Android][BiRP] Depth processing is handled incorrectly on certain Android devices when using 2 camera's
- [APV] Cancelling Display Dialog Error is thrown after Adaptive Probe Volumes tab is open in Lighting Window
- [APV] NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
- Hands are not recognized when using Hololens 2
- "OnTriggerExit2D" is called before "OnTriggerEnter2D" when object is destroyed immediately
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0a5
Resolution Note (fix version 2021.1):
Fixed in 2021.1.0b8
Resolution Note (fix version 2020.2):
Fixed in 2020.2.6f1