KhronosGroup / KhronosGroup/OpenXR-Tutorials

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

Open
#154 1 comment 0 reactions 0 assignees View on GitHub
synced to gitlab
Dominant language
C++
Stars
135
Forks
27
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/user-attachments/files/22985642/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 (0c6878dbcee390322b51638b3793052b6eb3b1d3)
tag: v1.0.8 (e493c17ca24caf5a9fec4f7085e8a520fa211888)

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Chapter 2 xrCreateInstance() call and the targetSdk setting in Chapter2/app/build.gradle, then compare it with src/tests/hello_xr from OpenXR-SDK-Source. Use the attached adb logcat output to identify the crash cause; done means Chapter 2 and the ongoing chapters no longer segfault on the Vive XR Elite.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, cpp
Domain
ar-vr-xr, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.