Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
1.19.18
Issue ID
ADDR-2624
Regression
No
InvalidKeyException' is thrown when key is a String Array in DownloadDependenciesAsync method
Reproduction steps:
1. Open the attached 'New Unity Project'
2. Open the 'AddressablesExample' Scene
3. Go to the 'Window -> Asset Management -> Addressables -> Groups'
4. 'Build -> Clean Build -> All'
5. 'Build -> New Build -> Default Build Script'
6. Enter Play mode
Expected result: No errors are in the Console
Actual result: 'InvalidKeyException' is thrown in the Console
Reproducible with: 1.19.17 (2019.4.36f1), 1.19.18 (2019.4.36f1, 2020.3.30f1, 2021.2.14f1, 2022.1.0b10, 2022.2.0a7)
Full error:
UnityEngine.AddressableAssets.InvalidKeyException: Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown., Key=default, Type=System.Object
UnityEngine.AddressableAssets.Addressables:DownloadDependenciesAsync (object,bool)
AddressablesExample/<Start>d__0:MoveNext () (at Assets/AddressablesExample.cs:14)
UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr) (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/Coroutines.cs:17)
-
vat0914
Nov 09, 2023 16:46
faced the same problem.
It worked before, but later 'Asset bunld' remote control became impossible with the above error.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Spot Light with 'Box' Shape stops working when it collides with Mesh
- Accepting Asset Store EULA endless loop in Package Manager window
- “InvalidOperationException: Sequence contains no matching element“ error when reenabling a custom Debug Draw Mode
- Prefab that contains a layout group is marked as changed by the Editor when opened
- Emission animation does not appear when the "Emission Map" parameter is set to black in a Lit material
Resolution Note:
The issue is an awkwardness with the API. If you use the DownloadDependenciesAsync override that includes MergeMode as one of the parameters, it should work as expected.