Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

2018.4.8f1 build windows x64 crash but not the editor

Discussion in 'Windows' started by skad, Sep 9, 2019.

  1. skad

    skad

    Joined:
    Nov 22, 2013
    Posts:
    15
    Hi.

    I'm in front of a strange behaviour and it's drive me crazy.

    Project :
    editor : Unity 2018.4.8f1
    XR : SteamVR

    4 scenes :
    - Logo
    - Menu
    - Level 1

    When i try the game in the editor there is no problems
    When i build the game, the game crash at the Menu loading
    When i build the game with only the Logo and Menu scene, the game won't crash

    There is nothing into the output.log

    When i build a visual studio solution and debug from VS i have this stack trace :
    Code (CSharp):
    1. Access violation during reading at  0x0000000000000000
    Code (CSharp):
    1.  
    2. 0000020a9b140579()
    3. 0000020a9b14008b()
    4. 0000020a9b13fbad()
    5. 0000020a9b13f8a8()
    6. 0000020a9b13f483()
    7. 0000020a89407fe8()
    8. mono-2.0-bdwgc.dll!00007ffca806b970()
    9. mono-2.0-bdwgc.dll!00007ffca7ff1922()
    10. mono-2.0-bdwgc.dll!00007ffca7ffa91f()
    11. UnityPlayer.dll!scripting_method_invoke(class ScriptingMethodPtr,class ScriptingObjectPtr,struct ScriptingArguments &,class ScriptingExceptionPtr *,bool)
    12. UnityPlayer.dll!ScriptingInvocation::Invoke(class ScriptingExceptionPtr *,bool)
    13. UnityPlayer.dll!MonoBehaviour::CallMethodIfAvailable(int)
    14. UnityPlayer.dll!MonoBehaviour::AddToManager(void)
    15. UnityPlayer.dll!MonoBehaviour::AwakeFromLoad(enum AwakeFromLoadMode)
    16. UnityPlayer.dll!AwakeFromLoadQueue::AwakeFromLoad(enum AwakeFromLoadMode,bool)
    17. UnityPlayer.dll!GameObject::ActivateAwakeRecursively(enum DeactivateOperation)
    18. UnityPlayer.dll!GameObject::SetSelfActive(bool)
    19. UnityPlayer.dll!GameObject_CUSTOM_SetActive(struct MonoObject *,unsigned char)
    20. 0000020a8f1e1d31()
    21. 0000020a9b13ebbb()
    22. 0000020a9b13dd13()
    23. 0000020a9b13cff9()
    24. 0000020a9b135803()
    25. 0000020a9b13553b()
    26. 0000020a83c7e3d3()
    27. 0000020a8f1e10f3()
    28. 0000020a8f35f381()
    29. 0000020a8f35f570()
    30. mono-2.0-bdwgc.dll!00007ffca806b970()
    31. mono-2.0-bdwgc.dll!00007ffca7ff1922()
    32. mono-2.0-bdwgc.dll!00007ffca7ffa91f()
    33. UnityPlayer.dll!scripting_method_invoke(class ScriptingMethodPtr,class ScriptingObjectPtr,struct ScriptingArguments &,class ScriptingExceptionPtr *,bool)
    34. UnityPlayer.dll!ScriptingInvocation::Invoke(class ScriptingExceptionPtr *,bool)
    35. UnityPlayer.dll!Coroutine::Run(bool *)
    36. UnityPlayer.dll!DelayedCallManager::Update(int)
    37. UnityPlayer.dll!`InitPlayerLoopCallbacks'::`2'::UpdateScriptRunDelayedDynamicFrameRateRegistrator::Forward()
    38. UnityPlayer.dll!ExecutePlayerLoop(struct NativePlayerLoopSystem *)
    39. UnityPlayer.dll!ExecutePlayerLoop(struct NativePlayerLoopSystem *)
    40. UnityPlayer.dll!PlayerLoop(void)
    41. UnityPlayer.dll!PerformMainLoop()
    42. UnityPlayer.dll!MainMessageLoop()
    43. UnityPlayer.dll!UnityMainImpl(struct HINSTANCE__ *,struct HINSTANCE__ *,wchar_t *,int)
    44. UnityPlayer.dll!UnityMain()
    45. Non Compliant.exe!wWinMain(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, wchar_t * lpCmdLine, int nShowCmd) Ligne 16
    46.     à E:\Skad\HerdeliaLegacy\Projects\Non-Compliant\Builds\DevBuild-visualstudiobuild\Non Compliant\Main.cpp(16)
    47. [Code externe]
    48.  
    I have found the dump but not the error.log

    Is there someone with an idea ?

    Edit : already think and reinstall the last nvidia driver
     

    Attached Files:

    Last edited: Sep 9, 2019
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,651
    The crash dump points to nvwgf2umx, which is Nvidia's graphics driver. It seems that there's a buffer overrun somewhere in their code.

    Can you try updating your graphics driver to see if this goes away?
     
  3. skad

    skad

    Joined:
    Nov 22, 2013
    Posts:
    15
    Hi. Thank you for your answer.

    I have forgotten to say that i have already think to the driver. It's already cleanned and reinstall.
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,651
    Which fullscreen mode are you using? Does it only happen in that particular fullscreen mode, or all of them? Does it crash right away, or after a little while of running the game?

    Does this happen in an empty Unity project?
     
  5. skad

    skad

    Joined:
    Nov 22, 2013
    Posts:
    15
    Hi

    I'm not using full screen mode, but in fullscreen mode it crash to.
    It's not crashing with an empty unity project.

    It crash in this order :
    Logo scene -> Main Menu (crash on loading) -> Lvl1 (or 2 ou 3) scène

    It doesn't crash in this order :
    Logo scene -> Main Menu

    It must be something into my lvl scenes but i'm using sames assets into my main menu scene :/

    And what i don't understand is why it's crashing into the build and not into the editor
     
    Last edited: Sep 11, 2019
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,651
    Is there any chance you could try binary search on your game objects in the scene to find the culprit? Basically, make a copy of your project and then delete half of the assets from the scene that causes a crash. If the crash goes away, it means the culprit is in the list of gameobjects you deleted. If the crash doesn't go away, it means the culprit is in the list of remaining gameobjects. Now you reduced the set of possible offenders by half. Repeat this until you find exact object causing the issue. This will probably be the fastest way for you to figure out what's causing the crash.

    Could you also file a bug report so we could investigate in parallel?
     
  7. skad

    skad

    Joined:
    Nov 22, 2013
    Posts:
    15
    Hi.
    I'm sorry for the late answer but i have lot's of works.

    I have find something i think :
    It crash in this order :
    Logo scene -> Main Menu (crash on loading) ->Empty Lvl1 scene (new crash dump)

    It doesn't crash in this order :
    Logo scene -> Main Menu (crash on loading) ->Empty new scene

    This is the scene file wich is causing crash

    Edit :
    @Tautvydas-Zilys i'm unable to upload bug report.
     

    Attached Files:

    Last edited: Sep 16, 2019
  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,651
    So your empty level 1 scene is causing a crash? What exactly is in that scene (can you open it with a text editor and compare to a new empty scene)?
     
  9. skad

    skad

    Joined:
    Nov 22, 2013
    Posts:
    15
    So i have tracked down to the params.

    It's about the fog :
    Code (CSharp):
    1.  
    2. m_Fog: 1
    3.   m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
    4.   m_FogMode: 1
    5.   m_FogDensity: 0.04
    6.   m_LinearFogStart: 5
    7.   m_LinearFogEnd: 50
    8.  
    With
    Code (CSharp):
    1.  
    2. m_Fog: 0
    3.   m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
    4.   m_FogMode: 1
    5.   m_FogDensity: 0.04
    6.   m_LinearFogStart: 5
    7.   m_LinearFogEnd: 50
    8.  
    No crash.

    But how setting fog into my LVL1 scene made my MainMenu scene crash o_O
     
  10. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,651
    That's so weird! Does this happen if you recreate an empty scene and enable fog in a new Unity project?
     
  11. skad

    skad

    Joined:
    Nov 22, 2013
    Posts:
    15
    No, it's must be something in my project :/

    but it crash with fog
    Logo scene -> Main Menu (crash on loading) ->Empty new scene