Search Issue Tracker
Active
Under Consideration for 4.0.X
Votes
0
Found in [Package]
4.0.1
Issue ID
APB-50
Regression
Yes
"ArgumentNullException: Value cannot be null." error is thrown after pressing "Go to Settings" button in the "No Adaptive Performance provider found" pop-up window
*Steps to reproduce:*
1. Create a project using 2D Mobile or 3D Mobile templates
2. Build And Run the Project
3. Wait until "No Adaptive Performance provider found" window pops up and press "Go to Settings" button
4. Observe the Console
*Actual results:* "ArgumentNullException: Value cannot be null." error is thrown
*Expected results:* No warnings or errors are thrown
*Reproducible with versions:* 4.0.1 (2022.1.0a14, 2022.3.53f1), 5.0.0 (2022.3.53f1)
*Not reproducible with versions:* 5.0.1 (2022.3.53f1) 5.1.0 (6000.0.28f1), 4.0.1 (2021.3.45f1, 2022.1.0a13)
*Can't test with versions:* 6000.1.0a5 (Build errors)
*Tested on (OS):* macOS Sonoma 14.7 (M1)
*Notes:*
* Full error:
{code:java}
ArgumentNullException: Value cannot be null.
Parameter name: key
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <b41efef47d3b4ee7904c28860bf6ccb8>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <b41efef47d3b4ee7904c28860bf6ccb8>:0)
System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement] (TSource[] source, System.Func`2[T,TResult] keySelector, System.Func`2[T,TResult] elementSelector, System.Collections.Generic.IEqualityComparer`1[T] comparer) (at <e579893911db4d359521f37348f1e762>:0)
System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector, System.Func`2[T,TResult] elementSelector, System.Collections.Generic.IEqualityComparer`1[T] comparer) (at <e579893911db4d359521f37348f1e762>:0)
System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector, System.Func`2[T,TResult] elementSelector) (at <e579893911db4d359521f37348f1e762>:0)
UnityEditor.PackageManager.UI.Internal.PageSelection.SetNewSelection (System.Collections.Generic.IEnumerable`1[T] packageAndVersionIds) (at /Users/bokken/buildslave/unity/build/Modules/PackageManagerUI/Editor/UI/Common/PageSelection.cs:33)
UnityEditor.PackageManager.UI.Internal.BasePage.SetNewSelection (System.Collections.Generic.IEnumerable`1[T] packageAndVersionIds) (at /Users/bokken/buildslave/unity/build/Modules/PackageManagerUI/Editor/UI/Common/BasePage.cs:185)
UnityEditor.PackageManager.UI.Internal.PageManager.SetSelected (System.Collections.Generic.IEnumerable`1[T] newSelection, System.Boolean forceSelectInInspector) (at /Users/bokken/buildslave/unity/build/Modules/PackageManagerUI/Editor/UI/Common/PageManager.cs:348)
UnityEditor.PackageManager.UI.Internal.PageManager.SetSelected (UnityEditor.PackageManager.UI.Internal.IPackage package, UnityEditor.PackageManager.UI.Internal.IPackageVersion version, System.Boolean forceSelectInInspector) (at /Users/bokken/buildslave/unity/build/Modules/PackageManagerUI/Editor/UI/Common/PageManager.cs:342)
UnityEditor.PackageManager.UI.Internal.PackageManagerWindowRoot.SelectPackageAndFilter () (at /Users/bokken/buildslave/unity/build/Modules/PackageManagerUI/Editor/UI/PackageManagerWindowRoot.cs:311)
UnityEditor.PackageManager.UI.Internal.PackageManagerWindowRoot.SelectPackageAndFilter (System.String packageToSelect, System.Nullable`1[T] filterTab, System.Boolean refresh, System.String searchText) (at /Users/bokken/buildslave/unity/build/Modules/PackageManagerUI/Editor/UI/PackageManagerWindowRoot.cs:393)
UnityEditor.PackageManager.UI.PackageManagerWindow.SelectPackageAndFilterStatic (System.String packageToSelect, System.Nullable`1[T] filterTab, System.Boolean refresh, System.String searchText) (at /Users/bokken/buildslave/unity/build/Modules/PackageManagerUI/Editor/UI/PackageManagerWindow.cs:305)
UnityEditor.PackageManager.UI.PackageManagerWindow.OpenPackageManager (System.String packageToSelect) (at /Users/bokken/buildslave/unity/build/Modules/PackageManagerUI/Editor/UI/PackageManagerWindow.cs:227)
UnityEditor.PackageManager.UI.Window.Open (System.String packageToSelect) (at /Users/bokken/buildslave/unity/build/Modules/PackageManagerUI/Editor/UI/PackageManagerWindow.cs:37)
UnityEditor.AdaptivePerformance.Editor.AdaptivePerformanceGeneralBuildProcessor.CheckInstalledPackages () (at Library/PackageCache/com.unity.adaptiveperformance@4.0.1/Editor/Management/AdaptivePerformanceGeneralBuildProcessor.cs:94)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorApplication.cs:357) {code}
* "No Adaptive Performance provider package installed. Adaptive Performance requires a provider to get information during runtime. Please install a provider such as Adaptive Performance Samsung (Android) from the Adaptive Performance Settings.
UnityEditor.EditorApplication:Internal_CallUpdateFunctions () (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorApplication.cs:357)" warning is thrown if "Ignore" button is pressed
* Regression is in the Editor version, not the package version
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Undoing the branch rotation resets only wireframe and not mesh when undoing the action first time after launching the project
- Asset Bundles retain their previous hash and CRC values when an object within a bundle is changed and rebuilt
- APV Reflection Probe Normalization breaks when SSGI is enabled
- Default Custom Components in project have Library counterparts
- [iOS]"The destination host has an erroneous SSL certificate" error is thrown when using UnityWebRequest to connect to the server with a self-signed certificate
Add comment