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
- UI Toolkit Slider value defaults to min value when the initial value is set in the UXML file
- The Player hangs when unloading a scene using the UnloadUnusedAssets() method
- [iOS] Too many texture parameters error is thrown when running on devices that support the number of parameters
- [MacOS] Trying to pick a Colour from full-screen window breaks Colour Picker Tool functionality
- WebGL Player hangs on first frame when "Autoconnect Profiler" is enabled and large amount of Profiler data is buffered before the first frame
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