Unknown Errors

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()

I have this issue also.

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.

Do these errors go away when you clear the console?

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.

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 :frowning:

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.

Update - Worked for a while. All problems are back

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 :wink:

If there will be no problems with wrong guid, errors:

UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

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

![5139746--508811--unknown.png|923x170](upload://ePQY1uk1wwGCOBBhp5nBSq98Igu.png)
1 Like