DioxusLabs / DioxusLabs/dioxus
Build panics after hot reloading on Windows 10
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
**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](https://github.com/DioxusLabs/dioxus/issues/4191), 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](https://github.com/DioxusLabs/dioxus/discussions/4219):
```rust
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.