Search Issue Tracker
Fixed
Fixed in 1.2.0
Votes
0
Found in [Package]
1.2.0-pre.1
Issue ID
AXRB-262
Regression
Yes
Windows Build PR breaks Android XR Anchors
Steps to reproduce:
1. Start AnchorProvider or perform a Save or a Load, or an Erase operation to an Anchor.
Basically, any call of these native API methods:
{code:java}
XrFuncTable.h
...
// Anchor
DECL_XR_PROC_ENTRY(xrCreateAnchorSpaceANDROID);
DECL_XR_PROC_ENTRY(xrCreateDeviceAnchorPersistenceANDROID);
DECL_XR_PROC_ENTRY(xrDestroyDeviceAnchorPersistenceANDROID);
DECL_XR_PROC_ENTRY(xrPersistAnchorANDROID);
DECL_XR_PROC_ENTRY(xrCreatePersistedAnchorSpaceANDROID);
DECL_XR_PROC_ENTRY(xrEnumeratePersistedAnchorsANDROID);
DECL_XR_PROC_ENTRY(xrGetAnchorPersistStateANDROID);
DECL_XR_PROC_ENTRY(xrUnpersistAnchorANDROID); {code}
2. Observe errors in logcat.
Actual results: Save, Erase, or Load operations spamming with errors like these:
{code:java}
[XR] [Android OpenXR][.\Source/XrOverrides.cpp:36] xrGetInstanceProcAddr(xrCreateDeviceAnchorPersistenceANDROID) failed with error code XR_ERROR_FUNCTION_UNSUPPORTED.
[XR] [Android OpenXR][Source/XrFuncTable.h:104] xrCreateDeviceAnchorPersistenceANDROID failed with result XR_ERROR_FUNCTION_UNSUPPORTED.
[XR] [Android OpenXR][.\Source/Providers/AnchorProvider.cpp:401] [AnchorProvider] xrCreateDeviceAnchorPersistenceANDROID failed with error: XR_ERROR_FUNCTION_UNSUPPORTED
[XR] [Android OpenXR][.\Source/XrOverrides.cpp:36] xrGetInstanceProcAddr(xrCreateDeviceAnchorPersistenceANDROID) failed with error code XR_ERROR_FUNCTION_UNSUPPORTED.
[XR] [Android OpenXR][Source/XrFuncTable.h:104] xrCreateDeviceAnchorPersistenceANDROID failed with result XR_ERROR_FUNCTION_UNSUPPORTED.
[XR] [Android OpenXR][.\Source/Providers/AnchorProvider.cpp:401] [AnchorProvider] xrCreateDeviceAnchorPersistenceANDROID failed with error: XR_ERROR_FUNCTION_UNSUPPORTED
[XR] [Android OpenXR][.\Source/XrOverrides.cpp:36] xrGetInstanceProcAddr(xrCreateDeviceAnchorPersistenceANDROID) failed with error code XR_ERROR_FUNCTION_UNSUPPORTED.
[XR] [Android OpenXR][Source/XrFuncTable.h:104] xrCreateDeviceAnchorPersistenceANDROID failed with result XR_ERROR_FUNCTION_UNSUPPORTED.
[XR] [Android OpenXR][.\Source/Providers/AnchorProvider.cpp:401] [AnchorProvider] xrCreateDeviceAnchorPersistenceANDROID failed with error: XR_ERROR_FUNCTION_UNSUPPORTED
[XR] [Android OpenXR][.\Source/XrOverrides.cpp:36] xrGetInstanceProcAddr(xrCreateDeviceAnchorPersistenceANDROID) failed with error code XR_ERROR_FUNCTION_UNSUPPORTED. {code}
Expected results: Operation was able to perform.
Reproducible with versions: "com.unity.xr.androidxr-openxr": "1.2.0-pre.1"
Tested on (OS):
Android (Moohan) samsung/xrdk2/xrdk2:14/UML1.250821.001/13970532:userdebug/test-keys
Notes:
The reason is that it seems none of Anchor's native runtime methods have been registered.
Given the nature of these errors, it seems likely that systems other than Anchors may also have been affected.
The issue appears after this commit:
!image-2025-11-05-11-11-52-797.png|width=401,height=217!
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on MarkAllDependencies when opening scenes with Assets from the YarnSpinner package
- Crash on CollectAllSceneManagerAndObjectIDs when opening a specific Scene
- GPU device suspended error when replaying a video in the Video Player with NVIDIA Vertical Sync set to Fast
- GPU device suspended error when replaying a video in the Video Player with NVIDIA Vertical Sync set to Fast
- SetComponentEnabled uses class instead of struct when constraining Enableable Component type
Add comment