Addressable 빌드중 에러 발생

고객님의 문의에 답변하는 직원은 고객 여러분의 가족 중 한 사람일 수 있습니다.
고객의 언어폭력(비하, 조롱, 욕설, 협박, 성희롱 등)으로부터 직원을 보호하기 위해
관련 법에 따라 수사기관에 필요한 조치를 요구할 수 있으며, 형법에 의해 처벌 대상이 될 수 있습니다.

커뮤니티 이용 정책에 위배되는 게시물을 작성할 경우, 별도 안내 없이 게시물 삭제 또는 커뮤니티 이용이 제한될 수 있습니다.

문의 응대 : 평일 오전 10시 ~ 오후 6시
문의를 남기실 경우 다음 항목을 작성해 주세요.
정보가 부족하거나 응대시간 외 문의하는 경우 확인 및 답변이 지연될 수 있습니다.

  • 뒤끝 SDK 버전 : 5.9.4
  • 프로젝트명 : 다크스톤
  • 스테이터스 코드 :
  • 에러 코드 :
  • 에러 메시지 :

어드레서블 빌드시 하기와 같이 에러가 나는데 이유를 알수 있을 까요?

///
Failed to find entry-points:
System.Exception: Error while hashing assembly F:\UnityProject\DarkStone_Ver0.1\Assets\TheBackend\Plugins\Backend.dll —> System.ArgumentException: An item with the same key has already been added. Key: ab51592ddff0ec7816dcd0bf7a6a095b
at System.Collections.Generic.Dictionary2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000dd] in <27586baf39bf4babbfd8a2caabe8e228>:0 at System.Collections.Generic.Dictionary2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <27586baf39bf4babbfd8a2caabe8e228>:0
at Burst.Compiler.IL.Hashing.Storage.NameToTokenDictionary.AddHash (Burst.Compiler.IL.Helpers.Hash128& hash, System.Int32 token) [0x00000] in :0
at Burst.Compiler.IL.Hashing.CacheBuilder.ILHasher.HashImpl () [0x0022c] in :0
at Burst.Compiler.IL.Hashing.CacheBuilder.ILHasher.HashAssembly (System.String filePath, System.Threading.Tasks.TaskFactory taskFactory) [0x00008] in :0
— End of inner exception stack trace —
at Burst.Compiler.IL.Hashing.CacheBuilder.ILHasher.HashAssembly (System.String filePath, System.Threading.Tasks.TaskFactory taskFactory) [0x0002d] in :0
at Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheLoader.CreateHashingResult (Mono.Cecil.AssemblyNameReference assemblyNameReference, Burst.Compiler.IL.AssemblyLoader assemblyLoader, Burst.Compiler.IL.Helpers.DebugLogWriter debugLogWriter) [0x001b1] in :0
at Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheAssemblyStore.GetAssemblyState (System.String assemblyName, Burst.Compiler.IL.AssemblyLoader assemblyLoader) [0x000a0] in :0
at Burst.Compiler.IL.Server.EntryPointMethodFinder.LoadAllAssemblyReferences (Mono.Cecil.AssemblyDefinition asmDef, System.Collections.Generic.Dictionary2[TKey,TValue] visited, System.Collections.Generic.Dictionary2[TKey,TValue] jobProducers, Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheAssemblyStore assemblyStore, Burst.Compiler.IL.AssemblyLoader assemblyLoader) [0x00025] in :0
at Burst.Compiler.IL.Server.EntryPointMethodFinder.LoadAllAssemblyReferences (Mono.Cecil.AssemblyDefinition asmDef, System.Collections.Generic.Dictionary2[TKey,TValue] visited, System.Collections.Generic.Dictionary2[TKey,TValue] jobProducers, Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheAssemblyStore assemblyStore, Burst.Compiler.IL.AssemblyLoader assemblyLoader) [0x001e3] in :0
at Burst.Compiler.IL.Server.EntryPointMethodFinder.FindEntryPoints (System.String[] rootAssemblyNames, Burst.Compiler.IL.Hashing.CacheRuntime.HashCacheAssemblyStore assemblyStore, Burst.Compiler.IL.AssemblyLoader assemblyLoader, Burst.Compiler.IL.NativeCompilerOptions options, Burst.Compiler.IL.Server.ProfileDelegate profileCallback, System.Boolean includeRootAssemblyReferences, System.Boolean splitTargets) [0x00071] in :0
at Burst.Compiler.IL.Server.FindMethodsJob.Execute (Burst.Compiler.IL.Server.CompilerServerJobExecutionContext context) [0x0011e] in :0

While compiling job:

유니티 에디터 최신꺼 쓰시나요? 아님 2022?
2021.3. 으로 낮추세요 저도 옛날에 최신 에디터 다운받았다가 Burst 오류 뜬적있어요

좋아요 1

앗…감사합니다! 당장 시도해볼께요 ^^

2021.3.5f1으로 시도하였으나 동일한 결과입니다
아마 Backend.dll에서 어떻한 key값으로 Dictionary를 사용하고 있는데 그 key값이 어딘가와 중복되는것으로 보입니다
운영자님 혹시 관련하여 해결할 수 있는 방법이 있다면 알려주시면 감사하겠습니다

하기와 같이 burst 1.8.4에서 고쳐질 거라고 했지만 burst 1.8.4에서도 동일한 문제가 발생합니다
어떤 개발자는 dll을 만든 개발자쪽에서 고쳐줘서 fix했다는 리플도 보입니다
https://forum.unity.com/threads/error-after-update-to-unity-2021-3-16f1-lts.1374864/

유니티에 해당 thread를 통해서 bug report를 송신한 뒤 추가 문의해보겠습니다

뒤끝쪽에서도 해당 문제 확인부탁드립니다

유니티버전 2021.3.15f1 과 Burst 1.7.3버전에서 정상 작동함을 확인하였습니다

좋아요 1

안녕하세요 개발자님.

Burst 1.8.3의 경우, 뒤끝 외에도 다른 dll들 또한 에러가 발생하는 문제를 파악하였고, 해당 부분을 유니티 측에서 픽스할 것이라는 의견을 받았습니다.

그러나 Burst 1.8.4에서도 고쳐지지 않아 Backend.dll에 대한 픽스가 필요한지 해당 부분 확인해보도록 하겠습니다.
다만 해당 에러는 유니티측에서도 문의가 필요한 내용이기에 시간이 걸릴 수 있는 점 참고해주시면 감사하겠습니다.

좋아요 1