VRMConverterForVRChat icon indicating copy to clipboard operation
VRMConverterForVRChat copied to clipboard

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

Open nuko6925 opened this issue 2 years ago • 6 comments

Unity Editor: 2019.4.31f1 VRM Converter for VRChat: 38.2.1 UniVRM: 0.99.4

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary2[TKey,TValue].get_Item (TKey key) [0x0001e] in <eae584ce26bc40229c1b1aa476bfa589>:0 at VRM.VRMBoneNormalizer+<>c__DisplayClass2_0.<CopyVRMComponents>b__1 (UnityEngine.Transform x) [0x00000] in C:\Users\YuzuN\AppData\Local\VRChatProjects\mamehinata\Library\PackageCache\[email protected]\Runtime\SkinnedMeshUtility\VRMBoneNormalizer.cs:179 at System.Linq.Enumerable+SelectListIterator2[TSource,TResult].ToList () [0x0002a] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x0001f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at VRM.VRMBoneNormalizer.CopyVRMComponents (UnityEngine.GameObject go, UnityEngine.GameObject root, System.Collections.Generic.Dictionary2[TKey,TValue] map) [0x001f5] in C:\Users\YuzuN\AppData\Local\VRChatProjects\mamehinata\Library\PackageCache\[email protected]\Runtime\SkinnedMeshUtility\VRMBoneNormalizer.cs:179 at VRM.VRMBoneNormalizer.Execute (UnityEngine.GameObject go, System.Boolean forceTPose) [0x00085] in C:\Users\YuzuN\AppData\Local\VRChatProjects\mamehinata\Library\PackageCache\[email protected]\Runtime\SkinnedMeshUtility\VRMBoneNormalizer.cs:109 at VRM.VRMEditorExporter.Export (UnityEngine.GameObject exportRoot, VRM.VRMMetaObject meta, VRM.VRMExportSettings settings, System.Collections.Generic.List1[T] destroy) [0x001e5] in C:\Users\YuzuN\AppData\Local\VRChatProjects\mamehinata\Library\PackageCache\[email protected]\Editor\Format\VRMEditorExporter.cs:199 at VRM.VRMEditorExporter.Export (UnityEngine.GameObject exportRoot, VRM.VRMMetaObject meta, VRM.VRMExportSettings settings) [0x00008] in C:\Users\YuzuN\AppData\Local\VRChatProjects\mamehinata\Library\PackageCache\[email protected]\Editor\Format\VRMEditorExporter.cs:24 at Esperecyan.Unity.VRMConverterForVRChat.VRChatToVRM.VRChatToVRMConverter.Convert (System.String version, System.String outputPath, UnityEngine.GameObject instance, VRM.VRMMetaObject meta, System.Collections.Generic.IDictionary2[TKey,TValue] presetVRChatBindingPairs, System.Boolean keepUnusedShapeKeys) [0x00245] in C:\Users\YuzuN\AppData\Local\VRChatProjects\mamehinata\Library\PackageCache\[email protected]\Editor\VRChatToVRM\VRChatToVRMConverter.cs:188 at Esperecyan.Unity.VRMConverterForVRChat.UI.VRChatToVRMWizard.OnWizardCreate () [0x001c4] in C:\Users\YuzuN\AppData\Local\VRChatProjects\mamehinata\Library\PackageCache\[email protected]\Editor\UI\VRChatToVRMWizard.cs:315 at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in :0 at System.Collections.Generic.Dictionary2[TKey,TValue].get_Item (TKey key) [0x0001e] in <eae584ce26bc40229c1b1aa476bfa589>:0 at VRM.VRMBoneNormalizer+<>c__DisplayClass2_0.<CopyVRMComponents>b__1 (UnityEngine.Transform x) [0x00000] in C:\Users\YuzuN\AppData\Local\VRChatProjects\mamehinata\Library\PackageCache\[email protected]\Runtime\SkinnedMeshUtility\VRMBoneNormalizer.cs:179 at System.Linq.Enumerable+SelectListIterator2[TSource,TResult].ToList () [0x0002a] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x0001f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at VRM.VRMBoneNormalizer.CopyVRMComponents (UnityEngine.GameObject go, UnityEngine.GameObject root, System.Collections.Generic.Dictionary2[TKey,TValue] map) [0x001f5] in C:\Users\YuzuN\AppData\Local\VRChatProjects\mamehinata\Library\PackageCache\[email protected]\Runtime\SkinnedMeshUtility\VRMBoneNormalizer.cs:179 at VRM.VRMBoneNormalizer.Execute (UnityEngine.GameObject go, System.Boolean forceTPose) [0x00085] in C:\Users\YuzuN\AppData\Local\VRChatProjects\mamehinata\Library\PackageCache\[email protected]\Runtime\SkinnedMeshUtility\VRMBoneNormalizer.cs:109 at VRM.VRMEditorExporter.Export (UnityEngine.GameObject exportRoot, VRM.VRMMetaObject meta, VRM.VRMExportSettings settings, System.Collections.Generic.List1[T] destroy) [0x001e5] in C:\Users\YuzuN\AppData\Local\VRChatProjects\mamehinata\Library\PackageCache\[email protected]\Editor\Format\VRMEditorExporter.cs:199 at VRM.VRMEditorExporter.Export (UnityEngine.GameObject exportRoot, VRM.VRMMetaObject meta, VRM.VRMExportSettings settings) [0x00008] in C:\Users\YuzuN\AppData\Local\VRChatProjects\mamehinata\Library\PackageCache\[email protected]\Editor\Format\VRMEditorExporter.cs:24 at Esperecyan.Unity.VRMConverterForVRChat.VRChatToVRM.VRChatToVRMConverter.Convert (System.String version, System.String outputPath, UnityEngine.GameObject instance, VRM.VRMMetaObject meta, System.Collections.Generic.IDictionary2[TKey,TValue] presetVRChatBindingPairs, System.Boolean keepUnusedShapeKeys) [0x00245] in C:\Users\YuzuN\AppData\Local\VRChatProjects\mamehinata\Library\PackageCache\[email protected]\Editor\VRChatToVRM\VRChatToVRMConverter.cs:188 at Esperecyan.Unity.VRMConverterForVRChat.UI.VRChatToVRMWizard.OnWizardCreate () [0x001c4] in C:\Users\YuzuN\AppData\Local\VRChatProjects\mamehinata\Library\PackageCache\[email protected]\Editor\UI\VRChatToVRMWizard.cs:315 at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in :0

nuko6925 avatar Feb 20 '23 17:02 nuko6925

ご報告有り難うございます。 こちらは、UniVRMの「Export to VRM 0.x」でVRMエクスポートした場合にもエラーは発生しますか?

esperecyan avatar Feb 20 '23 23:02 esperecyan

発生しません。

nuko6925 avatar Feb 21 '23 07:02 nuko6925

こちらの問題を再現できる手順はありますか?

esperecyan avatar Feb 21 '23 07:02 esperecyan

分かりません。 私の環境では再現出来ますが、VRChatアバターのまめひなたを改変したものをVRMへ変換しようとしています。

nuko6925 avatar Feb 21 '23 08:02 nuko6925

こちらのバグですが、同様にまめひなたの改変をVRM変換しようとした際に再現しました。 アバター特有のやつと思います。

tokiwoousaka avatar Dec 04 '23 13:12 tokiwoousaka

UniGLTFのメッシュの取り扱いが大きく変わり、VRM Converter for VRChat内のメッシュ処理コードがかなり減りました。 もしかしたらこちらの問題が解消しているかもしれません。 VRM Converter for VRChat v41.0.0でも問題が発生するか試してもらえないでしょうか?

esperecyan avatar Feb 23 '24 08:02 esperecyan

返信がないため閉じます。

esperecyan avatar Jun 15 '24 10:06 esperecyan