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

Package: Build Pipeline - Addressables

-

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)

  1. 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.

Comments (1)

  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

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.