Search Issue Tracker

Fixed in 2020.1.X

Votes

0

Found in

2020.1.0a3

Issue ID

1193970

Regression

No

[2D] "Invalid targetHash" and "Assertion failed" error messages when deleting packed atlases

Asset - Database

-

"Invalid targetHash" and "Assertion failed" error messages when deleting packed atlases

Error messages occur when atlases are packed, playmode is started then stopped and an atlas is deleted.

Repro steps:
1. Open attached project
2. Open "SampleScene" if it is not open
3. Start and stop playmode
4. Delete an atlas under Assets > Atlases
5. Observe errors:
GetLoadedImportedAssetsAndTargetHashes called with invalid targetHash
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Assertion failed on expression: 'it->second.IsValid()'
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Expected Result: No error messages are displayed when atlases are deleted
Actual Result: Error messages are displayed when atlases are deleted

Reproducible with:
Version 2020.1.0a3 (66e2a8618a73)

  1. Resolution Note (fix version 2020.1):

    Fixed in 2020.1.0a24

Comments (11)

  1. BenevolenceGames

    Mar 19, 2022 15:24

    -- Edit --
    Operating Unity Version should read

    Operating Unity Version : 2020.3.30f1

    Step 1. of Repro should read

    1. Install Unity Version 2020.3.30f1

  2. BenevolenceGames

    Mar 19, 2022 15:22

    Issue still ongoing.

    Reported Resolution Version : 2020.1.0a24
    Reported Errors :
    GetLoadedImportedAssetsAndTargetHashes called with invalid targetHash
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    Assertion failed on expression: 'it->second.IsValid()'
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

    Operating Unity Version : 2020.3.0f1

    Experienced Errors :
    GetLoadedImportedAssetsAndArtifactIDs called with invalid artifactID
    Assertion failed on expression: 'it->second.IsValid()'

    Repro :

    1. Install Unity version 2020.1.0f4
    2. Install Visual Effects Graph from Package Manager
    3. Remove Visual Effects Graph from 'In Projects' tab of Package Manager
    4. Restart Unity and load project
    5. Get Errors : GetLoadedImportedAssetsAndArtifactIDs called with invalid artifactID
    Assertion failed on expression: 'it->second.IsValid()'

    I can only assume this is still an atlas error for removed packages based on the error codes. That is why I posted here instead of opening a new complaint.

  3. vila4480

    Jan 15, 2021 18:02

    Happened to me just now in version 2019.3.6f1 after prefabbing an object.
    Deleting the Library fold did not fix it, but now I get this warning multiple times until crash:

    Identifier uniqueness violation: "'Name:minebot_front_upperleg, Type:Mesh'. Multiple Objects with the same name/type are generated by this Importer. There is no guarantee that subsequent imports of this asset will properly re-link to these targets.

  4. Yoon-Seung-Wook

    Nov 03, 2020 08:38

    This is definitely not fixed. Unity 2019.4.12f1 LTS. 68 error listed every time.

  5. phobos2077

    Sep 29, 2020 17:03

    This is not fixed. Unity 2019.4.11f1 LTS. Appears every time the project is opened.

  6. RonnieG19

    Sep 13, 2020 14:53

    Getting each of these x4 on project opening in v2019.3.13f1 - can't recall when or why it started but it's definitely there once the scene loads.

  7. andywatts

    May 27, 2020 09:08

    Getting this in 2020.1.0b9

  8. n3xxt

    May 03, 2020 07:25

    I have just downloaded the Unity Hub, installed latest version 2019.3.12f1 Personal and got this error just by importing a purchased asset from the store, whereas this issue suggests that this only happens on "deleting packed atlases"

  9. levwsr

    Apr 30, 2020 16:37

    Im getting this after just upgrading to 2019.3f11 and doing a build. It appears to be preventing the build from outputting. I am investigating further.

  10. Lightning_A

    Apr 17, 2020 16:39

    Will there be a fix for 2019.3?

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.