Cannot run StardustXR server

I get the error, when running cargo run:
❯ cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.11s
Running `target/debug/stardust-xr-server`
before init
[SK error] [sk_gpu] Err eglGetDisplay
[SK error] Failed to initialize sk_gpu!
[SK error] System Platform failed to initialize!
[SK error] No messagebox capability for this platform!
after init
thread 'main' panicked at 'StereoKit failed to initialize: SkInit(Settings { app_name: "Stardust XR", assets_folder: "", display_preference: MixedReality, no_flatscreen_fallback: false, blend_preference: AnyTransparent, depth_mode: D32, log_filter: Error, overlay_app: false, overlay_priority: 4294967295, flatscreen_pos_x: 0, flatscreen_pos_y: 0, flatscreen_width: 0, flatscreen_height: 0, disable_flatscreen_mr_sim: false, disable_desktop_input_window: true, disable_unfocused_sleep: false, render_scaling: 2.0 })', src/main.rs:126:6
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
❯ cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.11s
Running `target/debug/stardust-xr-server`
before init
[SK error] [sk_gpu] Err eglGetDisplay
[SK error] Failed to initialize sk_gpu!
[SK error] System Platform failed to initialize!
[SK error] No messagebox capability for this platform!
after init
thread 'main' panicked at 'StereoKit failed to initialize: SkInit(Settings { app_name: "Stardust XR", assets_folder: "", display_preference: MixedReality, no_flatscreen_fallback: false, blend_preference: AnyTransparent, depth_mode: D32, log_filter: Error, overlay_app: false, overlay_priority: 4294967295, flatscreen_pos_x: 0, flatscreen_pos_y: 0, flatscreen_width: 0, flatscreen_height: 0, disable_flatscreen_mr_sim: false, disable_desktop_input_window: true, disable_unfocused_sleep: false, render_scaling: 2.0 })', src/main.rs:126:6
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I'm running it on NixOS 23.11 with Monado from unstable Nixpkgs.
1 Reply
Niclas Overby
Niclas OverbyOP11mo ago
Nevermind, the issue does not seem specific to StardustXR, but rather relating to mixing GL packages from stable and unstable NixOS.
Want results from more Discord servers?
Add your server