Forum Discussion
Criterium
8 years agoHonored Guest
OVRBoundary.GetGeometry(...) sometimes causing an error
Some of our users have reported the following error (taken from output.log) when we try to access OVRManager.boundary.GetGeometry(OVRBoundary.BoundaryType.OuterBoundary): ArgumentNullExceptio...
kersk
8 years agoMeta Employee
Heya, thanks for reporting this.
It looks like this occurs when a user does not have a boundary configured through the Oculus setup process. This results in a 0 point boundary, which then leads to the null ref here when we're trying to Marshal.Copy data from IntPtr.Zero. This will be fixed in the next release, Oculus Utilities v1.15.0. You should also be able to work around this in v1.9.0 by checking if the user's boundary is configured first, like this:
It looks like this occurs when a user does not have a boundary configured through the Oculus setup process. This results in a 0 point boundary, which then leads to the null ref here when we're trying to Marshal.Copy data from IntPtr.Zero. This will be fixed in the next release, Oculus Utilities v1.15.0. You should also be able to work around this in v1.9.0 by checking if the user's boundary is configured first, like this:
if (OVRManager.boundary.GetConfigured())
{
Vector3[] points = OVRManager.boundary.GetGeometry(OVRBoundary.BoundaryType.OuterBoundary);
}
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 4 years ago