Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

HDRP build shader WARNING

Discussion in 'Graphics Experimental Previews' started by id0, Jun 11, 2019.

  1. id0

    id0

    Joined:
    Nov 23, 2012
    Posts:
    384
    If everything is working fine in the editor, I have a bunch of warnings in the build.:

    Code (CSharp):
    1. Mono path[0] = 'D:/build/zero_Data/zero_Data/Managed'
    2. Mono config path = 'D:/build/zero_Data/MonoBleedingEdge/etc'
    3. PlayerConnection initialized from D:/build/zero_Data/zero_Data (debug = 0)
    4. PlayerConnection initialized network socket : 0.0.0.0 55023
    5. Multi-casting "[IP] 100.110.235.97 [Port] 55023 [Flags] 2 [Guid] 958863479 [EditorId] 1985303838 [Version] 1048832 [Id] WindowsPlayer(WIN-TI7OTSJ9NDP) [Debug] 0 [PackageName] WindowsPlayer" to [225.0.0.222:54997]...
    6. Started listening to [0.0.0.0:55023]
    7. PlayerConnection already initialized - listening to [0.0.0.0:55023]
    8. Initialize engine version: 2019.3.0a5 (9aff892fb75b)
    9. [XR] Discovering subsystems at path D:/build/zero_Data/zero_Data/UnitySubsystems
    10. GfxDevice: creating device client; threaded=1
    11. d3d11: QueryInterface(IDXGIFactory5) failed (80004002).
    12. Direct3D:
    13.     Version:  Direct3D 11.0 [level 11.0]
    14.     Renderer: NVIDIA GeForce GTX 750 Ti (ID=0x1380)
    15.     Vendor:
    16.     VRAM:     1984 MB
    17.     Driver:   24.21.13.9836
    18. Begin MonoManager ReloadAssembly
    19. - Completed reload, in  0.060 seconds
    20. WARNING: Shader Unsupported: 'Hidden/Nature/Terrain/Utilities' - All passes removed
    21. WARNING: Shader Did you use #pragma only_renderers and omit this platform?
    22. ERROR: Shader Shader is not supported on this GPU (none of subshaders/fallbacks are suitable)WARNING: Shader Unsupported: 'Hidden/Nature/Terrain/Utilities' - Setting to default shader.
    23. WARNING: Shader Unsupported: 'HDRP/Lit' - Pass 'IndirectDXR' has no vertex shader
    24. WARNING: Shader Unsupported: 'HDRP/Lit' - Pass 'ForwardDXR' has no vertex shader
    25. WARNING: Shader Unsupported: 'HDRP/Lit' - Pass 'VisibilityDXR' has no vertex shader
    26. WARNING: Shader Unsupported: 'HDRP/Lit' - All passes removed
    27. WARNING: Shader Did you use #pragma only_renderers and omit this platform?
    28. WARNING: Shader Unsupported: 'HDRP/Unlit' - Pass 'IndirectDXR' has no vertex shader
    29. WARNING: Shader Unsupported: 'HDRP/Unlit' - Pass 'ForwardDXR' has no vertex shader
    30. WARNING: Shader Unsupported: 'HDRP/Unlit' - Pass 'VisibilityDXR' has no vertex shader
    31. WARNING: Shader Unsupported: 'HDRP/Unlit' - All passes removed
    32. WARNING: Shader Did you use #pragma only_renderers and omit this platform?
    33. <RI> Initializing input.
    34.  
    35. <RI> Input initialized.
    36.  
    37. <RI> Initialized touch support.
    38.  
    39. D3D shader create error for pixel shader [0x80070057]
    40. UnloadTime: 0.544466 ms
    41. DirectoryNotFoundException: Could not find a part of the path 'D:\build\zero_Data\Save\Temp'.
    42.   at System.IO.__Error.WinIOError (System.Int32 errorCode, System.String maybeFullPath) [0x000f7] in <fa6e197292b4483ea9ccab69667b08d3>:0
    43.   at System.IO.FileSystemEnumerableIterator`1[TSource].HandleError (System.Int32 hr, System.String path) [0x00006] in <fa6e197292b4483ea9ccab69667b08d3>:0
    44.   at System.IO.FileSystemEnumerableIterator`1[TSource].CommonInit () [0x00054] in <fa6e197292b4483ea9ccab69667b08d3>:0
    45.   at System.IO.FileSystemEnumerableIterator`1[TSource]..ctor (System.String path, System.String originalUserPath, System.String searchPattern, System.IO.SearchOption searchOption, System.IO.SearchResultHandler`1[TSource] resultHandler, System.Boolean checkHost) [0x000d6] in <fa6e197292b4483ea9ccab69667b08d3>:0
    46.   at System.IO.FileSystemEnumerableFactory.CreateFileNameIterator (System.String path, System.String originalUserPath, System.String searchPattern, System.Boolean includeFiles, System.Boolean includeDirs, System.IO.SearchOption searchOption, System.Boolean checkHost) [0x00009] in <fa6e197292b4483ea9ccab69667b08d3>:0
    47.   at System.IO.Directory.InternalGetFileDirectoryNames (System.String path, System.String userPathOriginal, System.String searchPattern, System.Boolean includeFiles, System.Boolean includeDirs, System.IO.SearchOption searchOption, System.Boolean checkHost) [0x00000] in <fa6e197292b4483ea9ccab69667b08d3>:0
    48.   at System.IO.Directory.InternalGetFiles (System.String path, System.String searchPattern, System.IO.SearchOption searchOption) [0x00000] in <fa6e197292b4483ea9ccab69667b08d3>:0
    49.   at System.IO.Directory.GetFiles (System.String path) [0x0000e] in <fa6e197292b4483ea9ccab69667b08d3>:0
    50.   at Levels.Start () [0x00002] in C:\2019\proj_\zer.019.2\Assets\_Project\Scripts\SaveSystem\Levels.cs:27
    51. (Filename: <fa6e197292b4483ea9ccab69667b08d3> Line: 0)
    52.  
    53. Setting up 3 worker threads for Enlighten.
    54.   Thread -> id: 1294 -> priority: 1
    55.   Thread -> id: 2028 -> priority: 1
    56.   Thread -> id: 22bc -> priority: 1
    57. System.TypeInitializationException: The type initializer for 'UnityEngine.Experimental.Rendering.HDPipeline.HDRenderPipeline' threw an exception. ---> System.TypeInitializationException: The type initializer for 'UnityEngine.Experimental.Rendering.HDPipeline.MaterialDebugSettings' threw an exception. ---> System.MissingMethodException: Default constructor not found for type UnityEngine.Experimental.Rendering.HDPipeline.Lit
    58.   at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) [0x0007b] in <fa6e197292b4483ea9ccab69667b08d3>:0
    59.   at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00009] in <fa6e197292b4483ea9ccab69667b08d3>:0
    60.   at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00027] in <fa6e197292b4483ea9ccab69667b08d3>:0
    61.   at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00020] in <fa6e197292b4483ea9ccab69667b08d3>:0
    62.   at System.Activator.CreateInstance (System.Type type) [0x00000] in <fa6e197292b4483ea9ccab69667b08d3>:0
    63.   at System.Linq.Enumerable+WhereSelectArrayIterator`2[TSource,TResult].MoveNext () [0x0003a] in <b06732ceae1d412f822e97c92a0e1e5e>:0
    64.   at System.Linq.Enumerable+<CastIterator>d__34`1[TResult].MoveNext () [0x0005f] in <b06732ceae1d412f822e97c92a0e1e5e>:0
    65.   at System.Collections.Generic.List`1[T]..ctor (System.Collections.Generic.IEnumerable`1[T] collection) [0x00077] in <fa6e197292b4483ea9ccab69667b08d3>:0
    66.   at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00018] in <b06732ceae1d412f822e97c92a0e1e5e>:0
    67.   at UnityEngine.Experimental.Rendering.HDPipeline.HDUtils.GetRenderPipelineMaterialList () [0x00023] in D:\ScriptableRenderPipeline-master\com.unity.render-pipelines.high-definition\Runtime\RenderPipeline\Utility\HDUtils.cs:63
    68.   at UnityEngine.Experimental.Rendering.HDPipeline.MaterialDebugSettings.GetAllMaterialDatas () [0x00001] in D:\ScriptableRenderPipeline-master\com.unity.render-pipelines.high-definition\Runtime\Debug\MaterialDebug.cs:184
    69.   at UnityEngine.Experimental.Rendering.HDPipeline.MaterialDebugSettings.BuildDebugRepresentation () [0x00011] in D:\ScriptableRenderPipeline-master\com.unity.render-pipelines.high-definition\Runtime\Debug\MaterialDebug.cs:226
    70.   at UnityEngine.Experimental.Rendering.HDPipeline.MaterialDebugSettings..cctor () [0x00065] in D:\ScriptableRenderPipeline-master\com.unity.render-pipelines.high-definition\Runtime\Debug\MaterialDebug.cs:102
    71.    --- End of inner exception stack trace ---
    72.   at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
    73.   at UnityEngine.Experimental.Rendering.HDPipeline.DebugDisplaySettings+DebugData..ctor () [0x00032] in D:\ScriptableRenderPipeline-master\com.unity.render-pipelines.high-definition\Runtime\Debug\DebugDisplay.cs:82
    74.   at UnityEngine.Experimental.Rendering.HDPipeline.DebugDisplaySettings..ctor () [0x000c4] in D:\ScriptableRenderPipeline-master\com.unity.render-pipelines.high-definition\Runtime\Debug\DebugDisplay.cs:140
    75.   at UnityEngine.Experimental.Rendering.HDPipeline.HDRenderPipeline..cctor () [0x001bc] in D:\ScriptableRenderPipeline-master\com.unity.render-pipelines.high-definition\Runtime\RenderPipeline\HDRenderPipeline.cs:199
    76.    --- End of inner exception stack trace ---
    77.   at UnityEngine.Experimental.Rendering.HDPipeline.HDRenderPipelineAsset.CreatePipeline () [0x00004] in D:\ScriptableRenderPipeline-master\com.unity.render-pipelines.high-definition\Runtime\RenderPipeline\HDRenderPipelineAsset.cs:35
    78. UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    79. UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    80. UnityEngine.Logger:Log(LogType, Object)
    81. UnityEngine.Debug:LogError(Object)
    82. UnityEngine.Experimental.Rendering.HDPipeline.HDRenderPipelineAsset:CreatePipeline() (at D:\ScriptableRenderPipeline-master\com.unity.render-pipelines.high-definition\Runtime\RenderPipeline\HDRenderPipelineAsset.cs:37)
    83. UnityEngine.Rendering.RenderPipelineAsset:InternalCreatePipeline()
    84. UnityEngine.Rendering.RenderPipelineManager:PrepareRenderPipeline(RenderPipelineAsset)
    85. UnityEngine.Rendering.RenderPipelineManager:DoRenderLoop_Internal(RenderPipelineAsset, Camera[], IntPtr)
    86.  
    87. etc...
    And I see nothing but the UI. What am I doing wrong? It worked before (HDRP 3 or 4). I saw every shader compiled. What the hell is that!?
     
  2. elbows

    elbows

    Joined:
    Nov 28, 2009
    Posts:
    2,436
    What HDRP version are you using?
     
  3. id0

    id0

    Joined:
    Nov 23, 2012
    Posts:
    384
    Last from GitHub. But this happens with all versions for a long time. Later I made a new project, almost empty only with examples of HDRP shader graphs, and it's build well. Maybe my project is too big. But what caused all of this?
     
    Last edited: Jun 11, 2019
  4. YuHeLong

    YuHeLong

    Joined:
    Apr 17, 2015
    Posts:
    10
    any update on this, I got this kind of warning when deploy an empty scene with only one HDRP cube in it , on Ipad pro with A12X chip (matel API supported), and get EXC_RESOURCE_RESOURCE_TYPE_MEMORY(limit = 2867, unused = 0x0), and stuck in running app with a black scene
     
  5. MatejKB

    MatejKB

    Joined:
    Mar 23, 2018
    Posts:
    1
    Any news on this? I also get these warnings when running on Linux, and output is black screen with white dots.
     
  6. HoneyTribe

    HoneyTribe

    Joined:
    Mar 7, 2013
    Posts:
    22
    Wondering if there is a solution for this yet? We have the same errors in builds (game runs fine in Editor). Then in the build, objects are not being rendered or rendered incorrectly. Screen goes black when cam is looking at particular objects.

    Unity 2019.1.14 with HDRP 5.7.2
     
  7. Elliott-Mitchell

    Elliott-Mitchell

    Joined:
    Oct 8, 2015
    Posts:
    58
    Same - Unity 2018.3.0b8 - HDRP 7.1.2 - On PC, this looks fine in the editor. In the build, the VFX Graph Lit particles are not rendering and I see:

    P.S. this is a VR project.

    Any tips?
     
    yusufsermet likes this.
  8. AlphaDreams

    AlphaDreams

    Joined:
    Jan 21, 2015
    Posts:
    25
    Well, Same thing for me : everything's fine in the editor, black screen in the build...
     
    yusufsermet likes this.
  9. kevin-wilson

    kevin-wilson

    Joined:
    Sep 12, 2019
    Posts:
    12
    Also seeing this. Please, please help.
     
  10. matsakovd

    matsakovd

    Joined:
    May 29, 2019
    Posts:
    22
    I have this problem too :(
     
  11. matsakovd

    matsakovd

    Joined:
    May 29, 2019
    Posts:
    22
  12. AlphaDreams

    AlphaDreams

    Joined:
    Jan 21, 2015
    Posts:
    25
    We started a new blank project (not the "HDRP" template), then we re-installed all the packages (including last version of HDRP) and finally we transferred our files from the old project to the new one.

    It seems that the new project is working well. I don't really know why, but it seems that something was broken in our old project...

    We don't have the time to investigate further, and we just hope that it will not crash in the future with the new project... If someone finds a better solution, please post it !
     
  13. HiAvatar

    HiAvatar

    Joined:
    Jan 9, 2015
    Posts:
    4
  14. Tech-Labs

    Tech-Labs

    Joined:
    Feb 5, 2014
    Posts:
    81
    I still have this issue (the black screen hdrp suggestion did not work for me) running 2019.4 with HDRP 7.4.1.
    Using the old XR system for my Vive Pro.
    No problems in the editor.
    In the build version however, I'm having serious issues with controlling the intensity of realtime spot lights in my scene - some (!) simple turn off instead of changing the intensity! Others (same GameObjects, same script) work fine.
    Scene looks normal in the Vive and on the monitor.
    The log file shows the HDRP/Lit shader unsupported and a list of other HDRP shaders.
     
    luosiri likes this.
  15. Zaine7673

    Zaine7673

    Joined:
    Feb 15, 2018
    Posts:
    201
    Is there any updates on this?

    I am able to build with no errors and the game plays fine but there are things missing. For example a shader graph shader displays all textures as expected but a texture that is updated with Grpahics.Blit (to create tracks in the snow) does not seem to be working.

    Looking at the log it says that the shader is unsupported and all passes have been removed. Also says this for the Unlit shader. Would be good to know if there is a way to resolve this.

    Thanks,

    Code (CSharp):
    1. WARNING: Shader Unsupported: 'HDRP/Unlit' - All passes removed
    2. WARNING: Shader Did you use #pragma only_renderers and omit this platform?
    3. WARNING: Shader Unsupported: 'Custom/ShaderGraph/TerrainDisplacement' - All passes removed
    4. WARNING: Shader Did you use #pragma only_renderers and omit this platform?
     
    Last edited: Jul 18, 2020
  16. unity_6bR_gsIH1YEEIA

    unity_6bR_gsIH1YEEIA

    Joined:
    Jun 17, 2019
    Posts:
    2
    Exact same issue - worked until yesterday without any problem and out of a blue, this error appeared.
     
unityunity