Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyNotFoundException: The given key was not present in the dictionary When importing VRM into game #2508

Open
HobdayJ opened this issue Nov 18, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@HobdayJ
Copy link

HobdayJ commented Nov 18, 2024

Environments:

  • UniVRM version: 0.128.0
  • UniVRM version: 0.112.0
  • UniVRM version: 0.104.1
  • Unity version: Unity-2021.3.16f
  • OS: Windows 10

The bug

I've trying to use a mod for a game called Raft using RAFTVRM to get my vrm model into the game, but I've been getting a repeated error when the mod loads. I'm fairly certain it's related to my model, as I've tried other models and they work fine. I've tried different UniVRM versions but haven't had any success

The Error

I've been getting this error every frame in the console.
anputerror2
(KeyNotFoundException: The given key was not present in the dictionary.
System.Collections.Generic.Dictionary'2[TKey, TValue].get_item (TKey key) (at 437ba245d8404784b9fbab9b439ac908>:0
PlayerAnimSync.Update () (at :0)
NullReferenceException: Object reference not set to an instance of an object
PlayerAnimSync.LateUpdate () (at :0))

My model looks like this.
Anputerror
I've fixed any shader issues I've had previously, but no animations.

here is the VRM1.0 that I've been using
Anput_0.12.zip

I've messaged the yoship1639 (the mod author) regarding this issue but no response, and I think it might be related to the model or exporting it from unity.
Any help would be very appreciated!

@HobdayJ HobdayJ added the bug Something isn't working label Nov 18, 2024
@HobdayJ
Copy link
Author

HobdayJ commented Nov 19, 2024

NullReferenceException: Object reference not set to an instance of an object
PlayerAnimSync+d__9.MoveNext () (at <71b8a9d6c5bd439baf5c7131e9c8d66d>:0)
--- End of stack trace from previous location where exception was thrown ---
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__6_0 (System.Object state) (at <437ba245d8404784b9fbab9b439ac908>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <0618f269b594493b97c56ba78f03373a>:0)
UnityEngine.UnitySynchronizationContext:ExecuteTasks()

Getting this error now after some version changing

@ousttrue ousttrue added this to the v0.128.1 milestone Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants