DioxusLabs / DioxusLabs/dioxus

SIGSEGV on WSL 2

Open
#3,354 3 comments 0 reactions 0 assignees View on GitHub
bug desktop wsl
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

**Problem**

When compiling a basic example on WSL 2, the program crashes without displaying anything.

When running it with `strace`, the process crashes with `SIGSEGV` (so a segmentation fault).

I don't really know how to fix that, I could give you a complete `strace` log if that's useful?

Note that `cargo build` works fine. It's only running that fails.

**Steps To Reproduce**

1. Create a new project
2. Add `dioxus` with the `desktop` feature
3. Use the following `src/main.rs` file:

```rust
use dioxus::prelude::*;

fn main() {
dioxus::launch(|| rsx! { "hello dioxus! ­ƒº¼" });
}
```

4. `cargo run`
5. Enjoy the crash

**Environment:**
- Dioxus version: `0.6.0`
- Rust version: `1.82.0`
- OS info: Windows 11 24H2, WSL `2.3.26.0` with Ubuntu 24.10, kernel `5.15.167.4-1`, WSLg `1.0.65`
- App platform: `desktop`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.