Search Unity

Bug [SOLVED] "Material not created" error on game build

Discussion in 'Editor & General Support' started by Epiplon, Aug 4, 2022.

  1. Epiplon

    Epiplon

    Joined:
    Jun 17, 2013
    Posts:
    52
    I've created a build of a game with "Development Build" checked on and during gameplay the log keep spamming a "Material not created." log message.
    Vinyl_Hunger_Ht94bJEY1P.jpg

    Clicking on "Open log file" opens the log text file and I searched for this error message. Here's what it says:

    Code (CSharp):
    1. Material not created.
    2. UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    3. UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    4. UnityEngine.Logger:Log(LogType, Object)
    5. UnityEngine.Debug:LogError(Object)
    6. LowResPass:Execute(ScriptableRenderContext, RenderingData&)
    7. UnityEngine.Rendering.Universal.ScriptableRenderer:ExecuteRenderPass(ScriptableRenderContext, ScriptableRenderPass, RenderingData&)
    8. UnityEngine.Rendering.Universal.ScriptableRenderer:ExecuteBlock(Int32, RenderBlocks&, ScriptableRenderContext, RenderingData&, Boolean)
    9. UnityEngine.Rendering.Universal.ScriptableRenderer:Execute(ScriptableRenderContext, RenderingData&)
    10. UnityEngine.Rendering.Universal.UniversalRenderPipeline:RenderSingleCamera(ScriptableRenderContext, CameraData, Boolean)
    11. UnityEngine.Rendering.Universal.UniversalRenderPipeline:RenderCameraStack(ScriptableRenderContext, Camera)
    12. UnityEngine.Rendering.Universal.UniversalRenderPipeline:Render(ScriptableRenderContext, List`1)
    13. UnityEngine.Rendering.RenderPipeline:InternalRender(ScriptableRenderContext, List`1)
    14. UnityEngine.Rendering.RenderPipelineManager:DoRenderLoop_Internal(RenderPipelineAsset, IntPtr, List`1)
    What could be the problem?
    I've attached the whole log files as well.

    Using Unity 2021.3.7f1, URP 12.1.7
     

    Attached Files:

  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,727
    First thing I would try is a reimport all, then retry the build.
     
  3. Epiplon

    Epiplon

    Joined:
    Jun 17, 2013
    Posts:
    52
    I tried that approach, the issue still persist. When playing the game, there isn't any pink material popping up and visually everything looks fine, it's just the logging that is printing this weird message.
     
  4. Epiplon

    Epiplon

    Joined:
    Jun 17, 2013
    Posts:
    52
    Apparently it was a problem with an outdated shader using post-processing v3.
     
    Kurt-Dekker likes this.