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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Package signature validation unexpectedly return an invalid signature status if the validation check is done after the code signing certificate validaty range has passed
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
Add comment