tauri: Tasks spawned with `async_runtime::spawn` don't execute when 3 sidecar commands have been executed
Describe the bug
Tasks spawned with async_runtime::spawn don’t execute when 3 sidecar commands have been executed.
To Reproduce Steps to reproduce the behavior:
- Execute 3
Command::new_sidecarin thesetuphook of the application, with antauri::async_runtime::block_onwrapper. - Try to
async_runtime::spawn, or anything that uses that (eg and async command). - The spawned task won’t execute.
Expected behavior
Operating System - Ubuntu, version 20.04 X64
Node.js environment Node.js - 16.3.0 @tauri-apps/cli - 1.0.0-beta.2 @tauri-apps/api - 1.0.0-beta.1
Global packages npm - 7.15.1 yarn - 1.22.5
Rust environment rustc - 1.53.0 cargo - 1.53.0
App directory structure /node_modules /.git /.github /public /src /tests /src-tauri
App tauri.rs - 1.0.0-beta.1 build-type - bundle CSP - default-src blob: data: filesystem: ws: http: https: ‘unsafe-eval’ ‘unsafe-inline’ ‘self’ img-src: ‘self’ distDir - Set automatically by Vue CLI plugin devPath - Set automatically by Vue CLI plugin framework - Vue.js (Vue CLI) bundler - Webpack Additional context Add any other context about the problem here.
Stack Trace
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (16 by maintainers)
Commits related to this issue
- refactor(core): reduce number of command spawned tasks, closes #2042 — committed to tauri-apps/tauri by lucasfernog 3 years ago
Yeap just saw it, thanks!
Your real-time support is really appreciated.
Alright I think I can reproduce it, going to see what’s happening.