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)
Comments (1)
-
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
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
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.