Search Unity

Bug Unity Player crashes on startup when running an empty project

Discussion in 'Editor & General Support' started by marian42, Jul 28, 2021.

  1. marian42

    marian42

    Joined:
    Dec 30, 2016
    Posts:
    6
    Hello! I have Unity 2019 LTS (2019.4.28f1) and I get a crash like this:

    1. Create a new Unity project
    2. Go to Build Settings and check Copy PDB files
    3. Click Build and Run
    4. It builds successfully and the player runs without problems
    5. Double click the exe file that has just been built. A crash reporter window appears briefly. The player does not open.

    This is from the error log:
    Code (csharp):
    1. Stack Trace of Crashed Thread 13700:
    2. 0x00007FFF10276E0A (UnityPlayer) D3D11SwapChain::CreateBackBufferResources
    3. 0x00007FFF102767EB (UnityPlayer) D3D11SwapChain::Adjust
    4. 0x00007FFF10278FAA (UnityPlayer) ResizePrimaryD3D11SwapChain
    5. 0x00007FFF10353FF6 (UnityPlayer) ScreenManagerWin::HandleWindowResize
    6. 0x00007FFF10353EC5 (UnityPlayer) HandlePossibleSizeChange
    7. 0x00007FFF10356949 (UnityPlayer) PlayerMainWndProc
    8. 0x00007FFF77FAE858 (USER32) CallWindowProcW
    What can I do to fix/debug this?

    Edit: Switching to Unity 2020 has fixed it.
     
    Last edited: Jul 31, 2021
  2. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,717
    I have the same issue after moving the player to a different monitor.
    Restarting the game just crashes.

    I feel like I need to find how to reset which display it uses.
     
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Wattosan and Joe-Censored like this.
  4. Wattosan

    Wattosan

    Joined:
    Mar 22, 2013
    Posts:
    460
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Should be any day now, they're finishing it up.
     
    Wattosan likes this.