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. Dismiss Notice

Unknown Errors

Discussion in 'Scripting' started by Refzlund, Oct 10, 2019.

  1. Refzlund

    Refzlund

    Joined:
    Oct 15, 2016
    Posts:
    11
    Hi, I'm getting 4 errors. Does anyone know how to make them dissappear/solve them?
    Doesn't seem to create any obvious issues.

    Thanks in advance.

    Running Unity 2019.2.8f1
    Packages:
    • Core RP Library (6.9.1)
    • Custom NUnit (1.0.0)
    • Input System (preview - 1.0.0)
    • Lightweight RP (6.9.1)
    • Post Processing (2.1.7)
    • ProBuilder (4.0.5)
    • Rider Editor (1.1.1)
    • Shader Graph (6.9.1)
    • Test Framework (1.1.3)
    • TextMesh Pro (2.0.1)
    • Unity Collaborate (1.2.16)
    • Unity Timeline (1.1.0)
    • Unity UI (1.0.0)
    • Visual Studio Code Editor (1.1.2)
    Errors:
    Assertion failed on expression: 'targetHash.IsValid()'
    UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

    Assertion failed on expression: 'loadedImportedAsset.targetHash.IsValid()'
    UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

    Asset with guid '7e340e64940e5ca489dda14b83d912c4' and path 'Assets/Resources/Input/Controls.inputactions' is up to date, but does not have a valid target hash assigned to it in the GuidPersistentManager
    UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

    Asset with guid '8fc69f01ce1997842bea1ca5cffcc1d5' and path 'Assets/Graphics/Shaders/Pattern.shadergraph' is up to date, but does not have a valid target hash assigned to it in the GuidPersistentManager
    UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
     
    Last edited: Oct 10, 2019
  2. create3dgames

    create3dgames

    Joined:
    Aug 20, 2012
    Posts:
    275
    I have this issue also.
     
  3. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,144
    Errors that start with UnityEditor are not errors with your code. I have yet to have one create an issue in my project as they are related to something in the editor. Good to pass them on to Unity I think with the info you have.
     
  4. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,355
    Do these errors go away when you clear the console?
     
  5. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,713
    These also may go away if you do a Reimport All (right-click in the project pane), or if they don't, it might be a reportable-to-Unity type of bug.
     
  6. Refzlund

    Refzlund

    Joined:
    Oct 15, 2016
    Posts:
    11
    They keep coming everytime the Editor "loads" - Clicking away from the editor and clicking on the editor again and they show up. Or when scripts compile, etc.

    Yeah, Reimport All didn't really work unfortunately :(
     
  7. Refzlund

    Refzlund

    Joined:
    Oct 15, 2016
    Posts:
    11
    Somehow I found a solution.

    What I tried to do multiple times because of the errors mentioning "shader.graph" and "inputactions" - I tried to remove the InputSystem, remove Lightweight Pipeline + Shadergraph, and then reimport those assets.

    Today InputSystem had a update called (preview .1) - that made the inputactions one go away. Then I tried to remove Lightweight Pipeline (again) together with Shadergraph - now, everytime I reimported Lightweight Pipeline it automatically also included Shader Graph. So when I removed it this time, I imported Shader Graph first (the reason I didn't do this before was because I thought the LP was required first). So now those errors are gone.

    The other two assertion errors comes at times.
     
  8. Refzlund

    Refzlund

    Joined:
    Oct 15, 2016
    Posts:
    11
    Update - Worked for a while. All problems are back
     
  9. keypax

    keypax

    Joined:
    Apr 17, 2015
    Posts:
    12
    Solved for me
    I had similar problem. For me, solution was:
    - move problematic file to other directory outside unity project
    - delete problematic file from unity
    - move back file from other directory

    It somehow refresh the GuidPersistentManager ;)

    If there will be no problems with wrong guid, errors:
    "Assertion failed on expression: 'targetHash.IsValid()'
    UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

    Assertion failed on expression: 'loadedImportedAsset.targetHash.IsValid()'
    UnityEditor.EditorApplication:Internal_CallUpdateFunctions()"

    will disappear
     

    Attached Files:

    RGI121 likes this.