leptos-rs / cargo-leptos

Build tool for Leptos (Rust)
MIT License
353 stars 104 forks source link

When compiling wasm it throws: thread 'tokio-runtime-worker' has overflowed its stack #354

Closed KOEGlike closed 1 month ago

KOEGlike commented 1 month ago

I don't know what I changed in my code base, but suddenly this error is given when I'm compiling the wasm part with cargo-leptos. If I revert to this commit, it works and compiles fine, but something in this commit gives the error.

I updated to the newest locked cargo-leptos 3 days ago

Here is the end terminal output when it gives the error:

   warning: `music_jam` (lib) generated 15 warnings (run `cargo fix --lib -p music_jam` to apply 8 suggestions)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.76s
       Cargo finished cargo build --package=music_jam --lib --target-dir=C:\Users\lenovo\Documents\men\hacker_man\projects\music_jam\target\front --target=wasm32-unknown-unknown --no-default-features --features=hydrate
       Front compiling WASM

thread 'tokio-runtime-worker' has overflowed its stack

here is the terminal output of the older commit, where the new fails:

warning: `music_jam` (lib) generated 18 warnings (run `cargo fix --lib -p music_jam` to apply 9 suggestions)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.59s
       Cargo finished cargo build --package=music_jam --lib --target-dir=C:\Users\lenovo\Documents\men\hacker_man\projects\music_jam\target\front --target=wasm32-unknown-unknown --no-default-features --features=hydrate
       Front compiling WASM
     Command [sass] requested version 1.58.3, but a newer version 1.71.0 is available, you can try it out by setting the LEPTOS_SASS_VERSION=1.71.0 env var and re-running the command

here is the end of the older (where it still compiles) commit terminal output:

warning: `music_jam` (lib) generated 23 warnings (run `cargo fix --lib -p music_jam` to apply 12 suggestions)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.17s
       Cargo finished cargo build --package=music_jam --bin=music_jam --no-default-features --features=ssr
     Serving at http://127.0.0.1:3000
listening on http://127.0.0.1:3000

EDIT: I use my own lib(rust_spotify_web_playback_sdk) and I use my local path, replace that with: https://github.com/KOEGlike/rust_spotify_web_playback_sdk

EDIT: this project uses sqlx, so if you want to try to build it, run the compose.yml file in the db folder to create the db container, then put this DATABASE_URL="postgresql://localhost:5432/jam_db?user=jammer" into a .env file, then use the sqlx CLI to run this command: sqlx migrate run --source ./db/migrations,

KOEGlike commented 1 month ago

it was this line of scss: width: calc(calc(calc(100% - calc(75pc + 60px)) - mod(100%, calc($icon-size + $gap))) + $gap); in _user_bar.scss