Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

KeyNotFoundException Error When Using Analyze in 1.1.4

Discussion in 'Addressables' started by Greyborn, Jul 13, 2019.

  1. Greyborn

    Greyborn

    Joined:
    May 26, 2016
    Posts:
    54
    We recently started to convert our project to use Addressables and have run into an issue. We started with v 0.8.6 and things were working fine as we set up our addressable assets. However, we just updated to v1.1.4 and ran into an issue where using the Analyzer now causes an error when analyzing the "Unfixable Rules" (below). However, when reverting back down to 0.8.6 the error goes away and things work fine again.

    Is this a known issue? Anything I can do to further troubleshoot the problem to resolve it?

    Note: using Unity 2018.4.1f1

    Error:
    KeyNotFoundException: The given key was not present in the dictionary.
    System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
    UnityEditor.AddressableAssets.Build.AnalyzeRules.CheckDupeDependenciesBase.<CalculateBuiltInResourceDependenciesToBundleDependecies>b__15_5 (<>f__AnonymousType7`2[<<>h__TransparentIdentifier0>j__TPar,<assetPath>j__TPar] <>h__TransparentIdentifier1) (at Library/PackageCache/com.unity.addressables@1.1.4-preview/Editor/Build/AnalyzeRules/CheckDupeDependenciesBase.cs:224)
    System.Linq.Utilities+<>c__DisplayClass2_0`3[TSource,TMiddle,TResult].<CombineSelectors>b__0 (TSource x) (at <1b13ba6391c74847bbc3eddc86df7eee>:0)
    System.Linq.Enumerable+SelectEnumerableIterator`2[TSource,TResult].MoveNext () (at <1b13ba6391c74847bbc3eddc86df7eee>:0)
    System.Linq.Enumerable+<SelectManyIterator>d__167`3[TSource,TCollection,TResult].MoveNext () (at <1b13ba6391c74847bbc3eddc86df7eee>:0)
    System.Linq.Enumerable+SelectEnumerableIterator`2[TSource,TResult].ToList () (at <1b13ba6391c74847bbc3eddc86df7eee>:0)
    System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) (at <1b13ba6391c74847bbc3eddc86df7eee>:0)
    UnityEditor.AddressableAssets.Build.AnalyzeRules.CheckDupeDependenciesBase.CalculateBuiltInResourceDependenciesToBundleDependecies (UnityEditor.AddressableAssets.Settings.AddressableAssetSettings settings, System.String[] builtInResourcesPaths) (at Library/PackageCache/com.unity.addressables@1.1.4-preview/Editor/Build/AnalyzeRules/CheckDupeDependenciesBase.cs:220)
    UnityEditor.AddressableAssets.Build.AnalyzeRules.CheckSceneDupeDependencies.RefreshAnalysis (UnityEditor.AddressableAssets.Settings.AddressableAssetSettings settings) (at Library/PackageCache/com.unity.addressables@1.1.4-preview/Editor/Build/AnalyzeRules/CheckSceneDupeDependencies.cs:30)
    UnityEditor.AddressableAssets.GUI.AssetSettingsAnalyzeTreeView.<RunAllSelectedRules>b__6_0 (UnityEditor.AddressableAssets.GUI.AnalyzeRuleContainerTreeViewItem ruleContainer) (at Library/PackageCache/com.unity.addressables@1.1.4-preview/Editor/GUI/AssetSettingsAnalyzeTreeView.cs:76)
    UnityEditor.AddressableAssets.GUI.AssetSettingsAnalyzeTreeView.PerformActionForEntireRuleSelection (System.Action`1[T] action) (at Library/PackageCache/com.unity.addressables@1.1.4-preview/Editor/GUI/AssetSettingsAnalyzeTreeView.cs:65)
    UnityEditor.AddressableAssets.GUI.AssetSettingsAnalyzeTreeView.RunAllSelectedRules () (at Library/PackageCache/com.unity.addressables@1.1.4-preview/Editor/GUI/AssetSettingsAnalyzeTreeView.cs:72)
    UnityEditor.AddressableAssets.GUI.AnalyzeRuleGUI.<OnGUI>b__17_0 () (at Library/PackageCache/com.unity.addressables@1.1.4-preview/Editor/GUI/AnalyzeRuleGUI.cs:99)
    UnityEditor.EditorApplication.Internal_CallDelayFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:209)
     
    Last edited: Jul 15, 2019
  2. unity_bill

    unity_bill

    Unity Technologies

    Joined:
    Apr 11, 2017
    Posts:
    998
    Thanks for letting us know, we'll look into this.
     
unityunity