Search Issue Tracker
Fixed in 6000.0.37f1
Fixed in 6000.0.X, 6000.1.X, 6000.2.X, 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
- Font character thickness does not adjust properly in UI Toolkit text when changing Bold Weight in Font Asset
- Multiple "[...] is inaccessible due to its protection level" errors are thrown when opening project with Unity Version Control installed
- Font character thickness does not adjust properly in UI Toolkit text when changing Bold Weight in Font Asset
- Sorting icons are tiny and misaligned in Import Activity window
- The Undo system does not record HideFlags.HideInHierarchy changes
Add comment