05-09-2019 11:38 PM - edited 05-09-2019 11:40 PM
Hello, I'm trying to integrate Hand Tracking SDK (0.8.0) onto my OpenVR application written in C++ and using OpenGL for rendering.
Unfortunately, my app begins to always crash within the first few frames after integration of the SDK although I could receive valid tracking data before crashing.
It looks that something wrong is occuring at IVRCompositor::Submit, because If I omit to call this, my app runs without crashing.
I've tried the UE4 plugin and found that it works fine, thus begin to suspect that there is some inconsistency issue when running the SDK on OpenVR+OpenGL based apps.
After looking into the developer forum, I found the simillar topic about SRWorks SDK which is already solved with binary modification.
Any suggestion/information is helpful!
Solved! Go to Solution.
05-13-2019 09:02 PM
I think there is one difference between Hand Tracking SDK and SRWorks SDK, that we don't actuall use DirectX and OpenGL APIs. So the problem might be different though they have similar behaviors.
Can you problem a minimum working sample for us to reproduce your error and check how to fix it in Hand Tracking SDK?
Also, I think you need to initialize OpenVR in your application first before starting Hand Tracking SDK.
05-13-2019 11:24 PM - edited 05-14-2019 02:16 AM
Thanks for your quick reply!
Based on your suggestion, I've tried to see if the problem reproduces using the openvr's official examples "hellovr_opengl" and "hellovr_dx12" (https://github.com/ValveSoftware/openvr/tree/master/samples).
The result is that "hellovr_opengl" app crashes with in the first few frames while "hellovr_dx12" app runs without any problem.
- To build them on my Windows 10 x64, I've used the solution/project files for x86 build, which are contained in the openvr samples above, and made minimal necessary modification to them for x64 build.
- Hand Tracking SDK is used following the documentation.
- StartGestureDetection at the end of CMainApplication::BInit()
- StopGestureDetection in the beginning of CMainApplication::Shutdown()
- the problem occurs even if I don't call GetGestureResult
- when the app crashes, access violation at vcruntime140.dll is sometimes reported by the debugger
I think it will not take much time to arrange them, but if you need the actual codes for further investigation, let me somehow send them to you.
05-14-2019 01:52 AM
Hi @latte_oha ,
Thanks for the info. I will try to reproduce it this week to see if I can find any solutions.
05-20-2019 06:48 PM
Thank you for the patch release!
Now Hand Tracking SDK works fine with OpenGL based apps :)