tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
84.56k stars 2.54k forks source link

[bug] assertion failed: `!bitmap.is_null()` #11525

Open roobscoob opened 1 week ago

roobscoob commented 1 week ago

Describe the bug

thread 'main' panicked at C:\Users\Rose\.cargo\registry\src\index.crates.io-6f17d22bba15001f\softbuffer-0.4.6\src\backends\win32.rs:99:9:
assertion failed: !bitmap.is_null()
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[1028/172140.698:ERROR:window_impl.cc(121)] Failed to unregister class Chrome_WidgetWin_0. Error = 1412

Crash occured during pnpm tauri dev. Happy to provide any other information needed.

Reproduction

No response

Expected behavior

No response

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.22621 x86_64 (X64)
    ✔ WebView2: 130.0.2849.52
    ✔ MSVC:
        - Visual Studio Build Tools 2019
        - Visual Studio Build Tools 2022
    ✔ 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-x86_64-pc-windows-msvc (default)
    - node: 22.9.0
    - pnpm: 9.12.2
    - yarn: 1.22.19
    - npm: 10.8.3
    - bun: 1.1.31
    - deno: deno 2.0.2

[-] Packages
    - tauri 🦀: 2.0.6
    - tauri-build 🦀: 2.0.2
    - wry 🦀: 0.46.3
    - tao 🦀: 0.30.3
    - @tauri-apps/api : 2.0.3
    - @tauri-apps/cli : 2.0.5

[-] Plugins
    - tauri-plugin-shell 🦀: 2.0.2
    - @tauri-apps/plugin-shell : 2.0.1
    - tauri-plugin-os 🦀: 2.0.1
    - @tauri-apps/plugin-os : 2.0.0

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../build
    - devUrl: http://localhost:1420/document/00192d1c97c09-000-T0000000000000-00
    - framework: Svelte
    - bundler: Vite

Stack trace

processes was not running with `RUST_BACKTRACE=1` when the crash occured.

Additional context

No response

amrbashir commented 1 week ago

Can you try with RUST_BACKTRACT=1? also a reproduction would be helpful. And are you using transparent: true.