Error during "Check Duplicate Bundle Dependencies"

Hi I am getting an error when I try to run this default analyze rule.

Stack Trace

ArgumentNullException: Value cannot be null.
Parameter name: key
System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) (at <567df3e0919241ba98db88bec4c6696f>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].TryGetValue (TKey key, TValue& value) (at <567df3e0919241ba98db88bec4c6696f>:0)
UnityEditor.AddressableAssets.Build.BuildPipelineTasks.GenerateLocationListsTask.Run (UnityEditor.AddressableAssets.Build.DataBuilders.IAddressableAssetsBuildContext aaBuildContext, UnityEditor.Build.Pipeline.Interfaces.IBundleWriteData writeData) (at Library/PackageCache/com.unity.addressables@1.3.8/Editor/Build/BuildPipelineTasks/GenerateLocationListsTask.cs:91)
UnityEditor.AddressableAssets.Build.AnalyzeRules.BundleRuleBase.RefreshBuild (UnityEditor.AddressableAssets.Build.DataBuilders.AddressableAssetsBuildContext buildContext) (at Library/PackageCache/com.unity.addressables@1.3.8/Editor/Build/AnalyzeRules/BundleRuleBase.cs:102)
UnityEditor.AddressableAssets.Build.AnalyzeRules.CheckBundleDupeDependencies.CheckForDuplicateDependencies (UnityEditor.AddressableAssets.Settings.AddressableAssetSettings settings) (at Library/PackageCache/com.unity.addressables@1.3.8/Editor/Build/AnalyzeRules/CheckBundleDupeDependencies.cs:58)
UnityEditor.AddressableAssets.Build.AnalyzeRules.CheckBundleDupeDependencies.RefreshAnalysis (UnityEditor.AddressableAssets.Settings.AddressableAssetSettings settings) (at Library/PackageCache/com.unity.addressables@1.3.8/Editor/Build/AnalyzeRules/CheckBundleDupeDependencies.cs:40)
UnityEditor.AddressableAssets.GUI.AssetSettingsAnalyzeTreeView.<RunAllSelectedRules>b__6_0 (UnityEditor.AddressableAssets.GUI.AnalyzeRuleContainerTreeViewItem ruleContainer) (at Library/PackageCache/com.unity.addressables@1.3.8/Editor/GUI/AssetSettingsAnalyzeTreeView.cs:77)
UnityEditor.AddressableAssets.GUI.AssetSettingsAnalyzeTreeView.PerformActionForEntireRuleSelection (System.Action`1[T] action) (at Library/PackageCache/com.unity.addressables@1.3.8/Editor/GUI/AssetSettingsAnalyzeTreeView.cs:65)
UnityEditor.AddressableAssets.GUI.AssetSettingsAnalyzeTreeView.RunAllSelectedRules () (at Library/PackageCache/com.unity.addressables@1.3.8/Editor/GUI/AssetSettingsAnalyzeTreeView.cs:72)
UnityEditor.AddressableAssets.GUI.AnalyzeRuleGUI.<OnGUI>b__17_0 () (at Library/PackageCache/com.unity.addressables@1.3.8/Editor/GUI/AnalyzeRuleGUI.cs:99)
UnityEditor.EditorApplication.Internal_CallDelayFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:312)

This was working totally fine for a while, then I added a couple things to a group and then it started giving me this error and stopped working. Removing those items from the group did not resolve it.

It also reset all my individual group schemas!

It seems to be trying to find a group that it thinks doesn’t exist? Not sure where to go from here. Any ideas?

Unity 2019.2.11f1
Addressables v1.3.8

Update: The error was coming from this bit of code in GenerateLocationListsTask.cs

foreach (var kvp in bundleToAssets)
            {
                AddressableAssetGroup assetGroup = aaSettings.DefaultGroup;
                string groupGuid;
                if (bundleToAssetGroup.TryGetValue(kvp.Key, out groupGuid))
                    assetGroup = aaSettings.FindGroup(g => g.Guid == groupGuid);

                List<string> bundles;
                if (!assetGroupToBundle.TryGetValue(assetGroup, out bundles))
                    assetGroupToBundle.Add(assetGroup, bundles = new List<string>());
                bundles.Add(kvp.Key);
                HashSet<string> bundleDeps = null;
                dependencySetForBundle.TryGetValue(kvp.Key, out bundleDeps);
                CreateResourceLocationData(assetGroup, kvp.Key, GetLoadPath(assetGroup, kvp.Key), GetBundleProviderName(assetGroup), GetAssetProviderName(assetGroup), kvp.Value, bundleDeps, locations, aaContext.providerTypes);
            }

by logging out the kvp.Key I was able to track down it was getting stuck on certain bundles inside a specific group. Deleting that group and recreating it resolved the issue.

There wasn’t any different settings or anything on that group that I could see, so I am unclear on what was causing it to have issues. But it seems it just needed to be reset.

Hm, that’s odd. I’ll take a look into that. I can’t remember anything with Analyze changing very recently so I’m unsure what would have caused that. If you have any other info feel free to post it here