Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Failed to run on IOS Simulator using Unity 5.4

Discussion in 'iOS and tvOS' started by registernplay, Aug 12, 2016.

  1. registernplay

    registernplay

    Joined:
    Feb 22, 2016
    Posts:
    8
    I got this bug on launch when running my project on Simulator and it seem Unity bug , since I had no use of that shader.

    Here is the bug log

    Code (CSharp):
    1. -------- Shader compilation failed
    2. #version 100
    3. #extension GL_EXT_frag_depth : enable
    4. precision highp float;
    5. uniform highp vec4 _ProjectionParams;
    6. uniform highp vec4 _ZBufferParams;
    7. uniform highp mat4 unity_CameraToWorld;
    8. uniform highp mat4 _NonJitteredVP;
    9. uniform highp mat4 _PreviousVP;
    10. uniform highp sampler2D _CameraDepthTexture;
    11. varying highp vec2 xlv_TEXCOORD0;
    12. varying highp vec3 xlv_TEXCOORD1;
    13. void main ()
    14. {
    15.   highp vec4 tmpvar_1;
    16.   tmpvar_1 = texture2D (_CameraDepthTexture, xlv_TEXCOORD0);
    17.   mediump vec2 tmpvar_2;
    18.   highp vec4 tmpvar_3;
    19.   tmpvar_3.w = 1.0;
    20.   tmpvar_3.xyz = ((xlv_TEXCOORD1 * (_ProjectionParams.z / xlv_TEXCOORD1.z)) * (1.0/((
    21.     (_ZBufferParams.x * tmpvar_1.x)
    22.    + _ZBufferParams.y))));
    23.   highp vec4 tmpvar_4;
    24.   tmpvar_4 = (unity_CameraToWorld * tmpvar_3);
    25.   highp vec4 tmpvar_5;
    26.   tmpvar_5 = (_PreviousVP * tmpvar_4);
    27.   highp vec4 tmpvar_6;
    28.   tmpvar_6 = (_NonJitteredVP * tmpvar_4);
    29.   highp vec2 tmpvar_7;
    30.   tmpvar_7 = (((tmpvar_5.xy / tmpvar_5.w) + 1.0) / 2.0);
    31.   highp vec2 tmpvar_8;
    32.   tmpvar_8 = (((tmpvar_6.xy / tmpvar_6.w) + 1.0) / 2.0);
    33.   tmpvar_2 = (tmpvar_8 - tmpvar_7);
    34.   mediump vec4 tmpvar_9;
    35.   tmpvar_9.zw = vec2(0.0, 1.0);
    36.   tmpvar_9.xy = tmpvar_2;
    37.   gl_FragDepthEXT = tmpvar_1.x;
    38.   gl_FragData[0] = tmpvar_9;
    39. }
    40. -------- failed compiling:
    41. fragment evaluation shader
    42. WARNING: 0:4: extension 'GL_EXT_frag_depth' is not supported
    43. ERROR: 0:38: Use of undeclared identifier 'gl_FragDepthEXT'
    44.  
    45. Note: Creation of internal variant of shader 'Hidden/Internal-MotionVectors' failed.
    46. WARNING: Shader Unsupported: 'Hidden/Internal-MotionVectors' - Pass '' has no vertex shader
    47. WARNING: Shader Unsupported: 'Hidden/Internal-MotionVectors' - Setting to default shader.
    Doesnt anyone got this problem too ?

    P/S : I was use version 5.4.0f
     
  2. namitnangia

    namitnangia

    Joined:
    Aug 10, 2016
    Posts:
    3
    I am facing the exact same issue.
     
  3. phuocnb

    phuocnb

    Joined:
    Nov 20, 2015
    Posts:
    2
    I'm using version 5.4.0f3, trying to build and run on iOS 9.3.4 and the issue is still there.

    Does anyone has a solution?

    p/s: I'm using an iPod touch & iPad
     
  4. r618

    r618

    Joined:
    Jan 19, 2009
    Posts:
    1,269
    try to not use Standard shader anywhere in the scene

    also, plx report a bug with your project attached if possible - so they can fix motion vectors on mobile/simulator which apparently went happily there
     
    Last edited: Aug 19, 2016
  5. Mantas-Puida

    Mantas-Puida

    Unity Technologies

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    This error is not fatal and should not affect how your game is running.
    It's optional shader for capturing Motion Vectors, which is supported only on subset of iOS devices. If you don't need Motion Vectors (don't use effects that would benefit from them), just disable them in Unity editor under Graphics Settings.