Skip to content

100% CPU consumption bug #2074

@dizda

Description

@dizda

Describe the bug

When I launch the "helloworld" example, the CPU consumption goes to 100%.
The commit 3280c4a 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 (f7d21a4) 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"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions