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
- Frame Debugger is not disabled when switching Scenes if the Frame Debugger window is not open during the transition
- Standalone Profiler Targets another Project if a Standalone Profiler was launched in it before when switching between Edit or Play Mode Targets
- Crash on ForwardRenderLoopJob when opening a specific project
- [Android] Memory leak and eventual crash on Snapdragon 8 Gen 1+ devices when a Clear Pass is executed after Framebuffer Fetch
- PhysicsRaycaster ray length is incorrect when casting from rotated Camera
Add comment