Search Issue Tracker
Fixed
Fixed in 6000.0.37f1, 6000.1.0b5, 6000.2.0a2
Votes
2
Found in
6000.0.25f1
6000.1.0a3
6000.2.0a1
Issue ID
UUM-86892
Regression
No
Crash on Object::SetCachedScriptingObject when entering the Play Mode immediately after stopping asynchronous operations in the previous Play Mode session
Reproduction steps:
1. Open the “Test” project
2. Open the “Assets/InstantiateAsyncCopy/.unity” Scene
3. Enter the Play Mode
4. Wait for a few seconds
5. Exit the Play Mode
6. Immediately enter the Play Mode
7. Observe the Editor
Expected result: The Editor enters the Play Mode
Actual result: The Editor crashes
Reproducible with: 6000.0.25f1, 6000.1.0a3
Could not test with: 2021.3.45f1, 2022.3.52f1 (Multiple compilation errors)
Reproducible on: MacOS 14.6.1 Intel, Windows 11 (user’s)
Not reproducible on: No other environment tested
Workaround: Do not enter the Play Mode immediately after exiting it
Note: "MissingReferenceException: The object of type 'AsyncDemo.InstantiateAsyncCopy' has been destroyed but you are still trying to access it” error is thrown infinitely after exiting the Play Mode and does not stop until you enter the Play Mode again
First few lines of the stack trace (Windows):
{noformat}0x00007FF80C388363 (Unity) Object::SetCachedScriptingObject
0x00007FF80C389555 (Unity) delete_object_internal_incomplete_integration
0x00007FF80C4D873F (Unity) InstantiateAsyncObjectsData::IntegrateInMainThread
0x00007FF80C4D49BF (Unity) AsyncInstantiateOperation::IntegrateInMainThread
0x00007FF80C4D4532 (Unity) `InitializeAsyncInstantiateOperation'::`2'::EarlyUpdateUpdateAsyncInstantiateRegistrator::Forward{noformat}
First few lines of the stack trace (MacOS):
{noformat}#0 0x0000010d8a4d24 in Scripting::SetCachedPtrOnScriptingWrapper(ScriptingObjectPtr, Object*)
#1 0x0000010d035cf0 in Object::SetCachedScriptingObject(ScriptingObjectPtr)
#2 0x0000010d037a85 in delete_object_internal_incomplete_integration(Object*)
#3 0x0000010d1b998b in InstantiateAsyncObjectsData::CancelAndCleanupInMainThread()
#4 0x0000010d1b9adb in InstantiateAsyncObjectsData::IntegrateInMainThread(){noformat}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
- Files in the target folder are deleted without a proper warning when building an iOS project
Add comment