DioxusLabs/dioxus · error

Launching a liveview app should never return

Error message

Launching a liveview app should never return

What it means

The liveview launch function's Tokio runtime block_on returned after the server future completed, which should be impossible for a persistent liveview server. The trailing panic enforces the invariant that a liveview app runs forever.

Source

Thrown at packages/liveview/src/launch.rs:37

        .find_map(|cfg| cfg.downcast::<Config>().ok().map(|cfg| *cfg))
        .unwrap_or_default();

    builder.enable_all().build().unwrap().block_on(async move {
        config
            .with_virtual_dom(move || {
                let mut virtual_dom = VirtualDom::new(root);

                for context in &contexts {
                    virtual_dom.insert_any_root_context(context());
                }

                virtual_dom
            })
            .launch()
            .await;
    });

    panic!("Launching a liveview app should never return")
}

View on GitHub (pinned to 24f6a829df)

Solutions

  1. The liveview server loop returned, which should never happen. Check server logs for the cause; this indicates a bug or a fatal server error.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at packages/liveview/src/launch.rs:37 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of DioxusLabs/dioxus@24f6a829df (2026-08-23). Data as JSON: /api/errors/e8d036973c056ea1. Report an issue: GitHub.