Search Issue Tracker
Active
Under Consideration for 6000.0.X, 6000.1.X
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
- “Readme” Asset is unreadable in the Inspector window when switching Editor Theme to Light
- “NullReferenceException” error thrown when switching Editor Theme to Light if “Unity Version Control” tab is enabled
- A Warning is displayed in the Inspector when a Mesh with any Material is added as a Terrain Detail
- [Android][Vulkan] Memory leak when playing and stopping a video using the Video Player on some devices
- Caret moves by a character when typing "." and any number into 'Grid and Snap' toolbar's input field
Add comment