Skip to content

Minimal Dioxus Native instantly crashes on Windows #4901

@dxvid-pts

Description

@dxvid-pts

Problem

Dioxus Native crashes instantly after launching

    Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.15s
     Running `target\debug\hello-dioxus-native.exe`
error: process didn't exit successfully: `target\debug\hello-dioxus-native.exe` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)

Steps To Reproduce

Steps to reproduce the behavior:

  • launch minimal dioxus native app on a windows machine
Minimal App

main.rs

use dioxus::prelude::*;

fn main() {
    dioxus_native::launch(App);
}

fn App() -> Element {
    rsx! {
        div { "Hello from Dioxus Native!" }
    }
}

cargo.toml

[package]
name = "hello-dioxus-native"
version = "0.1.0"
edition = "2021"

[dependencies]
dioxus = { version = "0.7" }
dioxus-native = { version = "0.7" }

Expected behavior

Successful launch

Environment:

  • Dioxus version: 0.7
  • Rust version:
rustc --version --verbose
rustc 1.89.0 (29483883e 2025-08-04)
binary: rustc
commit-hash: 29483883eed69d5fb4db01964cdf2af4d86e9cb2
commit-date: 2025-08-04
host: aarch64-pc-windows-msvc
release: 1.89.0
LLVM version: 20.1.7
  • OS info: Windows
  • App platform: Native

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnativeRelated to dioxus-nativewindows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions