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
- [Silicon] Crash with multiple StackTraces when entering Play Mode in a project with corrupted FBX files
- Index Out Of Range exception when trying to use Rendering Layer Override in Probe Adjustment Volume without a mask defined in lighting settings
- [Android] [Vulkan] [WebCamTexture] "WebCamTexture.Play" crashes the application when the camera is started
- Huge performance overheads appear when there is a large amount of bindings in the UI Toolkit
- Visual Effects Graph Blackboard can't be scrolled horizontally
Add comment