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

I can't use body tracking in Unity #76

Closed
tayamaYuto opened this issue May 19, 2024 · 21 comments
Closed

I can't use body tracking in Unity #76

tayamaYuto opened this issue May 19, 2024 · 21 comments

Comments

@tayamaYuto
Copy link

I was performing Body Tracking using Unity-Movement, but the following warning occurred, and I was no longer able to move the avatar.

Warning:
[OVRPlugin] [XRCMD][failure] [XR_ERROR_INITIALIZATION_FAILED]: xrLocateBodyJointsFB(m_xrBodyTracker, &info, &locations), arvr\projects\integrations\OVRPlugin\Src\Util\CompositorOpenXR.cpp:9488

Does anyone know how to solve this?

Unity version: 2022.3.11f1
MetaQuest2

Using InteractionRigOVR and BuildingBlocks' CameraRig did not change anything.
I was using ArmatureSkinningUpdateTpose for the avatar.

@sohailshafiiWk
Copy link
Contributor

Hello. To be clear, body tracking was working at some point and then it started to fail? Can you check the project setup tool (Oculus->Tools->Project Setup Tool) and let us know if any errors issues or recommended items appear? Furthermore, has our "MovementRetargeting" (https://github.com/oculus-samples/Unity-Movement/blob/main/Samples~/BodyTrackingSamples/Scenes/MovementRetargeting.unity) sample scene worked for you?

@tayamaYuto
Copy link
Author

tayamaYuto commented May 21, 2024

@sohailshafiiWk
Thank you comment!

body tracking was working at some point and then it started to fail?

That's correct. Initially, it was working fine, but after leaving it for about a day, the above error started to occur.

Regarding MovementRetargeting, it was also working fine at first, but now it shows the same warning as in my scene, and I can't move the avatar.

In the Project Setup Tool, I confirmed this error, but even after selecting "fix all," the error still remains.

スクリーンショット 2024-05-21 130743

@sohailshafiiWk
Copy link
Contributor

Hello, can you tell me:

  1. What your OS is (Windows 10 or 11)?
  2. The OS version of your Quest device, and the version of your Meta Quest Link software (found in the Settings -> Developer screen)?
  3. The Meta XR SDK versions that you are using in Unity, and a screenshot of your OVRCameraRig (Quest Features->General and also Movement Tracking sections)?"

@tayamaYuto
Copy link
Author

Ok,
I got a MetaQuest3 and set it up the same way, but the same error occurred.
I'll provide the information about MetaQuest3.

OS is Windows11
The OS version of my Quest device is SQ3.220605.009.A1
Version of Quest Link software is 65.0.0.499.343 (65.0.0.499.343)
Meta XR All-in-One SDK 65.0.0

スクリーンショット 2024-05-22 144302

@sohailshafiiWk
Copy link
Contributor

Hello, is it possible to gather logs and provide them here by following the steps outlined in https://developer.oculus.com/documentation/unity/unity-link/#link-log-gathering-from-unity-editor-and-oculusloggather-tool? Furthermore, would you be willing to share the output of adb logcat to us? Can you provide a screenshot of the Settings->Beta section of your Meta Quest PC app?

@tayamaYuto
Copy link
Author

@sohailshafiiWk
I'll send the screenshot first.
スクリーンショット 2024-06-02 163321

@tayamaYuto
Copy link
Author

How should I send the logs? Is it okay to do so on this issue? I am concerned about personal information being leaked.

@tayamaYuto
Copy link
Author

For now, I will attach the log data that seems safe to share.
Uploading Editor.log…

@sohailshafiiWk
Copy link
Contributor

Hello, we don't see a log uploaded. Can you please try again?

@tayamaYuto
Copy link
Author

@sohailshafiiWk
Copy link
Contributor

Thank you for uploading the log files. We are currently looking into this problem.

@tayamaYuto
Copy link
Author

Thank you so much!!!

@tayamaYuto
Copy link
Author

@sohailshafiiWk
How is this issue progressing?
After taking a short break and running it again, both the sample armatureTpose avatar and the Robot Kyle avatar we were using worked properly.

I'm still concerned as I'm not sure when the same issue might occur again, but for now, it seems to have been resolved.

I'm working on resolving the issue with Robot Kyle where there seems to be a misalignment, possibly due to missing bones. Do you have any ideas or suggestions?

I believe the problem lies in the fact that Robot Kyle lacks rigs for the Upper Chest and Chest.

@tayamaYuto
Copy link
Author

It seems that repeatedly playing the scene in Unity results in encountering errors. Restarting appears to allow body tracking to function again.

@sohailshafiiWk
Copy link
Contributor

Hello, we have investigated this issue internally. Is this issue occurring while trying to initiate Link after device has slept for a while? Are you starting Link before donning the HMD?

@tayamaYuto
Copy link
Author

At the time of reporting this issue, I was using AirLink, and I recall reconnecting AirLink before pressing the run button in Unity since the connection would drop when the HMD was removed.

Currently, I am using a USB connection because the frequent disconnections were bothersome.

@tayamaYuto
Copy link
Author

Since the device sometimes goes into sleep mode, I believe the steps I followed were:

  1. Wake from sleep
  2. Start AirLink
  3. Run Unity

@tayamaYuto
Copy link
Author

I encountered the same issue again when I connected MetaQuest from sleep mode using AirLink.

@sohailshafiiWk
Copy link
Contributor

Can you try adding an extra step in your startup before running unity? Please don the headset and visually confirm that you see the Link control scene (not sure what you call this) to verify that the connection is established.

@andkim-meta andkim-meta added the stale Stale issue. label Jul 18, 2024
@tayamaYuto
Copy link
Author

Once I switched from AirLink to a USB connection, it started up without any issues. Thank you for your support.

@github-actions github-actions bot removed the stale Stale issue. label Jul 23, 2024
@sohailshafiiWk
Copy link
Contributor

Thank you for letting us know. We will close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants