openxr_engine_plugins icon indicating copy to clipboard operation
openxr_engine_plugins copied to clipboard

XR_ERROR_ACTIONSETS_ALREADY_ATTACHED

Open RemiArnaud opened this issue 4 years ago • 1 comments

Thanks a lot for putting this together. Varjo just released 3.4 that includes the XR_HTCX_vive_tracker_interaction extension.

When testing the OpenXRViveTracker I have the following problem:

  1. xrCreateActionSet is called in PostCreateInstance - at plugin initialization
  2. xrAttachSessionActionSets is called by FOpenXRInput::Tick() as bActionsBound is false on the first Tick
  3. xrSuggestInteractionProfileBindings is called in OnBeginSession this results in XR_ERROR_ACTIONSETS_ALREADY_ATTACHED error as per the specification: "If the action set for any action referenced in the suggestedBindings parameter has been included in a call to xrAttachSessionActionSets, the implementation must return XR_ERROR_ACTIONSETS_ALREADY_ATTACHED."

its a bummer that Tick() gets called before OnBeginSession, but the order of execution does not work as xrSuggestInteractionProfileBindings needs to be called before xrAttachSessionActionSets

RemiArnaud avatar Dec 21 '21 03:12 RemiArnaud

Is this related at all to the black screen bug I am getting with this issue once I set up a Vive tracker with OpenXR in SteamVR + Unity? https://github.com/ValveSoftware/unity-xr-plugin/issues/114

I have added an issue for it here as I have been chasing Steam Support and the SteamVR discussions forum which have both been dead ends

ROBYER1 avatar Feb 01 '22 00:02 ROBYER1