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
- Reference to a deleted GameObject becomes "None" instead of "Missing" when the GameObject is restored with undo after entering and exiting Play Mode
- Size value in Particle System Curve's tab is highlighted with selection across all tab header
- Particle System Curve's Presets window has no visual indication of what preset is selected
- Blur shader doesn't work when the "Scene Color" Node is attached to the UI "Output" Node
- Particle System Curve presets can't be scrolled and some of them can't be selected if window is too narrow to fit them all
Add comment