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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

DX9 shader crash (happens on Windows XP and potentially other OS)

Discussion in 'Windows' started by TheChuckster, Nov 11, 2015.

  1. TheChuckster

    TheChuckster

    Joined:
    Dec 16, 2014
    Posts:
    28
    Loading an asset bundle level in my game causes the following crash on many but not all of my levels:

    Code (csharp):
    1. ========== OUTPUTING STACK TRACE ==================
    2.  
    3. 0x00681EF0 (Lingoland) ShaderLab::FastPropertyName::Init
    4.  
    5. ========== END OF STACKTRACE ===========
    6.  
    7. **** Crash! ****
    Logs from the crash:
    http://pastebin.com/HjBsiERt
    http://pastebin.com/8APfTcdx

    The fact that some of the (hidden/built-in) shaders do not have vertex passes might cause a read from an uninitialized address variable with value 0x4 -- look at the EAX register. If I had to guess, the engine is attempting to read a property value from the vertex pass. Seems like a simple pointer dereferencing/null check problem.

     
    Last edited: Nov 11, 2015
  2. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    Can you file a bug with the project folder (or at least the executable build)?

    The nullref crash is something we should fix (though not sure how exactly that happens). Another thing I'd like to look into, is why we treat your GeForce 6800 as "pre-GeForce6" and go on disabling shadows etc. on it.
     
  3. TheChuckster

    TheChuckster

    Joined:
    Dec 16, 2014
    Posts:
    28
    Done (I made a repro project).

    @Aras the bug report can be found at FogBugz case # 744177
     
    Last edited: Nov 12, 2015
  4. TheChuckster

    TheChuckster

    Joined:
    Dec 16, 2014
    Posts:
    28

    Attached Files:

    Last edited: Nov 12, 2015
  5. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    I haven't dug in detail yet - but just a wild guess. Since you're loading asset bundles and apparently these cause a problem... for what platform the bundles were built, and couldn't it be that when you built them, the player settings for standalone contained "DX11 only" in the graphics API list? (that setting would mean that DX9 shaders aren't included into the asset bundles at all)
     
  6. TheChuckster

    TheChuckster

    Joined:
    Dec 16, 2014
    Posts:
    28
    The bundle is built for: BuildTarget.StandaloneWindows

    The player settings for standalone for both the asset bundler and the asset bundler loader projects are both set to Automatic Graphics API for both Windows and Linux.

    It seems like DX9 shaders are getting loaded.
     
  7. TheChuckster

    TheChuckster

    Joined:
    Dec 16, 2014
    Posts:
    28
    @Aras How's it going? Were you able to take a look at my repro project that I submitted in issue #744177?