0.7.0-rc.3 android emulator crash server function 'there is no reactor running, must be called from the context of a Tokio 1.x runtime'
Problem
Using the example workspaces template, I got a crash on the Android Emulator when triggering the echo server fn. Other platforms (desktop, web) appear to work fine.
~ % dx new dioxus_test
✔ 🤷 Which sub-template should be expanded? · Workspace
✔ 🤷 Do you want to use Dioxus Fullstack? · true
✔ 🤷 Do you want to use Dioxus Router? · true
✔ 🤷 Do you want to include prompts for LLMs? · true
Then change
dioxus = { version = "0.7.0-rc.1" }
to
dioxus = { version = "0.7.0-rc.3" }
in workspace Cargo.toml
Steps To Reproduce
Steps to reproduce the behavior:
- cd to packages/mobile
- dx serve --android
- in the emulator, click on the echo input field and enter some text
- android app crashes
Expected behavior
Android app should not crash and the entered text should echo back from the server
Screenshots
Environment:
- Dioxus version: 0.7.0-rc.3
- dx version: dioxus 0.7.0-rc.3 (321032c)
- Rust version: rustc 1.90.0 (1159e78c4 2025-09-14)
- Host OS info: Apple M4 Max 36 GB
- App platform: android emulator "Medium_Phone_API_36.1"
Click to expand more setup details
- Android Studio Narwhal 4 Feature Drop | 2025.1.4
- Build #AI-251.27812.49.2514.14217341, built on October 6, 2025
- Runtime version: 21.0.8+-14018985-b1038.68 aarch64
- VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
- Toolkit: sun.lwawt.macosx.LWCToolkit
- macOS 15.7.1
- Kotlin plugin: K2 mode
- GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
- Memory: 2048M
- Cores: 14
- Metal Rendering is ON
- Registry:
- ide.experimental.ui=true
% echo $JAVA_HOME
/Applications/Android Studio.app/Contents/jbr/Contents/Home
% echo $ANDROID_HOME
/Users/josephhenrygilbyiv/Library/Android/sdk
% echo $NDK_HOME
/Users/josephhenrygilbyiv/Library/Android/sdk/ndk/29.0.14206865
% echo $PATH
...:/Users/josephhenrygilbyiv/Library/Android/sdk/emulator:/Users/josephhenrygilbyiv/Library/Android/sdk/platform-tools:/Users/josephhenrygilbyiv/Library/Android/sdk/emulator:/Users/josephhenrygilbyiv/Library/Android/sdk/platform-tools
SDK Tools (installed):
-Android SDK Build Tools -- 36.1.0 -- 35.0.0 -- 34.0.0 -NDK (Side by Side) -- 29.0.14206865 -Android SDK Command-line Tools (latest) --Android SDK Command-line Tools (latest) 19.0 -CMAKE -- 4.1.2 -Android Emulator 36.2.12 -Android SDK Platform-Tools 36.0.0
Questionnaire I'm interested in fixing this myself but don't know where to start.
Crash Log message.txt