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
- Performance Markers Search window shows an empty entry in the list
- Enabling Deep Profiling in Performance Markers Search window breaks Inspector panel buttons when navigating through the marker items
- Dragging selector from selector row background shows preview but does not apply class in UI Builder
- An "InvalidOperationException" error is thrown when TryRemoveItem is used with rebuildTree set to false
- Build fails with IL2CPP error when building on Android platform in a specific project
Add comment