Thanks to visit codestin.com
Credit goes to github.com

Skip to content

OpenXR Bindings / API cannot be used #500

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

Closed
phr00t opened this issue Jun 1, 2021 · 0 comments · Fixed by #505
Closed

OpenXR Bindings / API cannot be used #500

phr00t opened this issue Jun 1, 2021 · 0 comments · Fixed by #505
Assignees
Labels
area-Vulkan bug Something isn't working
Milestone

Comments

@phr00t
Copy link

phr00t commented Jun 1, 2021

Summary

Trying to get the XRApi via GetApi() causes an exception, rendering the whole binding system unusable.

System.ArgumentNullException: 'Value cannot be null. Parameter name: key'
This exception was originally thrown at this call stack:
System.Collections.Concurrent.ConcurrentDictionary<TKey, TValue>.TryAdd(TKey, TValue)
Silk.NET.OpenXR.XR.PostInit()
Silk.NET.OpenXR.XR.XR(Silk.NET.Core.Contexts.INativeContext)
Silk.NET.OpenXR.XR.GetApi()

Steps to reproduce

Just try to call XR.GetApi()

Comments

This is where I'm trying to get the API in my engine:
https://github.com/phr00t/FocusEngine/blob/master/sources/engine/Xenko.VirtualReality/OpenXR/OpenXRHmd.cs#L142

Discord Kai (Beast) said:
"that's a big error 👀 @Perksey apparently we try to insert a null key into the concurrent dictionary"

Perksey added:
"I don’t think there’s anything you can do to work around this at the moment. The fix will involve making the key of the VTable dictionary something that isn’t null (could probably just make the key non-nullable and use default?)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Vulkan bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants