Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug Package manager lost "logged in" status after manual package install [1364320]

Discussion in '2022.1 Beta' started by Lurking-Ninja, Sep 10, 2021.

  1. Submitted bug report [1364320].

    1. What happened
    Was import a package manually when after the auto refresh package manager thinks I'm logged out and throws errors.
    It was not the first package added manually, other were installed without this problem in the same project.

    2. How can we reproduce it using the example you attached
    See attached screenshot too.

    - package manager
    - I added com.unity.collections
    - observe the automatic package list refresh
    - observe tthe "sign in" button instead of the list
    - observe Editor tries to contact Hub to validate account
    - after allowing it, user still logged out

    after restart:
    - reopening packman the list is back including Collections package
    - everything seems normal except when
    - select the Collections package: it throws the same error and the selection gets wonky (double selection blue background, Collections doesn't get selected really)

    Screenshot (initials removed, I'm logged in):
    screenshot.png

    Error:
    Code (CSharp):
    1. NullReferenceException: Object reference not set to an instance of an object
    2. UnityEditor.PackageManager.UI.Internal.PackageDetailsHeader.RefreshVersionInfoIcon () (at <4355f4acd9c0472cb2cb8a3551b83bdb>:0)
    3. UnityEditor.PackageManager.UI.Internal.PackageDetailsHeader.Refresh (UnityEditor.PackageManager.UI.Internal.IPackage package, UnityEditor.PackageManager.UI.Internal.IPackageVersion version) (at <4355f4acd9c0472cb2cb8a3551b83bdb>:0)
    4. UnityEditor.PackageManager.UI.Internal.PackageDetails.Refresh () (at <4355f4acd9c0472cb2cb8a3551b83bdb>:0)
    5. UnityEditor.PackageManager.UI.Internal.PackageDetails.Refresh (UnityEditor.PackageManager.UI.Internal.IPackage package, UnityEditor.PackageManager.UI.Internal.IPackageVersion version) (at <4355f4acd9c0472cb2cb8a3551b83bdb>:0)
    6. UnityEditor.PackageManager.UI.Internal.PackageDetails.OnPackagesChanged (System.Collections.Generic.IEnumerable`1[T] added, System.Collections.Generic.IEnumerable`1[T] removed, System.Collections.Generic.IEnumerable`1[T] preUpdate, System.Collections.Generic.IEnumerable`1[T] postUpdate) (at <4355f4acd9c0472cb2cb8a3551b83bdb>:0)
    7. UnityEditor.PackageManager.UI.Internal.PackageDatabase.OnPackagesChanged (System.Collections.Generic.IEnumerable`1[T] packages) (at <4355f4acd9c0472cb2cb8a3551b83bdb>:0)
    8. UnityEditor.PackageManager.UI.Internal.UpmClient.OnPackageInfosUpdated (System.Collections.Generic.IEnumerable`1[T] packageInfos) (at <4355f4acd9c0472cb2cb8a3551b83bdb>:0)
    9. UnityEditor.PackageManager.UI.Internal.UpmCache.TriggerOnPackageInfosUpdated (System.Collections.Generic.IEnumerable`1[T] packageInfos) (at <4355f4acd9c0472cb2cb8a3551b83bdb>:0)
    10. UnityEditor.PackageManager.UI.Internal.UpmCache.SetInstalledPackageInfo (UnityEditor.PackageManager.PackageInfo info, System.Boolean isSpecialInstallation) (at <4355f4acd9c0472cb2cb8a3551b83bdb>:0)
    11. UnityEditor.PackageManager.UI.Internal.UpmClient.OnProcessAddResult (UnityEditor.PackageManager.UI.Internal.IOperation operation, UnityEditor.PackageManager.Requests.Request`1[T] request) (at <4355f4acd9c0472cb2cb8a3551b83bdb>:0)
    12. UnityEditor.PackageManager.UI.Internal.UpmClient.<SetupAddOperation>b__85_1 (UnityEditor.PackageManager.Requests.AddRequest request) (at <4355f4acd9c0472cb2cb8a3551b83bdb>:0)
    13. UnityEditor.PackageManager.UI.Internal.UpmBaseOperation`1[T].OnSuccess () (at <4355f4acd9c0472cb2cb8a3551b83bdb>:0)
    14. UnityEditor.PackageManager.UI.Internal.UpmBaseOperation`1[T].Progress () (at <4355f4acd9c0472cb2cb8a3551b83bdb>:0)
    15. UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at <5e25c0761ced47aea39b395deee011b4>:0)
     
    Last edited by a moderator: Sep 10, 2021
    synthc and LeonhardP like this.