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
- Character spacing value is not applied when using a specific font asset
- [Android][IL2CPP] Player crashes on __memcpy_aarch64_simd+276 when invoking native code via a plugin on some ARM64 Android devices
- [Android]Resources fail to load when the AAB build contains a large Addressables Bundle
- System.UriFormatException is thrown when building the Localization "Preloading Screen Example" in WebGL
- Unity is loading internal version of SharpZipLib instead of local version
Add comment