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
- Skinned Mesh Renderer with multiple Animator Components does not render when "Optimize Game Objects" is enabled
- [iOS]Certain characters are not displayed when using iOS devices with 18 OS and newer
- Trees do not render in 'Unity Terrain - URP Demo Scene'
- Silent crash when clicking in Scene View in a specific project
- The Player renders black on a Quest headset when MSAA, Post Processing, and Spacewarm depth submission are enabled
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.