Search Issue Tracker

Fixed in 2020.1.X

Fixed in 2019.2.X, 2019.3.X

Votes

136

Found in

2019.2.5f1

Issue ID

1185078

Regression

Yes

[iOS][OpenGLES2] Getting "Internal error, unrecognized message" when building

iOS

-

To reproduce:
1. Create a new project
2. Add a 3D Cube to a scene
3. Build for iOS
4. Observe errors in the console :
"Shader compiler: Compile Standard - FORWARD, Vertex Program: Internal error, unrecognized message from the shader compiler process. Please report a bug including this shader and the editor log."
5. Deploy the Xcode project to iOS device
6. Observe the crash at: "UnityGfxDeviceWorker (33): EXC_BAD_ACCESS (code=1, address=0x0"

Expected: the project is built without any issues
Actual: getting shader errors in the console while building the project and built project crashes on launch

Reproduced on:
2019.2.7f2

Regression introduced in:
2019.2.5f1

Not reproduced on:
2017.4.32f1 2018.4.10f1 2019.2.4f1 2019.3.0b4 2020.1.0a5

Crash reproduced on these devices:
- iPhone 7 iOS 12.3.1
- iPad Pro 12.9' (2nd gen) iOS 11.2.1

Getting only a black screen on these devices:
- iPad Mini 2 iOS 11.4.1
- iPad 5th gen iOS 10.3.3

Notes:
- Attaching Editor.log for console errors
- Doesn't reproduce on Android VLNQA00015, Samsung Galaxy Note8 (SM-N950W), Android 8.0.0, CPU: Snapdragon 835 MSM8998, GPU: Adreno (TM) 540
- Reproduced on Metal, OpenGLES2
- Doesn't reproduce on OpenGLES3
- When building with OpenGLES2 getting a black screen with a grey SPHERE (sphere.png) even though there was only a CUBE in the scene
- When building for a second time, getting a pink screen in an iOS device

Comments (54)

  1. ankitdm

    Oct 25, 2019 04:29

    This issue is still happening on macOS Catalina with Unity 2019.2.10f1for Android build.
    The game seems to be working perfectly fine in Editor, but when run on an Android device, it shows a complete Pink screen and then crashes.

  2. rizencreative

    Oct 24, 2019 18:53

    Any Updates? Been several versions..

  3. UnityPlugins

    Oct 22, 2019 14:24

    This comes from the Unity forum, but for those with this problem on MacOS Catalina, replacing the UnityShaderCompiler from the versions listed with the 2019.3.0b, and then forcing a shader recompile by either removing the compiled shaders from the library or reimporting them seems to fix the issue. Even then, we are not deploying from MacOS Catalina until this is fixed.

  4. mmvlad

    Oct 21, 2019 10:17

    Similar with Android. Unable to build on Catalina

  5. jWorldGames

    Oct 20, 2019 14:19

    Same issue here: 2019.2.9f1 on Catelina. Create an entirely blank project run it and splash screen "Made with Unity" wont load, on both android and iOS app crashes. On android get the purple screen, on iOS it hangs until crash. Connecting to Xcode we see a bad exec, along with in untiyat compile the other logs shown in this post.

    ```2019-10-20 10:03:45.760070-0400 NewUnityProject[1397:293194] Built from '2019.2/staging' branch, Version '2019.2.9f1 (ebce4d76e6e8)', Build type 'Release', Scripting Backend 'il2cpp'
    2019-10-20 10:03:45.764072-0400 NewUnityProject[1397:293194] -> registered mono modules 0x101cb67c0
    -> applicationDidFinishLaunching()
    2019-10-20 10:03:45.833767-0400 NewUnityProject[1397:293194] Metal GPU Frame Capture Enabled
    -> applicationDidBecomeActive()
    GfxDevice: creating device client; threaded=1
    Initializing Metal device caps: Apple A12 GPU
    Initialize engine version: 2019.2.9f1 (ebce4d76e6e8)
    Failed to find expected binary shader data in 'Sprites/Default'.

    (Filename: ./Runtime/Shaders/SerializedShader.cpp Line: 595)

    WARNING: Shader Unsupported: 'Hidden/Internal-GUITexture' - Pass '' has no fragment shader
    WARNING: Shader Unsupported: 'Hidden/Internal-GUITexture' - Pass '' has no vertex shader
    WARNING: Shader Unsupported: 'Hidden/Internal-GUITexture' - Setting to default shader.
    2019-10-20 10:03:46.992840-0400 NewUnityProject[1397:293430] Compiler failed to build request
    Metal: Error creating pipeline state (Sprites/Default): output of type half4 is not compatible with a MTLPixelFormatInvalid color attachement.
    (null)2019-10-20 10:03:47.020478-0400 NewUnityProject[1397:293194] Unbalanced calls to begin/end appearance transitions for <SplashScreenController: 0x15fe51d00>.
    UnloadTime: 2.639167 ms
    ```

  6. Terko

    Oct 19, 2019 11:32

    Same issue happens to me on Catalina. On Mojave it was fine.

  7. avorobjev

    Oct 18, 2019 10:04

  8. onesoftgames

    Oct 18, 2019 09:43

    Try 2019.2.9 and Xcode still error:
    2019-10-18 16:41:20.247943+0700 gametest[3413:1259126] Built from '2019.2/staging' branch, Version '2019.2.9f1 (ebce4d76e6e8)', Build type 'Release', Scripting Backend 'il2cpp'
    2019-10-18 16:41:20.253238+0700 gametest[3413:1259126] -> registered mono modules 0x105cbc9a0
    -> applicationDidFinishLaunching()
    2019-10-18 16:41:20.329410+0700 gametest[3413:1259126] Metal GPU Frame Capture Enabled
    -> applicationDidBecomeActive()
    GfxDevice: creating device client; threaded=1
    Initializing Metal device caps: Apple A13 GPU
    Initialize engine version: 2019.2.9f1 (ebce4d76e6e8)
    WARNING: Shader Unsupported: 'Hidden/Internal-GUITexture' - Pass '' has no fragment shader
    Failed to find expected binary shader data in 'TextMeshPro/Distance Field'.

    (Filename: ./Runtime/Shaders/SerializedShader.cpp Line: 595)

    2019-10-18 16:41:21.042745+0700 gametest[3413:1259317] Compiler failed to build request
    Metal: Error creating pipeline state (Hidden/Internal-GUITexture): output of type half4 is not compatible with a MTLPixelFormatInvalid color attachement.
    (null)2019-10-18 16:41:31.127432+0700 gametest[3413:1259317] Compiler failed to build request
    Metal: Error creating pipeline state (Sprites/Default): output of type half4 is not compatible with a MTLPixelFormatInvalid color attachement.
    (null)2019-10-18 16:41:31.129557+0700 gametest[3413:1259126] [Common] _BSMachError: port bb03; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
    UnloadTime: 0.056542 ms
    WARNING: Shader Unsupported: 'TextMeshPro/Mobile/Bitmap' - Pass '' has no fragment shader
    WARNING: Shader Unsupported: 'UI/Default' - Pass 'Default' has no vertex shader
    ERROR: Shader Shader is not supported on this GPU (none of subshaders/fallbacks are suitable)WARNING: Shader Unsupported: 'UI/Default' - Setting to default shader.
    Failed to find expected binary shader data in 'Hidden/BlitCopy'.

    (Filename: ./Runtime/Shaders/SerializedShader.cpp Line: 595)

    WARNING: Shader Unsupported: 'Hidden/BlitCopy' - Pass '' has no vertex shader
    WARNING: Shader Unsupported: 'Hidden/BlitCopy' - Setting to default shader.
    2019-10-18 16:41:36.525340+0700 gametest[3413:1259437] XPC connection interrupted
    2019-10-18 16:41:41.281525+0700 gametest[3413:1259317] Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED
    2019-10-18 16:41:51.310454+0700 gametest[3413:1259317] Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED
    2019-10-18 16:42:01.342771+0700 gametest[3413:1259317] Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED
    2019-10-18 16:42:01.342954+0700 gametest[3413:1259317] MTLCompiler: Compilation failed with XPC_ERROR_CONNECTION_INTERRUPTED on 3 try
    Metal: Error creating pipeline state (Skybox/Procedural): Compiler encountered an internal error
    (null)Setting up 1 worker threads for Enlighten.
    Thread -> id: 16b40f000 -> priority: 1
    2019-10-18 16:42:11.379793+0700 gametest[3413:1259317] Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED
    2019-10-18 16:42:21.412168+0700 gametest[3413:1259317] Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED
    2019-10-18 16:42:31.438423+0700 gametest[3413:1259317] Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED
    2019-10-18 16:42:31.438597+0700 gametest[3413:1259317] MTLCompiler: Compilation failed with XPC_ERROR_CONNECTION_INTERRUPTED on 3 try
    Metal: Error creating pipeline state (Skybox/Procedural): Compiler encountered an internal error
    (null)2019-10-18 16:42:41.525067+0700 gametest[3413:1259317] Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED
    WARNING: Shader Unsupported: 'Hidden/Internal-MotionVectors' - Pass '' has no fragment shader
    WARNING: Shader Unsupported: 'Hidden/Internal-MotionVectors' - Setting to default shader.
    2019-10-18 16:42:51.557187+0700 gametest[3413:1259317] Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED

  9. projepark

    Oct 16, 2019 09:56

    This is a blocking issue to get a new build and version our app on IOS store. I checked it does not exist on 2019.3.0b7.But we do not want to get an official build on beta version of unity as it causes other problems on the assets we have used in the project.

  10. ScorpiArtem

    Oct 15, 2019 21:31

    Same at 2019.2.9f1. Any updates?

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.