Search Issue Tracker
Won't Fix
Votes
2
Found in [Package]
0.11.0-preview.44
Issue ID
1357551
Regression
No
[DOTS] [Hybrid Render V2] App crashes after building it with IL2CPP
How to reproduce it:
1. Open the attached project "1357551.zip"
2. Build and Run it on Android
3. Observe the app
Expected result: App doesn't crash
Actual result: App crashes after showing a splash screen
Reproducible with: 0.11.0-preview.44 (2020.3.18f1, 2021.1.19f1, 2021.2.0b11)
Could not test with: 2019.4.30f1, 2022.1.0a8 (due to DOTS packages errors)
Notes:
- Not reproducible when Development Build is enabled in the Build Settings window
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
- EditorGUILayout.PropertyField foldout icon inside Vertical Layout Group has an incorrect indent when used with OnInspectorGUI()
- [Android] [iOS] "NullReferenceException: Object reference not set to an instance of an object" throws when entering the Play Mode/opening the application
- The Player freezes on load when building Web platform
- Animator "Conditions" tab breaks when the only Parameter is deleted and another one is created
- "Shader error in 'Universal Render Pipeline/Lit': maximum ps_5_0 sampler register index (16) exceeded" error thrown after a build is completed when the "LOD Cross Fade" parameter is enabled
Resolution Note:
There's 3 different workarounds:
1. Don't use ARMv7.
2. Don't use IL2CPP
3. Disable compiler optimization from a single function in HybridV2RenderSystem.cs. (Available only in Hybrid Renderer 0.14.0 and above) Code below.
#if UNITY_ANDROID && !UNITY_64
[MethodImpl(MethodImplOptions.NoOptimization)]
#endif
public JobHandle UpdateAllBatches(JobHandle inputDependencies)