Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Unity Editor keeps crashing

Discussion in 'Editor & General Support' started by Pixygon, Jul 10, 2019.

  1. Pixygon

    Pixygon

    Joined:
    May 9, 2013
    Posts:
    21
    The Unity Editor keeps crashing at startup for me, but only for one specific projects. I've tried using both Unity 2019.1.8 and 2019.1.9, but the same happens on both. The project works fine on my other pc, and also if I go back enough commits in git. I was wondering if it was an error in some settings, like Quality/Project or Graphics-settings, but that didn't help either.

    The crash happens right after the editor has imported everything, right when it is about to open the editor-window. If I open the project in a earlier, working commit, then pull to my current commit, with Unity open, I don't get the crash, so it is strictly happening in startup.
    The crash-log gives me this:

    Read from location 0000000000000000 caused an access violation.
    and
    Unity.exe caused an Access Violation (0xc0000005) in module Unity.exe at 0033:5f989166.

    Would love some help on this, as I am completely stuck...
     
  2. ClockStone_Helmut

    ClockStone_Helmut

    Joined:
    Feb 23, 2015
    Posts:
    9
    Sorry for necroing, but I just lost four hours on this and reading this might help others.

    I had a similar problem and for me removing Direct3D12 support from the WindowsStandaloneSupport fixed it for me.

    Unity Editor will try to switch to that graphics platform on startup (the first one in the list). Apparently my graphics card does not support that and logs buffer allocation errors and then crashes. Someone else on my team changed the settings, on their PC it would work fine.

    So I had to change something like
    (please ignore the colors, can't see how to add a plain text block)

    Code (CSharp):
    1.   m_BuildTargetGraphicsAPIs:
    2.   - m_BuildTarget: AndroidPlayer
    3.     m_APIs: 1500000008000000
    4.     m_Automatic: 0
    5.   - m_BuildTarget: WindowsStandaloneSupport
    6.     m_APIs: 1200000002000000
    7.     m_Automatic: 0
    to

    Code (CSharp):
    1.   m_BuildTargetGraphicsAPIs:
    2.   - m_BuildTarget: AndroidPlayer
    3.     m_APIs: 1500000008000000
    4.     m_Automatic: 0
    5.   - m_BuildTarget: WindowsStandaloneSupport
    6.     m_APIs: 02000000
    7.     m_Automatic: 0
    note the missing "120000000" in APIs for WindowsStandaloneSupport.

    In ProjectSettings\ProjectSettings.asset.
     
    ryzeonline, gregcodercw and Pixygon like this.
  3. DeathRace26

    DeathRace26

    Joined:
    May 26, 2019
    Posts:
    64
    I use HDRP and thanks to that I get constant crashes any random time. Hdrp came out of preview already and yet it is still crashing... HOW
     
  4. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    4,781
    If you're able to reproduce this issue, please submit a bug-report as described in this document:
    https://unity3d.com/unity/qa/bug-reporting

    It's important that you report these issues together with a reproduction project if you want them to get fixed. If you don't do it, it might be a long time until someone else reports them or until Unity Technologies find them.

    After you submitted the bug-report, you receive a confirmation email with a bug-report Case number. Please post the Case number (number only, not the link) in this forum thread for Unity staff to pick up.
     
unityunity