Skip to content

SIGSEGV on WSL 2 #3354

@ClementNerma

Description

@ClementNerma

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:
use dioxus::prelude::*;

fn main() {
    dioxus::launch(|| rsx! { "hello dioxus! ­ƒº¼" });
}
  1. cargo run
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdesktopSuggestions related to the desktop rendererwsl

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions