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

Radeon RX Clients crashing on White screen Windows 10

Discussion in 'Editor & General Support' started by joedurb, Jan 13, 2019.

  1. joedurb

    joedurb

    Joined:
    Nov 13, 2013
    Posts:
    38
    Going Crazy here.

    2 different clients crashing completely, or crash to blank white screen while running our Unity 3D Project.

    It doesn't crash until it gets to 3D portion, so we narrowed it down to DirectX11. If we build for OpenGL instead, no crashes. But , this causes other problems with other clients (running slow, etc).

    This is only a problem With new cheap Windows 10 computers from best buy,
    (HP Pavilions) Featuring Video Cards:
    Radeon Rx550 and
    Radeon Rx580

    Both behave similarly.
    A LOT of people are going to end up with these machines soon. Any ideas on the tech that causes the crashes, or good ways to trouble shoot?

    We are running a few custom shaders and using some basic tech like texturearrays, etc. nothing cutting edge.

    Thanks Much!!
     
    ChristopherKroll likes this.
  2. joedurb

    joedurb

    Joined:
    Nov 13, 2013
    Posts:
    38
    After a lot of troubleshooting narrowed it down to a custom shader.
    So, for some reason those Radeons are crashing on a shader, while other cards perform fine
    Will update if I figure out the exact cause.
     
  3. joedurb

    joedurb

    Joined:
    Nov 13, 2013
    Posts:
    38
    Looks like those Radeons are crashing on using:
    fixed4 myShaderData : TEXCOORD7;

    Textcoord 0-6 works, but if we also use 7 Ka-Boom. White screen unity crash.

    Our full shader Struct:

    struct vertexOutput {
    float4 color : COLOR0;
    float4 pos : SV_POSITION;
    float4 posWorld : TEXCOORD0;
    float3 normalDir : TEXCOORD1;
    float3 localPos : TEXCOORD2;
    UNITY_FOG_COORDS(3)
    fixed4 texIdBits1to4 : TEXCOORD4;
    fixed3 texIdBits5to6andStrength : TEXCOORD5;
    SHADOW_COORDS(6)
    fixed4 texOverride : TEXCOORD7;
    };


    If we remove the handling of texcoord7 everything is fine.

    If ANYONE has ANY idea if this is a bug or a known limitation we are violating, would appreciate!
     
  4. joedurb

    joedurb

    Joined:
    Nov 13, 2013
    Posts:
    38
    We've narrowed it down to a simple floating point division formula in a shader (that's not div by zero)
    The troubleshooting process here is painful, (I do not have a local machine) so i do not have a simplified repro.
    Will try to get a simplified example of bug.

    This can completely hard crash computers with Radeon Rx550 and Radeon Rx580 Or at least white screen crash the application.

    This includes UNITY CRASHING along with our built client. Must be either a bug in these newer video card drivers or possibly unity handling them. But, guessing AMD's problem.
     
  5. ivillanueva_unity

    ivillanueva_unity

    Joined:
    May 4, 2018
    Posts:
    1
    I'm getting the same problem with an RX 560. I have a blank project and whenever I add a quad, it simply goes to a white screen. Tried a bunch of different things, but I can't get anything to work. Got frustrated and went to work with UE4, and got the same problem. Did you find any solutions?
     
  6. RogellParadox

    RogellParadox

    Joined:
    Jan 20, 2019
    Posts:
    6
    Hey there. I have an RX 460. Just noticed two games I bought on Steam (made with Unity) crashed on white screen. I closed Radeon Software and they manage to run. Maybe it could be a clue.