Git Product home page Git Product logo

Comments (11)

bradgrantham-lunarg avatar bradgrantham-lunarg commented on May 22, 2024

I'll try to get a linux system set up, Buster installed, and Monado built. In the meantime, can you help me possibly debug this a little? In the app, does it give any indication of failure? Like xrGetVulkanGraphicsRequirementsKHR returns an error? It looks like the app decides to terminate and call xrDestroyInstance after calling GetVulkanGraphicsRequirements, so I'm hoping the apidump layer just didn't return status correctly or maybe doesn't understand Vulkan properly or something.

from openxr-sdk-source.

rpavlik avatar rpavlik commented on May 22, 2024

Looks like stdout and stderr got a little interleaved: I think this part is meaningful from the app:

[10:58:16.455][Error  ] XrResult failure [XR_ERROR_VALIDATION_FAILURE]
    Origin: pfnGetVulkanInstanceExtensionsKHR(instance, systemId, 0, &extensionNamesSize, nullptr)
    Source: ./src/tests/hello_xr/graphicsplugin_vulkan.cpp:1263

It may do this on Windows (oculus desktop) too, I just haven't tried.

Hopefully it's just a misunderstanding by the api dump layer - I know MS has found some issues with that layer and other platform-related things.

from openxr-sdk-source.

bradgrantham-lunarg avatar bradgrantham-lunarg commented on May 22, 2024

Great, thank you! Yeah, it sounds like it's not Linux specific. Maybe I can make apidump fail on Windows just by calling xrGetVulkanGraphicsRequirementsKHR

from openxr-sdk-source.

bradgrantham-lunarg avatar bradgrantham-lunarg commented on May 22, 2024

ApiDumpLayerRecordContent() never gets called (no output) so probably an exception is thrown.
buffer is nullptr for this call (first of two-call idiom, I think?):

        contents.emplace_back("char*", "buffer", buffer);

That's a std::tuple of three std::string, and string(nullptr) is undefined behavior, so probably the std library just threw an exception. I suppose a possible change is to have "buffer" generated as (buffer ? buffer : "(nullptr)") or some such. I'll look into the generator.

from openxr-sdk-source.

rpavlik avatar rpavlik commented on May 22, 2024

Oh interesting. The old "std::string(nullptr)" rears its head again, perhaps, go figure

from openxr-sdk-source.

rpavlik-bot avatar rpavlik-bot commented on May 22, 2024

An issue (number 1323) 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#1323.

from openxr-sdk-source.

bradgrantham-lunarg avatar bradgrantham-lunarg commented on May 22, 2024

@rpavlik - do you still have an environment that can test this?
KHR:openxr/openxr!1712

from openxr-sdk-source.

rpavlik avatar rpavlik commented on May 22, 2024

There's no particular environment needed - this now shows up in the packages even.

I have not tested it on Windows yet.

# This works
env XR_ENABLE_API_LAYERS=XR_APILAYER_LUNARG_core_validation hello_xr -g Vulkan

# This exits immediately
env XR_ENABLE_API_LAYERS=XR_APILAYER_LUNARG_api_dump hello_xr -g Vulkan

from openxr-sdk-source.

bradgrantham-lunarg avatar bradgrantham-lunarg commented on May 22, 2024

I've just run it on Windows and verified that the nullptr passed in to xrGetVulkanInstanceExtensionsKHR is printed as "(nullptr)".

from openxr-sdk-source.

rpavlik avatar rpavlik commented on May 22, 2024

Merged in GitLab, will be in next release.

from openxr-sdk-source.

rpavlik avatar rpavlik commented on May 22, 2024

Fix released in 1.0.9

from openxr-sdk-source.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.