Search Issue Tracker
Won't Fix
Votes
0
Found in
2023.2.0a18
Issue ID
UUM-39900
Regression
Yes
"Destroying object multiple times. Don't use DestroyImmediate on the same object in OnDisable or OnDestroy" Error is thrown when trying to replace a GameObject/Prefab with a different Prefab from the Context Menu's "Replace..." option
Reproduction steps:
1. Open the attached “Repro.zip” project
2. Open the “Assets/Scenes/SampleScene.unity” Scene
3. Right-click on the “GameObject1” GameObject in the Hierarchy window
4. Select “Prefab” and then “Replace…” in the Context menu
5. Observe
Expected result: Another window pops up, which lets you to select a prefab, which is going to replace the selected GameObject
Actual result: “Destroying object multiple times. Don't use DestroyImmediate on the same object in OnDisable or OnDestroy” Error gets thrown in the Console window
Reproducible with: 2023.2.0a15, 2023.2.0a18
Not reproducible with: 2022.3.1f1, 2023.1.0b21, 2023.2.0a14
Couldn’t test with: 2020.3.48f1, 2021.3.
Reproducible on: Windows 10 Pro (22H2)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- Crash with “Fatal Error! The file ‘MemoryStream’ is corrupted!” when adding a large number in Font Character Rects Size field
Resolution Note:
The issue is already fixed as from 2023.2.0a20.