Search Issue Tracker
Won't Fix
Won't Fix in 5.5.X, 5.6.X
Votes
5
Found in
5.5.1p3
Issue ID
905722
Regression
No
[iOS][Metal] Parsing shaders takes a very long time with 'Compiler connection failed' error on iOS 8
iOS 8 devices fail compiling shaders with 'Compiler connection failed' error.
Steps to reproduce:
1) Open the latest attached project (905722_iOS8.zip).
2) Build for iOS.
3) Run on a device.
4) Press the UI button on the screen.
The button press should load another scene. On iOS devices, it takes around 15 - 20 seconds to load 'Compiler connection failed' error is logged in Xcode's console along with some shader code after the scene has finished loading.
On iOS 10 devices, the scene loads immediately.
This doesn't occur with OpenGL ES.
Reproduced on:
2017.1.0b3, 5.5.1p3
Test devices:
iPhone Plus 6 iOS 8.0
iPad Air iOS 8.1.1
iPhone 5S iOS 8.2.2 - reproduced by the user
Comments (2)
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
- “Hue Vs Hue (Overriding)” text doesn’t fit within Color Curves dropdown bounds
- UV channels render with visual artifacts when 8-bit UV bit depth is used on ParticleSystem Meshes
- Symbolic link warning is logged when using non-symlink NTFS Reparse Points in the project folder structure
- Selection in Entities Archetypes window changes when "Show Empty Archetypes" is toggled
- NullReferenceException is thrown when assigning a Lens Flare SRP asset to a Lens Flare Data SRP element
hyunlee
Aug 24, 2017 06:57
There is a workaround that makes Metal compatible with ios 9 or newer.
[UnityAppController+Rendering.mm]
static int SelectRenderingAPIImpl()
{
#if UNITY_CAN_USE_METAL
- const bool canSupportMetal = _ios80orNewer;
+ // HL: hotfix
+ const bool canSupportMetal = _ios90orNewer;
#else
const bool canSupportMetal = false;
#endif
...
}
Unity version: 5.6.1p3
Test devices:
iPad Mini3 (8.3) - OpenGLES, no problem
iPhone6 (10.3.3) - Metal, no problem
iPhoneSE (9.3.2) - Metal, no problem
o2361800
Aug 08, 2017 15:33
same problem; reproduced in 5.5.3p1 & 5.5.4p2, affects single device (ipod a1574) running ios 8.4.
It occures when automatic graphics api setting is on (on this device Metal will be default); when OpenGL is forced, it won't occure.
Problem exists even on empty scene + only cube with default Standard shader (cube must be inside camera's frustum).