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:

  1. Execute 3 Command::new_sidecar in the setup hook of the application, with an tauri::async_runtime::block_on wrapper.
  2. Try to async_runtime::spawn, or anything that uses that (eg and async command).
  3. 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

Most upvoted comments

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.