tauri: 100% CPU consumption bug

Describe the bug

When I launch the “helloworld” example, the CPU consumption goes to 100%. The commit https://github.com/tauri-apps/tauri/commit/3280c4aa91e50a8ccdd561a8b48a12a4a13ea8d5 introduce the bug.

To Reproduce

git checkout 3280c4aa91e50a8ccdd561a8b48a12a4a13ea8d5
cd examples/helloworld
cargo tauri dev

Expected behavior

CPU Should be around 0% when idling. Previous commit (f7d21a4b864e067856018e7b1f4ba178aea46d71) doesn’t have this bug.

git checkout f7d21a4b864e067856018e7b1f4ba178aea46d71
cd examples/helloworld
cargo tauri dev

Screenshots

Not useful

Platform and Versions (required):

Operating System - Mac OS, version 11.4.0 X64

Node.js environment Node.js - 16.3.0 @tauri-apps/cli - 1.0.0-beta.3 @tauri-apps/api - Not installed

Global packages npm - 7.15.1 yarn - 1.22.10

Rust environment rustc - 1.52.1 cargo - 1.52.0

App directory structure /dist /node_modules /src-tauri

App tauri.rs - path:“…/…/…/core/tauri” [1.0.0-beta.1] (no lockfile) build-type - bundle CSP - default-src blob: data: filesystem: ws: wss: http: https: tauri: ‘unsafe-eval’ ‘unsafe-inline’ ‘self’ distDir - [“…/index.html”] devPath - [“…/index.html”]

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (12 by maintainers)

Commits related to this issue

Most upvoted comments

It did fix the issue!

Thanks everyone, good job @wusyong & @lucasfernog

I’m on an Intel machine though, So it doesn’t seem to be related to the m1