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’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Bug Unable to resolve packages if Hub is open when computer is put into hibernation mode for some time

Discussion in 'Unity Hub' started by Murgilod, Nov 24, 2021.

  1. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    9,644
    Title says it all, and this is very much a Hub issue. Near as I can tell, this affects all versions of Windows that Unity runs on that support hibernation mode. To reproduce:
    1. Open Unity Hub
    2. Open Unity
    3. Close Unity
    4. Put computer into hibernation mode (I haven't tested with sleep mode) for 2 or more hours
    5. Wake computer from hibernation
    6. Open Unity
    7. Open package manager
    Upon doing this, an error will pop up in the console saying that packages can not be resolved. Attempting to manually resolve them or refresh the package list will not help. The only solution is to quit Unity and Hub, then open them again.

    This seems to affect v2 and v3 equally and may require less time to set off. If I had to guess, Hub is doing some sort of internal verification process that gets interrupted by the various Windows standby modes.
     
  2. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    9,644
    Here's the specific error message. Because you can't sign out and sign back in from the Unity editor. It also CAN be fixed by just closing and reopening the Hub itself, but this really feels like a failure of the way access tokens are handled.

    upload_2021-11-27_11-47-34.png
     
  3. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    9,644
    Despite the patch notes for the latest version of Hub's beta, this issue persists
     
  4. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    9,644
    Hub 3.0 has been formally released yet this issue persists.
     
  5. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    9,644
    This is still an issue. You can sign in through the editor to resolve it but this would be better resolved if the authentication process happened while launching the editor from Hub in the first place.