DioxusLabs / example-projects

Featured Dioxus projects on how to build clean user interfaces in Rust
486 stars 64 forks source link

TRACE causes browser to crash #46

Closed cj495840252 closed 3 months ago

cj495840252 commented 4 months ago

Problem

When I use trunk serve to start this project. The browser runs normally for a period of time before opening. but when i don't click browser a half minute, my browser will stuck. code doesn't panic I set Level::INFO is useless

    console_error_panic_hook::set_once();

    let config = WASMLayerConfigBuilder::new()
        .set_max_level(Level::TRACE)
        .build();
    tracing_wasm::set_as_global_default_with_config(config);
    dioxus_web::launch(app);

Screenshots 1708763137310

Environment:

ealmloff commented 4 months ago

That issue was fixed in https://github.com/DioxusLabs/dioxus/pull/1925 and released in the dioxus 0.5 pre release. You can update your dioxus version or work around the issue by either:

tkr-sh commented 3 months ago

Maybe close it @ealmloff ?