Skip to content

Chapter 2 segfaults on xrCreateInstance() when run on Vive XR Elite #154

@ivanixgames

Description

@ivanixgames

Hello, tried to follow the OpenXR demos, Chapter 1 ran without issue.
However, Chapter 2 and the code for the ongoing chapters all segfault on xrCreateInstance() call.

The app exits back to the main Vive lobby view.
The output from "adb logcat" attached.

segfault.txt

Build notes:
Host ubuntu 22.04 amd64
targetSdk in Chapter2/app/build.gradle had to be changed to 31
when using android-studio-2022.2.1p2 , openjdk 17.0.6
also with android-studio-2025.1.3.7, openjdk 21.0.7

Issue happens following branches:
main, tag: v1.0.13 (0c6878d)
tag: v1.0.8 (e493c17)

Side note:
The src/tests/hello_xr sample found in OpenXR-SDK-Source repo runs without issue on the Vive XR Elite device.
Atm, i am trying to find the difference between how xrCreanteInstance() is called there versus here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions