-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
100% CPU consumption bug #2074
Comments
I've also noticed that the mapping of commands between rust and the JS doesn't work. |
That is because you are using the old version of tauri core.
Please either update the source or use the latest crate from crates.io |
Because its a bit confusing, I went and tried it, running directly on m1 mac from dev (both via yarn tauri and cargo tauri), without any problems - but you should remember a couple things:
|
FYI, I'm also on m1 mac.
❯ cargo tauri --version
I think this is misinterpreted, because I've cloned the tauri repo, and checked out the right tag (1.0.0-beta.2). |
About that part, it's when I've checked the earliest commit to find out when it started to produce the bug. Here is the right
|
active toolchain1.52.1-aarch64-apple-darwin (overridden by '/Users/j/www/tauri/rust-toolchain') |
I am on the same rustc as a matter of fact - although we should both move to 1.53.0 :| |
I've also tried with I wonder what else could be different from your environment and mine? |
Care to visit our discord and we can have a chat about it? Ping denjell |
This is closed but I also have this issue.
|
Same problem when using
|
Hmm. You know, something I remembered is that I actually transferred the contents of my Intel mac to the M1, and I am actually still using the Intel version of rustc: Maybe @wusyong can help us out here, since he also has an m1 |
I'm on an Intel machine though, So it doesn't seem to be related to the m1 |
I can confirm tauri |
tauri/core/tauri-runtime-wry/src/lib.rs Lines 1369 to 1385 in fe32afc
I'm not familiar with |
This happened after changing deps from Also: |
It did fix the issue! Thanks everyone, good job @wusyong & @lucasfernog |
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"]
The text was updated successfully, but these errors were encountered: