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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
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