Mauve
SXStardust XR
•Created by Mauve on 6/12/2024 in #support
Cannot connect to X server
Trying to run the server from source using
cargo run -- -f
and it's erroring out with this error. I'm running this from within Niri so I assumed it'd latch onto the wayland session. Does it need to run from inside X or the tty?
Full output:
warning: method `uid` is never used
--> src/nodes/items/panel.rs:213:5
|
212 | pub trait PanelItemTrait: Backend + Send + Sync + 'static {
| -------------- method in this trait
213 | fn uid(&self) -> &str;
| ^^^
|
= note: `#[warn(dead_code)]` on by default
warning: `stardust-xr-server` (bin "stardust-xr-server") generated 1 warning
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.30s
Running `target/debug/stardust-xr-server -f`
before init
[SK error] Cannot connect to X server
[SK error] Couldn't initialize a flatscreen display!
[SK error] System Platform failed to initialize!
[SK error] No messagebox capability for this platform!
after init
thread 'main' panicked at src/main.rs:130:6:
StereoKit failed to initialize: SkInit(Settings { app_name: "Stardust XR", assets_folder: "", display_preference: Flatscreen, 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 })
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: method `uid` is never used
--> src/nodes/items/panel.rs:213:5
|
212 | pub trait PanelItemTrait: Backend + Send + Sync + 'static {
| -------------- method in this trait
213 | fn uid(&self) -> &str;
| ^^^
|
= note: `#[warn(dead_code)]` on by default
warning: `stardust-xr-server` (bin "stardust-xr-server") generated 1 warning
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.30s
Running `target/debug/stardust-xr-server -f`
before init
[SK error] Cannot connect to X server
[SK error] Couldn't initialize a flatscreen display!
[SK error] System Platform failed to initialize!
[SK error] No messagebox capability for this platform!
after init
thread 'main' panicked at src/main.rs:130:6:
StereoKit failed to initialize: SkInit(Settings { app_name: "Stardust XR", assets_folder: "", display_preference: Flatscreen, 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 })
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
12 replies