Skip to content

Build panics after hot reloading on Windows 10 #5279

@MOj0

Description

@MOj0

Problem

Upon starting a minimal reproducable example below, rust-lld first logs this error

[ERROR] dx::build::request: Failed to generate fat binary: rust-lld: error: no input files telemetry="{\"event\":\"hotpatch_fat_binary_generation_failed\"}" 

however the build still completes and dx serves the program.
However, after hot reloading it panics with this error:

[ERROR] dx::serve: Build failed: Build panicked! JoinError::Panic(Id(346), "failed to resolve patch symbols: InvalidModule(\"ASLR reference is less than the main module's address - is there a `main`?. 0 < 1480\")", ...) 

I'm guessing these errors are related, so I included both. The first error might be the due to Windows having the command length limit as here, but it is unfortunately not very descriptive, so I cannot make any assumptions.

Steps To Reproduce

Steps to reproduce the behavior:

  • cargo new dioxus_windows_error
  • cargo add dioxus-devtools && cargo add subsecond
  • Use minimal reproducable example from here:
fn main() {
    println!("-- STARTING");
    dioxus_devtools::connect_subsecond();

    loop {
        std::thread::sleep(std::time::Duration::from_secs(1));
        subsecond::call(|| tick());
    }
}
fn tick() {
    println!("edit me to see the loop in action!");
}
  • dx serve --hot-patch
  • Modify code from example and save file

Expected behavior

Program gets hot-reloaded with the made changes.

Environment:

  • Dioxus version, CLI: 0.7.3
  • dioxus-devtools: 0.7.3
  • subsecond: 0.7.3
  • Rust version: 1.94.0-nightly (24139cf84 2025-12-20)
  • OS info: Windows 10, 10.0.19044
  • App platform: desktop

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions