Search Issue Tracker
Won't Fix
Votes
0
Found in
5.6.5p1
Issue ID
989219
Regression
Yes
[Editor] Missing reference exception occurs on deleting particle system
Missing reference exception occurs on deleting particle system
Steps to Repro:
1. Open attached project or Create a new scene
2. Hierarchy > Right Click > Particle System
3. Delete the particle system and observe the error
Note:
This also causes build to fail sometimes with the following stack trace
Error building Player: MissingReferenceException: The object of type 'ParticleSystem' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object
Occurring with:
5.6.5p1, 5.6.4p3, 5.6.3p2
Working with:
2018.1.0b4, 2017.3.0p2, 2017.2.1p2, 2017.1.3f1, 5.6.0p4, 5.6.3p1
Environment:
Occurring on Windows & Mac
Stack Trace:
MissingReferenceException: The object of type 'ParticleSystem' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.Component.GetComponent[ParticleSystemRenderer] () (at C:/buildslave/unity/build/artifacts/generated/common/runtime/ComponentBindings.gen.cs:48)
UnityEditor.ParticleEffectUI.RefreshShowOnlySelected () (at C:/buildslave/unity/build/Editor/Mono/ParticleSystemEditor/ParticleEffectUI.cs:1016)
UnityEditor.ParticleEffectUI.SetShowOnlySelectedMode (Boolean enable) (at C:/buildslave/unity/build/Editor/Mono/ParticleSystemEditor/ParticleEffectUI.cs:997)
UnityEditor.ParticleEffectUI.Clear () (at C:/buildslave/unity/build/Editor/Mono/ParticleSystemEditor/ParticleEffectUI.cs:310)
UnityEditor.ParticleSystemInspector.OnDisable () (at C:/buildslave/unity/build/Editor/Mono/ParticleSystemEditor/ParticleSystemEditor.cs:64)
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
manup
May 28, 2018 11:46
Restarting Unity fixed it :)
manup
May 28, 2018 11:43
Still happening in 5.6.5f1. The same error word by word. Cant build my project