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.rc can not run on windows7 32bit #10834

Closed
Gofive opened this issue Aug 30, 2024 · 19 comments · Fixed by #11906
Closed

[bug] tauri-2.0.rc can not run on windows7 32bit #10834

Gofive opened this issue Aug 30, 2024 · 19 comments · Fixed by #11906
Labels
platform: Windows status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@Gofive
Copy link

Gofive commented Aug 30, 2024

Describe the bug

tauri-2.0.rc can not run on windows7 32bit.
I have tested with 'yarn create tauri-app --rc'. It is crashed on my win7 bit32 ,dont have any problem hint, but tauri-v1 can run perfectly.

Reproduction

No response

Expected behavior

No response

Full tauri info output

null

Stack trace

No response

Additional context

No response

@Gofive Gofive added status: needs triage This issue needs to triage, applied to new issues type: bug labels Aug 30, 2024
@FabianLars
Copy link
Member

Do you see any error messages? Did you build the app with Rust 1.75 or below? (1.75 is the last version to properly support win7)

@Gofive
Copy link
Author

Gofive commented Sep 2, 2024

Do you see any error messages? Did you build the app with Rust 1.75 or below? (1.75 is the last version to properly support win7)

release 32bit do not have any error messages, rust 1.75.but tauri v1 can run on the win7 32bit device.

@FabianLars
Copy link
Member

Okay thanks. I don't have access to my VMs at the moment so it may take a while for me to get back to you.

@Gofive
Copy link
Author

Gofive commented Sep 4, 2024

Okay thanks. I don't have access to my VMs at the moment so it may take a while for me to get back to you.

any update on this?

@kingyang
Copy link

I encountered the same issue. Windows 7 and 8 both don't work.

@FabianLars
Copy link
Member

Are we talking about tauri dev or the resulting app bundle (tauri build from another machine). If the latter, what was the exact build command you used?

Furthermore, does anyone have any kind of error message for me? If not, did you try starting the exe from inside a Powershell/cmd.exe terminal? That sometimes helps.

@kingyang
Copy link

the same issue: #11381

@liigo
Copy link
Contributor

liigo commented Nov 11, 2024

my issue: no ProcessPrng founded in bcryptprimitives.dll
tauri 2 + windows 7
I'v tried embedBootstrapper, still not working.

---------------------------
hi-tauri-dioxus.exe - 无法找到入口
---------------------------
无法定位程序输入点 ProcessPrng 于动态链接库 bcryptprimitives.dll 上。 
---------------------------
确定   
---------------------------

@kingyang
Copy link

kingyang commented Nov 11, 2024

@liigo
Check out #11381.
It might be an issue related to the Rust version; Windows 7 only supports up to 1.77.2.
I’ve decided to give up on Windows 7—there are just too many issues with it.


查看 #11381
可能是rust版本的问题 ,windows 7 最高支持到1.77.2
我已经放弃了windows 7, windows 7下面问题太多了

@liigo
Copy link
Contributor

liigo commented Nov 12, 2024

@kingyang I see, thank you.

明白了,谢谢。只因Tauri说了支持Win7,我想试试而已,不支持也无所谓啦。

https://tauri.app/distribute/windows-installer/#supporting-windows-7

@FabianLars
Copy link
Member

Sooo, i assuming #11381 is really the same is this one here then it seems like the issue is this line https://github.com/tauri-apps/tao/blob/dev/src/platform_impl/windows/dark_mode.rs#L24

I didn't test yet if skipping this line at runtime instead of removing it at compile time works, but if it does i think it'd be fine to disable it on windows 7 in 32bit binaries, that should be an extremely small userbase, right @amrbashir ?

@amrbashir
Copy link
Member

I don't think loading uxtheme.dll is the cause of the issue since we had that in v1 (https://github.com/tauri-apps/tao/blob/6f02103ca4869f082a0072e6ef0aa8424ec416bb/src/platform_impl/windows/dark_mode.rs#L163).

This issue maybe related to #11674 and hopefully fixed by https://github.com/tauri-apps/tao/pull/1022/files

@kingyang
Copy link

@FabianLars @amrbashir
This is what I found during my test:
subclass_event_target_window throws exception on Windows 7 x86
tauri-apps/tao#990

@FabianLars
Copy link
Member

I don't think loading uxtheme.dll is the cause of the issue since we had that in v1 (tauri-apps/tao@6f02103/src/platform_impl/windows/dark_mode.rs#L163).

It was the last thing i commented out (or rather replaced with HMODULE::Default()) before it started to work. I'll double check again and record it. It's also the line windbg steered me into (or maybe not, that's shit too complicated for me)

This issue maybe related to #11674 and hopefully fixed by tauri-apps/tao#1022 (files)

I already tested the first commit and it didn't help. I'll test the new one from a few hours ago.

This is what I found during my test:
subclass_event_target_window throws exception on Windows 7 x86

Maybe there are multiple errors then 🤔

@FabianLars
Copy link
Member

Okay, double checked the first commit 2c03515 and it did not help, but the new one 1f62329 works.

@mcitem
Copy link

mcitem commented Nov 30, 2024

Taurii 2 can be said to have almost no support for Windows 7
And Some dependencies are not supported by Rust 1.75.0 version.
how to create a lower version of TAURI that supports Windows 7, such as fixed TAURI v1?

@FabianLars
Copy link
Member

Taurii 2 can be said to have almost no support for Windows 7

Why not? Apart from this 32-bit specific issue here tauri v2 works on my win 7 machine. We even downgraded the MSRV and conflicting dependencies to 1.77.2 a while back (the last version with built-in windows 7 support - yes, they changed it from 1.75 to that, i had it wrong for a while too).

And Some dependencies are not supported by Rust 1.75.0 version.

Changing that to 1.77.2 all current deps should work though you may have to use cargo update -p <pkg> --precise <ver> to downgrade things (for me it was only bitstream-io)

how to create a lower version of TAURI that supports Windows 7, such as fixed TAURI v1?

Yes, Tauri 1 should also still support windows 7.


That all said, don't expect Tauri to support windows 7 for that much longer. I expect us to drop it by v3 because it gets harder to support day by day.

@Gofive
Copy link
Author

Gofive commented Dec 9, 2024

will be fixed in next verison?

@FabianLars
Copy link
Member

should be, yes

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

Successfully merging a pull request may close this issue.

6 participants