Skip to content

Windows OpenXR Loader will silently ignore API layers upon parsing a bad registry key #335

Open
@mbucchia-msft

Description

@mbucchia-msft

When loading the list of API layers from HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenXR\1\ApiLayers\Implicit, the OpenXR loader will silently fail upon parsing a bad key. This can be reproduced by doing the following:

  1. Add a DWORD key for API Layer number 1
  2. Add a REG_SZ key (bad key)
  3. Add a DWORD key for API Layer number 2

API Layer number 2 will not be loaded, but no error message is emitted (checked with both VS debugger and DebugView). This can cause very troublesome situations for API layer developers, especially when the "bad key" in question is the (Default) key not being set to an empty value (because that key is largely invisible to the naked eye).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingin loadersynced to gitlabSynchronized to OpenXR internal GitLab

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions