Search Issue Tracker
Fixed
Fixed in 2020.3.47f1, 2021.3.25f1, 2022.2.15f1, 2023.1.0b12, 2023.2.0a9
Votes
0
Found in
2020.3.36f1
2021.3.24f1
2022.2.10f1
2023.1.0b7
2023.2.0a7
Issue ID
UUM-7785
Regression
Yes
"'InstancedComponent' has been destroyed..." error is thrown when re-entering Play mode after saving a Prefab in Play Mode while Domain Reload & Scene reload are disabled
How to reproduce:
# Open the user’s attached project “BugTest.zip”
# Make sure Reload Domain and Reload Scene are disabled in Project Settings… > Editor
# Enter Play mode
# While in Play mode edit the "InstanceTest" Prefab and save the changes
# Exit and re-enter Play mode
# Observe the Console window
Expected results: No error occurs
Actual results: Prefab asset does not appear and an “'Instancnent' has been destroyed but you are still trying to access” error is thrown
Reproducible with: 2020.3.23f1, 2020.3.36f1
Not reproducible with: 2019.4.40f1, 2020.3.22f1, 2021.3.5f1, 2022.1.5f1, 2022.2.0a17
Reproducible on: macOS (Intel) Monterey 12.3.1
Full error:
MissingReferenceException: The object of type 'InstancedComponent' 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.Object.Instantiate\[T] (T original) (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/UnityEngineObject.bindings.cs:271)
Instancer.Start () (at Assets/Instancer.cs:10)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- GfxDevice::UpdateBufferRanges when running UIBuilder tests
- [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
Add comment