Search Issue Tracker
Active
Votes
0
Found in
6000.0.25f1
6000.1.0a3
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
- Awaitable.NextFrameAsync() fails to resume when invoked multiple times from the playModeStateChanged event
- Text input duplicates in the TextField when textField.isDelayed is set to true and typing with a Japanese keyboard layout
- “AssetDatabase.GetMainAssetTypeAtPath" returns the incorrect type when using a global namespace class with the same name as a Unity type
- Editor silently crashes when switching platforms when Meta XR Core SDK is imported
- Crash on Object::SetCachedScriptingObject when entering the Play Mode immediately after stopping asynchronous operations in the previous Play Mode session
Add comment