Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIGSEGV on WSL 2 #3354

Open
ClementNerma opened this issue Dec 13, 2024 · 3 comments
Open

SIGSEGV on WSL 2 #3354

ClementNerma opened this issue Dec 13, 2024 · 3 comments
Labels
desktop Suggestions related to the desktop renderer wsl

Comments

@ClementNerma
Copy link

ClementNerma commented Dec 13, 2024

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
@DogeDark
Copy link
Member

Running desktop in WSL has been tricky. Did you take a look at https://dioxuslabs.com/learn/0.6/getting_started/#wsl?

@DogeDark DogeDark added desktop Suggestions related to the desktop renderer wsl labels Dec 13, 2024
@ClementNerma
Copy link
Author

Yeah I have the required dependencies installed, the DISPLAY env variable set to :0, the latest WSL version + Linux kernel (at least the one available in Ubuntu 24.10).

Still doesn't work. What surprises me is not the fact it's not launching (there could be tons of incompatibility issues in terms of libraries interop and dependencies) but the fact that it crashes silently with a segmentation fault.

@Notliam99
Copy link

Notliam99 commented Dec 14, 2024

Hi I running into the same issue not sure if related due to me running on arch on bare metal

The desktop application fails to run not build i get the error on run under niri wayland desktop enviroment. but under gnome wayland it works fine.

Application [linux] exited with error: signal: 11 (SIGSEGV) (core dumped)
  • dioxus version: 0.6.0
  • rust version: 1.83.0
  • os: archlinux on not under wsl ect
  • desktop enviroment: niri
  • platform: desktop linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop Suggestions related to the desktop renderer wsl
Projects
None yet
Development

No branches or pull requests

3 participants