tauri-apps / tauri

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

When building a Tauri application using Windows 10 Enterprise Edition, it cannot run on Windows 7.[bug] #9692

Closed muwoo closed 1 week ago

muwoo commented 1 week ago

Describe the bug

  1. use Windows 10 Enterprise Edition
  2. yarn create tauri-app
  3. yarn install && yarn tauri build -t i686-pc-windows-msvc
  4. Install the application on Windows 7 using the built Windows installation package, and then launch the application.
  5. Error: The Application was unable to start correctly (0xc0000005)

image

Reproduction

No response

Expected behavior

No response

Full tauri info output

$ tauri info

[✔] Environment
    - OS: Windows 10.0.19044 X64
    ✔ WebView2: 124.0.2478.80
    ✔ MSVC: Visual Studio ���ɹ��� 2022
    ✔ rustc: 1.78.0 (9b00956e5 2024-04-29)
    ✔ cargo: 1.78.0 (54d8815d0 2024-03-26)
    ✔ rustup: 1.27.0 (bbb9276d2 2024-03-08)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.12.2
    - yarn: 1.22.22
    - npm: 10.5.0

[-] Packages
    - tauri [RUST]: 1.6.3
    - tauri-build [RUST]: 1.5.2
    - wry [RUST]: 0.24.8
    - tao [RUST]: 0.16.9
    - @tauri-apps/api [NPM]: 1.5.4
    - @tauri-apps/cli [NPM]: 1.5.13

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1420/
    - framework: Vue.js
    - bundler: Vite
Done in 27.27s.

Stack trace

No response

Additional context

No response

FabianLars commented 1 week ago

Can you try downgrading rust to 1.77.2? Asking because of https://blog.rust-lang.org/2024/05/02/Rust-1.78.0.html#compatibility-notes

muwoo commented 1 week ago

@FabianLars Thank you very much for your prompt response, the issue has been perfectly resolved. Thanks again!