Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4
2020.1.0a15
Issue ID
1203075
Regression
No
[Mobile] Crash on WillDestroyGameObject() when calling DestroyImmediate() in Start
How to reproduce:
1. Open the attached project for iOS or Android platform
2. Assets > Build AssetBundles
3. Build & Run the project to a device
Actual result: Unity crashes.
Reproducible with: 2017.4.35f1, 2018.4.14f1, 2019.2.15f1, 2019.3.0f2, 2020.1.0a15.
Devices reproducible with:
- iPhone7+ (iOS 11.4.1)
- iPhone 11 (iOS 13.0)
- VLNQA00229 Oneplus OnePlus6T 9 Snapdragon 845 SDM845 Adreno (TM) 630
Notes:
- Not reproducible on Mac Standalone (Both Mono and IL2CPP).
- The issue reproduces only if "Strip Engine Code" is enabled in Player Settings.
- The issue is not reproducible if "Assets/ProductDemo/ResourcesNO" folder is renamed to "Resources".
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note:
DestroyImmediate should not be used in runtime code, use Destroy instead. See https://docs.unity3d.com/ScriptReference/Object.DestroyImmediate.html