Skip to content
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

[bug] Setting resizable(false) when using WebviewWindow::builder on macOS causes the application to consume excessive CPU, ultimately leading to the program freezing and becoming unresponsive. #11308

Closed
suxiaoshao opened this issue Oct 10, 2024 · 3 comments
Labels
platform: macOS status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@suxiaoshao
Copy link

Describe the bug

Setting resizable(false) when using WebviewWindow::builder on macOS causes the application to consume excessive CPU, ultimately leading to the program freezing and becoming unresponsive.

code:

let window = WebviewWindow::builder(app, "main", tauri::WebviewUrl::App("/".into()))
        .title("ChatGPT")
        .inner_size(800.0, 600.0)
        .fullscreen(false)
        .resizable(false)
        .transparent(true);

Reproduction

No response

Expected behavior

No response

Full tauri info output

[✔] Environment
    - OS: Mac OS 15.0.1 arm64 (X64)
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.81.0 (eeb90cda1 2024-09-04)
    ✔ cargo: 1.81.0 (2dbb1af80 2024-08-20)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 20.17.0
    - pnpm: 9.11.0
    - npm: 10.8.2

[-] Packages
    - tauri 🦀: 2.0.2
    - tauri-build 🦀: 2.0.1
    - wry 🦀: 0.44.1
    - tao 🦀: 0.30.3
    - @tauri-apps/api : not installed!
    - @tauri-apps/cli : 2.0.2

Stack trace

No response

Additional context

No response

@suxiaoshao suxiaoshao added status: needs triage This issue needs to triage, applied to new issues type: bug labels Oct 10, 2024
1111mp added a commit to 1111mp/nvm-desktop that referenced this issue Oct 11, 2024
Signed-off-by: 1111mp <The1111mp@outlook.com>
@hut36
Copy link

hut36 commented Oct 16, 2024

Cannot reproduce here. However, the symptom is very similar to tauri-apps/plugins-workspace#1918. Maybe you have plugin-window-state installed?

@suxiaoshao
Copy link
Author

Cannot reproduce here. However, the symptom is very similar to tauri-apps/plugins-workspace#1918. Maybe you have plugin-window-state installed?

yes,I use plugin-window-state,but It seems to be working now in version 2.0.4.

@hut36
Copy link

hut36 commented Oct 16, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: macOS status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

3 participants