Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Unity 2018.3 is now released.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Package Manager spams console with errors in 2019.1.0b3 clean install

Discussion in '2019.1 Beta' started by alexandre-fiset, Feb 12, 2019 at 5:59 PM.

  1. alexandre-fiset

    alexandre-fiset

    Joined:
    Mar 19, 2012
    Posts:
    266
    After installing Unity 2019.1.0b3 through Unity HUB, opening the Package Manager spams the console with this error:

    Code (CSharp):
    1. FormatException: Input string was not in a correct format.
    2. System.Number.ParseDouble (System.String value, System.Globalization.NumberStyles options, System.Globalization.NumberFormatInfo numfmt) (at <3a07e6401b5d4cc98f7be596cb2130ba>:0)
    3. System.Double.Parse (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) (at <3a07e6401b5d4cc98f7be596cb2130ba>:0)
    4. System.Double.Parse (System.String s, System.IFormatProvider provider) (at <3a07e6401b5d4cc98f7be596cb2130ba>:0)
    5. System.Convert.ToDouble (System.String value) (at <3a07e6401b5d4cc98f7be596cb2130ba>:0)
    6. UnityEditor.PackageManager.UI.PackageInfo.GetPackageUrlRedirect (System.String packageName, System.String shortVersionId) (at C:/Program Files/Unity/Hub/Editor/2019.1.0b3/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.package-manager-ui/Editor/Sources/Services/Packages/PackageInfo.cs:76)
    7. UnityEditor.PackageManager.UI.PackageInfo.get_RedirectsToManual () (at C:/Program Files/Unity/Hub/Editor/2019.1.0b3/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.package-manager-ui/Editor/Sources/Services/Packages/PackageInfo.cs:103)
    8. UnityEditor.PackageManager.UI.PackageInfo.get_HasChangelog () (at C:/Program Files/Unity/Hub/Editor/2019.1.0b3/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.package-manager-ui/Editor/Sources/Services/Packages/PackageInfo.cs:109)
    9. UnityEditor.PackageManager.UI.PackageDetails.SetDisplayPackage (UnityEditor.PackageManager.UI.PackageInfo packageInfo, UnityEditor.PackageManager.Error packageError) (at C:/Program Files/Unity/Hub/Editor/2019.1.0b3/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.package-manager-ui/Editor/Sources/UI/PackageDetails.cs:193)
    10. UnityEditor.PackageManager.UI.PackageDetails.ShowDisplayPackage (UnityEditor.PackageManager.UI.PackageInfo displayPackage) (at C:/Program Files/Unity/Hub/Editor/2019.1.0b3/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.package-manager-ui/Editor/Sources/UI/PackageDetails.cs:276)
    11. UnityEditor.PackageManager.UI.PackageDetails.SetPackage (UnityEditor.PackageManager.UI.Package package, UnityEditor.PackageManager.UI.PackageInfo displayPackage) (at C:/Program Files/Unity/Hub/Editor/2019.1.0b3/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.package-manager-ui/Editor/Sources/UI/PackageDetails.cs:270)
    12. UnityEditor.PackageManager.UI.PackageDetails.OnSelectionChanged (System.Collections.Generic.IEnumerable`1[T] selected) (at C:/Program Files/Unity/Hub/Editor/2019.1.0b3/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.package-manager-ui/Editor/Sources/UI/PackageDetails.cs:107)
    13. UnityEditor.PackageManager.UI.Selection.TriggerNewSelection () (at C:/Program Files/Unity/Hub/Editor/2019.1.0b3/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.package-manager-ui/Editor/Sources/Services/Common/Selection.cs:75)
    14. UnityEditor.PackageManager.UI.PackageManagerWindow.<SetupCollection>b__13_0 (UnityEditor.PackageManager.UI.PackageFilter filter, System.Collections.Generic.IEnumerable`1[T] packages) (at C:/Program Files/Unity/Hub/Editor/2019.1.0b3/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.package-manager-ui/Editor/Sources/UI/PackageManagerWindow.cs:96)
    15. UnityEditor.PackageManager.UI.PackageCollection.TriggerPackagesChanged () (at C:/Program Files/Unity/Hub/Editor/2019.1.0b3/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.package-manager-ui/Editor/Sources/Services/Packages/PackageCollection.cs:167)
    16. UnityEditor.PackageManager.UI.PackageCollection.UpdatePackageCollection (System.Boolean rebuildDictionary) (at C:/Program Files/Unity/Hub/Editor/2019.1.0b3/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.package-manager-ui/Editor/Sources/Services/Packages/PackageCollection.cs:162)
    17. UnityEditor.PackageManager.UI.PackageCollection.<FetchSearchCache>b__50_0 () (at C:/Program Files/Unity/Hub/Editor/2019.1.0b3/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.package-manager-ui/Editor/Sources/Services/Packages/PackageCollection.cs:218)
    18. UnityEditor.PackageManager.UI.UpmBaseOperation.FinalizeOperation () (at C:/Program Files/Unity/Hub/Editor/2019.1.0b3/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.package-manager-ui/Editor/Sources/Services/Upm/UpmBaseOperation.cs:227)
    19. UnityEditor.PackageManager.UI.UpmBaseOperation.OnDone () (at C:/Program Files/Unity/Hub/Editor/2019.1.0b3/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.package-manager-ui/Editor/Sources/Services/Upm/UpmBaseOperation.cs:221)
    20. UnityEditor.PackageManager.UI.UpmBaseOperation.Progress () (at C:/Program Files/Unity/Hub/Editor/2019.1.0b3/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.package-manager-ui/Editor/Sources/Services/Upm/UpmBaseOperation.cs:180)
    21. UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:200)
    22.  
    Then it is very difficult to install packages as it often leads to buttons being grayed out in "installing" state. I'm not even sure packages are being installed.

    I tried on two distinct projects and also with 2019.2 and same thing; Package Manager seems unstable.

    Cheers!
     
  2. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    848
    Same issue (in addition, with PM freezing, but freezing can be result of staging-packages usage)
     
  3. maximeb_unity

    maximeb_unity

    Unity Technologies

    Joined:
    Mar 20, 2018
    Posts:
    59
    Hi @alexandre-fiset and @eizenhorn,

    Thanks for the report, we're looking into this. Can you please let me know which version of the
    com.unity.package-manager-ui
    dependency is listed in your project manifest? (It's the file located at
    <your project>/Packages/manifest.json
    )
     
  4. maximeb_unity

    maximeb_unity

    Unity Technologies

    Joined:
    Mar 20, 2018
    Posts:
    59
    In the meantime, a possible workaround would be to change your Language & Regional settings and set the number format to use '.' as decimal separators rather than ','. Alternatively, you can try to embed the package by copying it from e.g.
    C:/Program Files/Unity/Hub/Editor/2019.1.0b3/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.package-manager-ui
    to
    <your project>/Packages/com.unity.package-manager-ui
    and applying the following fix:

    Change PackageInfo.cs, line 76:
    Code (CSharp):
    1. var version = Convert.ToDouble(shortVersionId.Split('@')[1]);
    with
    Code (CSharp):
    1. var version = Convert.ToDouble(shortVersionId.Split('@')[1], System.Globalization.CultureInfo.CreateSpecificCulture("en-US"));
    (As reported by @Djayp at https://forum.unity.com/threads/sol...1-1-not-working-with-most-cultureinfo.627076/ - thank you!)
     
    Rallix and Djayp like this.
  5. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    848
    @maximeb_unity yeah found problem with culture info, it's not a big problem. But big problem if I use staging packages PM just freezes whole Unity :) PM 2.0.3 version before open in 2019.1.0b3, after open - PM 2.1.1, And this new error in 2019.1 which I saw
    upload_2019-2-14_14-4-13.png
     
  6. maximeb_unity

    maximeb_unity

    Unity Technologies

    Joined:
    Mar 20, 2018
    Posts:
    59
    @eizenhorn,

    First of all, thank you for taking the time to report these issues.

    We're already aware of the issue when using the staging registry. Please note that the staging registry is reserved for internal validation and testing, and even though it's currently publicly-accessible, it should not be relied on to always be available.

    The last error you posted is indeed new. Would you mind reporting it using the Help > Report a Bug functionality, and posting the issue number here?
     
  7. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    848
    Done - Case 1127588
     
    LeonhardP likes this.