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

Bug Native Crash Reporting when importing URP or HDRP

Discussion in 'Universal Render Pipeline' started by ep1s0de, Jan 29, 2022.

  1. ep1s0de

    ep1s0de

    Joined:
    Dec 24, 2015
    Posts:
    164
    The URP version older than 11 causes the editor to crash in versions older than 2021.2.8
    The error occurs even when creating an empty project containing an URP or HDRP package.
    In addition, the package manager does not install older versions of URP or HDRP

    upload_2022-1-29_16-7-33.png
     
    Last edited: Feb 2, 2022
  2. ep1s0de

    ep1s0de

    Joined:
    Dec 24, 2015
    Posts:
    164
  3. ep1s0de

    ep1s0de

    Joined:
    Dec 24, 2015
    Posts:
    164
  4. Ghostbu3750S

    Ghostbu3750S

    Joined:
    Sep 17, 2019
    Posts:
    19
    okay, now how can I fix it?
     
  5. RoboMech42

    RoboMech42

    Joined:
    Feb 28, 2018
    Posts:
    2
    The same is happening to me. If I try to import URP into basic 2D core, editor crashes and I can't open it no more.
     
  6. Ghostbu3750S

    Ghostbu3750S

    Joined:
    Sep 17, 2019
    Posts:
    19
    I switched back to Unity 2020.3 LTS and it worked...but had to say goodbye to the newest features though
     
  7. dot_entity

    dot_entity

    Joined:
    Nov 2, 2012
    Posts:
    85
    Any solution? Same here. Also when creating a 3d core project and trying to import the URP package.

    I thought that the problem lies with URP versions 12+, but I noticed that I can create a 2D URP project with package version 12.6 in Unity Editor 2021.3.6.... What could be different between the 11 version and the later ones?

    Anyway, I speculate that the issue is caused not by the package, but some other reason which can be triggered in other circumstances as well. At least for mac computers.
     
  8. Uphage

    Uphage

    Joined:
    Feb 11, 2014
    Posts:
    2
    I posted a fix in another thread along with a lot of detail which I'll link at the end in case you're interested, but rather than repost the whole thing or have you read through the detailed version I'll just repost the fixes here:

    The Fixes
    =========
    There are several possible steps to take, depending on the state of your project & whether or not you can succesfully open it in the Unity editor to make changes, and it should go without saying, please **BACKUP** your project folder before trying any of these changes...

    1. If you can open your project succesfully in the Unity Editor,
    * open your project in the Unity Editor
    * go to Edit -> Project Settings -> Editor
    * scroll down the settings until you reach the "Texture Compressors" section
    * change the value of the "BC7 Compressor" option so that it reads ISPC (Legacy), and not bc7e or Default
    * Close the Project Settings window
    * Save the project
    * You should now be able to import URP or HDRP successfully.

    2. If you can't open your project in the Unity Editor because this issue causes it to crash to desktop,
    * open your project folder in Windows Explorer (you can use the "..." option in Unity Hub next to your project, and select "Show in Explorer")
    * inside your project folder, go to the "ProjectSettings" folder
    * find a file named "EditorSettings.asset" and open it in notepad or your favourite text editor (it's a very small file)
    * look or search for an entry named "m_Bc7TextureCompressor" - it may not exist if you have never changed it's value before, so don't panic if you can't find it.
    * If you found it in the settings, change the value to "1". It should now look like " m_Bc7TextureCompressor: 1"
    * If you *didn't* find it in the settings, add a new line and copy & paste all of the following text from inside but excluding the quotes: " m_Bc7TextureCompressor: 1". NOTE: I'm not sure if the order of the settings matter in this file. I suspect they don't, but for context in my versions of this file, this line always appears on the line immediately before the "m_EtcTextureCompressorBehavior" setting, like so:
    ...
    m_Bc7TextureCompressor: 1
    m_EtcTextureCompressorBehavior: 1
    ...
    * save your changes to "EditorSettings.asset"
    * open your project in the Unity Editor
    * the URP / HDRP import process should now complete succesfully, and the editor should open as expected.
    * you can confirm your earlier changes by looking in the Project Settings as described in Fix 1.

    3. If you tried Fix 2 and you still can't open your project in the Unity Editor, you likely have a different problem. However, as a last resort you can manually remove any package, such as URP, that is stopping your editor from loading.
    * open your project folder in Windows Explorer (you can use the "..." option in Unity Hub next to your project, and select "Show in Explorer")
    * inside your project folder, go to the "Packages" folder
    * find a file named "manifest.json" and open it in notepad or your favourite text editor.
    * look or search for the name of the package you want to remove e.g. for URP look for the entry "com.unity.render-pipelines.universal": followed by whatever version number you're using.
    * delete the entire line if you wish to remove the package entirely. Note that depending on the packge you remove & state of your project, this can result in missing dependecy or reference errors when you next load your project, but it should at least load.
    * be careful if the package you remove is the last one in the list - as this is a .json file, every line has a comma "," after it *except" for the last line. If you remove the last package listed, make sure you also remove the comma from the previous package entry AKA now the new last package.
    * save your changes to "manifest.json"
    * open your project in the Unity Editor
    * the project should now open succesfully in the Editor.
    * if you want to add URP or HDRP at this point, follow the steps in Fix 1.



    Original reply with details & fixes: https://forum.unity.com/threads/can...talling-urp-v2021-3-2f1.1288730/#post-8745612
     
    djon801 and dot_entity like this.
  9. chicopiloto

    chicopiloto

    Joined:
    May 8, 2019
    Posts:
    1
    I did everything you said and it didn't work, BUT I did something else, I reversed the order of the settings and set the setting called "m_EtcTextureCompressorBehavior" to 1 and it worked,

    then it would look like this:

    m_EtcTextureCompressorBehavior: 1
    m_Bc7TextureCompressor: 1
     
  10. PolyMad

    PolyMad

    Joined:
    Mar 19, 2009
    Posts:
    2,340
    Tried to revert to Built-In pipeline, but deleting the URP stuff crashes Unity.
    I had to make a new project and reimport all.
    Luckily I am researching how to move now.
    I wonder if in the future there will be a way to change pipeline without having to remake the entire project...