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] Tauri 2.0 cannot run on Windows 7 SP1(x86 or x64) #11381

Closed
kingyang opened this issue Oct 16, 2024 · 13 comments
Closed

[bug] Tauri 2.0 cannot run on Windows 7 SP1(x86 or x64) #11381

kingyang opened this issue Oct 16, 2024 · 13 comments
Labels
platform: Windows status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@kingyang
Copy link

Describe the bug

The compiled result of Tauri 2.0 does not run on Windows 7 SP1.

20241016160153

Reproduction

Run pnpm create tauri-app

Expected behavior

It is expected to run normally. I also want to know if Tauri 2.0 supports Windows 7. Globally, Windows 7 still has a 3% market share, and in some regions like China, the share is as high as 20%. This is a significant proportion.

Full tauri info output

[✔] Environment
    - OS: Windows 6.3.9600 i386 (X32)
    ✔ WebView2: 109.0.1518.78
    ✔ MSVC: Visual Studio Professional 2017
    ✔ rustc: 1.77.2 (25ef9e3d8 2024-04-09)
    ✔ cargo: 1.77.2 (e52e36006 2024-03-26)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: 1.77.2-i686-pc-windows-msvc (default)
    - node: 22.9.0
    - pnpm: 9.12.1
    - npm: 10.8.3

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

[-] Plugins
    - tauri-plugin-shell 🦀: 2.0.1
    - @tauri-apps/plugin-shell : not installed!

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../src

Stack trace

No response

Additional context

I compiled on both Windows 8 x86 and x64 environments, and tested on Windows 7, but it still could not run.

@kingyang kingyang added status: needs triage This issue needs to triage, applied to new issues type: bug labels Oct 16, 2024
@kingyang
Copy link
Author

The apps have been installed in Win7:
image

@kingyang kingyang changed the title [bug] Tauri 2.0 cannot run on Windows 7 SP1(x68 or x64) [bug] Tauri 2.0 cannot run on Windows 7 SP1(x86 or x64) Oct 16, 2024
@amrbashir
Copy link
Member

closing as duplicate of #10834

@amrbashir amrbashir closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2024
@FabianLars
Copy link
Member

Can you translate what the dialog says? Or at least copy paste the text so we can translate it ourselves?

@kingyang
Copy link
Author

kingyang commented Oct 16, 2024

@FabianLars

image

Problem signature:
Problem Event Name: APPCRASH
Application Name: demo-1.77.2-x86-bywin8x86-tauri2.03.exe
Application Version: 0.1.0.0
Application Timestamp: 670f628a
Fault Module Name: demo-1.77.2-x86-bywin8x86-tauri2.03.exe
Fault Module Version: 0.1.0.0
Fault Module Timestamp: 670f628a
Exception Code: c0000005
Exception Offset: 000abbb3
OS Version: 6.1.7601.2.1.0.256.4
Locale ID: 2052
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt

image

TIP:Vmware PC

@kingyang
Copy link
Author

pnpm tauri info:

[✔] Environment
- OS: Windows 6.3.9600 x86_64 (X64)
✔ WebView2: 109.0.1518.140
✔ MSVC: Visual Studio Professional 2017
✔ rustc: 1.77.2 (25ef9e3d8 2024-04-09)
✔ cargo: 1.77.2 (e52e36006 2024-03-26)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: 1.77.2-i686-pc-windows-msvc (default)
- node: 22.9.0
- pnpm: 9.12.1
- yarn: 1.22.22
- npm: 10.8.3

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

[-] Plugins
- tauri-plugin-shell 🦀: 2.0.1
- @tauri-apps/plugin-shell : not installed!

[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../src

@FabianLars
Copy link
Member

Thanks!

@kingyang
Copy link
Author

@FabianLars
I made some new attempts.

Build environment:
Windows 7 SP1 x64
(pnpm tauri build run error, the possible issue is with cli.win32-x64-msvc.node in @tauri-apps/cli)

Test 1:
cargo build --release (x86_64-pc-windows-msvc)

Runtime environment:
Windows 7 SP1 x64: Runs normally
Windows 8 SP1 x64: Runs normally

Test 2:
cargo build --release --target i686-pc-windows-msvc

Runtime environment:
Windows 7 SP1 x64: Abnormal
Windows 7 SP1 x86: Abnormal
Windows 8 SP1 x64: Runs normally
Windows 8 SP1 x86: Runs normally

Build environment:
Windows 11 x64

Test 3:
pnpm build (1.77.2 x86_64-pc-windows-msvc)

Runtime environment:
Windows 7 SP1 x64: Runs normally
Windows 8 SP1 x64: Runs normally

Test 4:
pnpm build -t i686-pc-windows-msvc (1.77.2)
Runtime environment:
Windows 7 SP1 x64: Abnormal
Windows 7 SP1 x86: Abnormal
Windows 8 SP1 x64: Runs normally
Windows 8 SP1 x86: Runs normally

@FabianLars
Copy link
Member

That looks a bit like an issue with the rust compiler or something 🤔

Thanks for the extensive testing! I'm still out sick for a while so I can't look into it right now :/

@kingyang
Copy link
Author

@FabianLars
Wishing you a speedy recovery. I feel the possible issue lies with wry or tauri-runtime-wry, specifically regarding compatibility with Windows 7, because I have tested some programs under Tauri 1.7 that run normally on Windows 7.

@kingyang
Copy link
Author

kingyang commented Oct 21, 2024

Project wry:
cargo build --release --example simple
Runtime environment: Windows 7 x64
simple-1.77.2-x86_64-pc-windows-msvc-by-win11-x64.exe runs well.
simple-1.77.2-i686-pc-windows-msvc-by-win11-x64.exe throws an exception(the same error occurs on Windows 7 x86 ):
RUST_BACKTRACE=full ./simple-1.77.2-i686-pc-windows-msvc-by-win11-x64-raw.exe thread 'main' panicked at .....\tao-0.29.1\src\platform_impl\windows\event_loop.rs:708:5:
assertion failed: subclass_result.as_bool() stack backtrace: 0: 0x109bc3b -

@kingyang
Copy link
Author

Now the issue points to tao-0.29.1\src\platform_impl\windows\event_loop.rs:708:5

@kingyang
Copy link
Author

@amrbashir @FabianLars
Could you please reopen the current issue as 'Open'? Thank you.

@kingyang
Copy link
Author

#tauri-apps/tao#990

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Windows 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