Search Issue Tracker
By Design
Votes
0
Found in
2019.3
2019.3.0f6
Issue ID
1218690
Regression
No
[iOS]App crashes on the devices which do not support Metal when Auto Graphics API is set only to Metal
How to reproduce:
1. Open the attached UnityBug_OpenGLES2Removed.zip
2. Build for iOS and open the Xcode project
3. Modify the Info.plist file: remove "metal" from "Required device capabilities"
4. Deploy the Xcode project to the iOS device
Reproducible with: 2019.3.0a2, 2019.3.5f1
Reproducible with:
- iPad 4th generation (10.3.3)
Notes:
- Could not find another device which does not support metal
- OpenGLES was deprecated in 2019.3 so could not test with earlier versions
- OpenGLES is deprecated, but the app should still not crash. Looks like OpenGLES was removed and must be added manually
The workaround would be to add manually OpenGLES to Graphics API
First lines of a stack trace:
frame #0: 0x1d555acc libsystem_kernel.dylib`__pthread_kill + 8
frame #1: 0x1d60e086 libsystem_pthread.dylib`pthread_kill + 62
frame #2: 0x1d4ea95a libsystem_c.dylib`abort + 108
frame #3: 0x1cfef708 libc++abi.dylib`abort_message + 108
frame #4: 0x1d006552 libc++abi.dylib`default_terminate_handler() + 270
frame #5: 0x1d00f31e libobjc.A.dylib`_objc_terminate() + 234
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note:
Removing Metal from required device caps won't change the fact that GLES 2 is not included in the build settings. You need to add it manually in Gfx API list.