cancel
Showing results for 
Search instead for 
Did you mean: 

5.1 Hand Samples (Oculus XRHand Component) - Array Index error?

kavanavak
Expert Protege

I've been getting an array index error whenever I try to use the Oculus XRHand Component - required for hand tracking / and body tracking.

 

I've posted about it on the GitHub repo, and had one person confirm a similar issue, but so far no one else seems to have the problem(?)

https://github.com/Oculus-VR/UnrealEngine/issues/247

 

Is anyone using the Oculus XRHand Component in the new engine build without issue?

 

Hand Sample / HandPoseShowcase sample maps throw the error / crash the editor.

EXAMPLE:
Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:H:\GitHub\UnrealEngine\Oculus\UE5\UnrealEngine\Engine\Source\Runtime\Core\Public\Containers\Array.h] [Line: 763]
Array index out of bounds: 1806 from an array of size 24

When I open the sample project: \UnrealEngine\Samples\Oculus\HandSample\HandSample.uproject I can play in Viewport / Simulate without issue, but if I VRPreview or build a standalone game I get the array error as soon as the engine registers the headset (put it on my face)

To double-check, this morning I built a blank VR BP project, compiled all 6000 shaders, and it was able to immediately run fine with VRPreview. I opened my pawn, added the "Oculus XRHand Component" and tried to preview again, crashed.

 

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions

kavanavak
Expert Protege

@BiomedKUL @zakoul 

Meta posted a temporary patch to address this issue on the github repo: https://github.com/Oculus-VR/UnrealEngine/issues/247

View solution in original post

https://github.com/Oculus-VR/UnrealEngine/issues/247
TL;DR " released 5.1.1-v50 and this should be fixed there."

View solution in original post

7 REPLIES 7

BiomedKUL
Explorer

Hi, I've also had the same problem, seems like there is an issue with laoding the 'default' hand skeletal mesh. 
You can workaround this by using a custom skeletal mesh in the 'SkeletalAsset' , but this is a bug the Meta team hopefully fixed quickly

BiomedKUL_0-1676629188384.png

 

zakoul
Honored Guest

Do you have by any change a link to a model/asset pack that works with hand tracking or do you know any mode that actually works with the hand tracking and finger movement? The default Mannequin hand doesn't work for me (shows up, but there's no finger movement) and atm I can't spend 40 bucks or something on a hand model pack just to find out that the skeletons are incompatible or the issue lies deeper than that...

Also can't seem to migrate the hand models from the sample pack (from the UE Oculus Fork Repo) as it doesn't recognize or accept the skeleton in other projects. 

BiomedKUL
Explorer

Hi Zakoul,

I'm currently using following hand mesh pack:
https://www.unrealengine.com/marketplace/en-US/product/hand-tracking-asset-bundle

I did have to redirect the bones in the hand component under 'custom skeletal mesh'> 'bone name mappings' .

 

I'm also using a hand tracking plugin for functionality:
https://www.unrealengine.com/marketplace/en-US/product/hand-tracking-plugin

This has grabbing, pushing buttons and more, and should have a mesh in its example folder that also works (not tested myself since I already had the other hands).

kavanavak
Expert Protege

@BiomedKUL @zakoul 

Meta posted a temporary patch to address this issue on the github repo: https://github.com/Oculus-VR/UnrealEngine/issues/247

Can you share what you used to redirect? I am getting weird behavior when I try.

https://github.com/Oculus-VR/UnrealEngine/issues/247
TL;DR " released 5.1.1-v50 and this should be fixed there."

Hi Nate,
Below you can see the redirects I used. This will depend on your skeleton however.
I put in a screenshot of part of my skeletal mesh as comparison.
Good luck!
BiomedKUL_0-1681715880726.png

BiomedKUL_1-1681716005148.png