[1.6.0-pre.3] Compilation error when using 2 editors in multiplayer dev

When using for ex. GitHub - VeriorPies/ParrelSync: (Unity3D) Test multiplayer without building to run 2 editors with same project burst compilation sometimes fails:

Unexpected exception System.ArgumentException: An item with the same key has already been added. Key: 86ac0320290685d050b8f5fa5eb594b9
  at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000dd] in <fd976842c3634855aba83404a44c7daa>:0
  at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <fd976842c3634855aba83404a44c7daa>:0
  at Burst.Compiler.IL.Hashing.Storage.NameToTokenDictionary.AddHash (Burst.Compiler.IL.Helpers.Hash128& hash, System.Int32 token) [0x00000] in <0d0c210adae04534968c9f3d5876f3fd>:0
  at Burst.Compiler.IL.Hashing.CacheBuilder.ILHasher.HashImpl () [0x000ad] in <0d0c210adae04534968c9f3d5876f3fd>:0
  at Burst.Compiler.IL.Hashing.CacheBuilder.ILHasher.HashAssembly (System.String filePath) [0x00007] in <0d0c210adae04534968c9f3d5876f3fd>:0
  at Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheLoader.CreateHashingResult (System.String assemblyFilePath) [0x0007e] in <0d0c210adae04534968c9f3d5876f3fd>:0
  at Burst.Compiler.IL.Hashing.CacheRuntime.AssemblyState..ctor (Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheAssemblyStore+LoadHashingResultDelegate loadHashingResultCallback, Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheAssemblyStore+GetStringWriterDelegate getStringWriterCallback, Mono.Cecil.AssemblyNameReference assemblyName, System.String filePath, Mono.Cecil.AssemblyDefinition assemblyDefinition) [0x0000d] in <0d0c210adae04534968c9f3d5876f3fd>:0
  at Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheAssemblyStore.GetAssemblyState (System.String assemblyName, zzzUnity.Burst.CodeGen.AssemblyLoader assemblyLoader) [0x0003d] in <0d0c210adae04534968c9f3d5876f3fd>:0
  at Burst.Compiler.IL.Hashing.CacheRuntime.LocalHashCacheAssemblyStore.GetAssemblyState (System.String assemblyName) [0x00000] in <0d0c210adae04534968c9f3d5876f3fd>:0
  at Burst.Compiler.IL.Hashing.CacheRuntime.Util.TypeReferenceExtensions.GetAssemblyState (Mono.Cecil.TypeReference typeReference, Burst.Compiler.IL.Hashing.CacheRuntime.LocalHashCacheAssemblyStore assemblyStore) [0x00011] in <0d0c210adae04534968c9f3d5876f3fd>:0
  at Burst.Compiler.IL.Hashing.CacheRuntime.Util.TypeReferenceExtensions.ToILType (Mono.Cecil.TypeReference typeReference, Burst.Compiler.IL.Hashing.CacheRuntime.LocalHashCacheAssemblyStore assemblyStore) [0x001db] in <0d0c210adae04534968c9f3d5876f3fd>:0
  at Burst.Compiler.IL.Hashing.CacheRuntime.Util.MethodReferenceExtensions.ToILTypes (Mono.Collections.Generic.Collection`1[T] types, Burst.Compiler.IL.Hashing.CacheRuntime.LocalHashCacheAssemblyStore assemblyStore) [0x0001d] in <0d0c210adae04534968c9f3d5876f3fd>:0
  at Burst.Compiler.IL.Hashing.CacheRuntime.Util.MethodReferenceExtensions.CreateGenericContext (Mono.Cecil.MethodReference methodReference, Burst.Compiler.IL.Hashing.CacheRuntime.LocalHashCacheAssemblyStore assemblyStore) [0x00044] in <0d0c210adae04534968c9f3d5876f3fd>:0
  at Burst.Compiler.IL.Hashing.CacheRuntime.ILFinalHashCalculator.GetHashImpl () [0x000ad] in <0d0c210adae04534968c9f3d5876f3fd>:0
  at Burst.Compiler.IL.Hashing.CacheRuntime.ILFinalHashCalculator.GetHash (Mono.Cecil.MethodReference[] methodReferences, Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheAssemblyStore assemblyStore, zzzUnity.Burst.CodeGen.AssemblyLoader assemblyLoader, Burst.Compiler.IL.NativeCompilerOptions options, System.Action`2[T1,T2] onVisitItem) [0x0000c] in <0d0c210adae04534968c9f3d5876f3fd>:0
  at Burst.Compiler.IL.NativeCompiler.ComputeHash () [0x0004e] in <0d0c210adae04534968c9f3d5876f3fd>:0
  at Burst.Compiler.IL.Jit.JitCompiler.CompileMethodInternal (Burst.Compiler.IL.Jit.JitResult result, System.Collections.Generic.List`1[T] methodsToCompile, Burst.Compiler.IL.Jit.JitOptions jitOptions) [0x0017e] in <0d0c210adae04534968c9f3d5876f3fd>:0
  at Burst.Compiler.IL.Jit.JitCompiler.CompileMethods (Burst.Compiler.IL.Jit.JitMethodGroupRequest& request, Burst.Compiler.IL.Jit.JitCompilationRequestType requestType) [0x00209] in <0d0c210adae04534968c9f3d5876f3fd>:0
  at Burst.Compiler.IL.Jit.JitCompiler.CompileMethod (Burst.Compiler.IL.Jit.MethodReferenceWithMethodRefString method, Burst.Compiler.IL.Jit.JitOptions jitOptions, Burst.Compiler.IL.Jit.JitCompilationRequestType requestType) [0x00023] in <0d0c210adae04534968c9f3d5876f3fd>:0
  at Burst.Compiler.IL.Jit.JitCompilerService+CompilerThreadContext.Compile (Burst.Compiler.IL.Jit.JitCompilerService+CompileJob job, Burst.Compiler.IL.Jit.JitCompilationRequestType requestType) [0x00491] in <0d0c210adae04534968c9f3d5876f3fd>:0

While compiling job: System.Void Unity.Jobs.IJobExtensions/JobStruct`1<ClipInfo/GetLoudnessJob>::Execute(T&,System.IntPtr,System.IntPtr,Unity.Jobs.LowLevel.Unsafe.JobRanges&,System.Int32)
at <empty>:line 0

#Edit
I’m not sure if it’s related to using 2 editors as sometimes it appears when running only one.

Hi @Kamyker - if it happens again, please could you submit a bug report in the Editor via Help > Report a Bug? From what I can tell from that error message, we would need to see the actual code in order to diagnose the problem.

Hi, somehow it stopped happening. Not sure if I changed something or 2021.2b7 update fixed it.