OpenXR-SDK-Source icon indicating copy to clipboard operation
OpenXR-SDK-Source copied to clipboard

Failed to find XR_API_LAYER_PATH via XrApiLayer_core_validation.json

Open Phildo opened this issue 3 years ago • 2 comments

I built this repository on Windows, and pointed my XR_API_LAYER_PATH to its corresponding build/src/api_layers directory.

After doing this, my openXR application correctly found the API layer, but was unable to open it with ERROR_FILE_ACCESS_ERROR.

The XrApiLayer_core_validation.json file looked like the following:

{
    "file_format_version": "1.0.0",
    "api_layer": {
        "name": "XR_APILAYER_LUNARG_core_validation",
        "library_path": "XrApiLayer_core_validation.dll",
        "api_version": "1.0",
        "implementation_version": "1",
        "description": "API Layer to perform validation of api calls and parameters as they occur"
    }
}

but when I changed the library_path to an absolute path, it was fixed.

I was briefly told by Ryan Pavlik on a slack message that what needs fixing is that "library_path" needs a .\ in front, to search relative to the manifest.

Phildo avatar Aug 18 '20 23:08 Phildo

An issue (number 1434) has been filed to correspond to this issue in the internal Khronos GitLab.

If you have a Khronos account, you can access that issue at KHR:openxr/openxr#1434.

rpavlik-bot avatar Aug 20 '20 17:08 rpavlik-bot

Yeah I think we had an action item to add ./ to all those generated manifests on Windows, but it got lost somewhere along the way.

rpavlik avatar Sep 28 '20 16:09 rpavlik

Looks like they are there now, not sure when they got added but this is fixed.

rpavlik avatar Mar 23 '23 22:03 rpavlik