WSABuilds icon indicating copy to clipboard operation
WSABuilds copied to clipboard

[BUG] Cannot run on Copilot+ PCs and other ARM64 Windows 11 devices

Open TGSAN opened this issue 1 year ago • 59 comments

Describe the bug

After installation, I found that the WSA settings app lost i18n, so it will only display the English interface. At the same time, when starting, it will display the Starting Windows Subsystem for Android™ window, and then disappear after a few minutes. During the window display, I noticed that vmmemCmZygote had no memory usage changes.

Steps to reproduce the issue

  1. Download WSA_2311.40000.5.0_arm64_Release-Nightly-with-KernelSU-v0.7.5-MindTheGapps-13.0-RemovedAmazon.7z
  2. Extract and move folder to a suitable location.
  3. Run Run.bat
  4. Start WSA.

Expected behaviour

WSA started

Downloaded Build Of WSA

WSA_2311.40000.5.0_arm64_Release-Nightly-with-KernelSU-v0.7.5-MindTheGapps-13.0-RemovedAmazon.7z
In GitHub release page.

Windows build number

10.0.22635.3212

PC Specification

System Model Surface Pro X
System Type ARM64-based PC
Processor Microsoft SQ1 @ 3.0 GHz,2995 Mhz,8 Cores RAM 16.0 GB

Additional context

No response

TGSAN avatar Mar 03 '24 17:03 TGSAN

galaxybook2 扩容的8G表示可以正常的使用,比我三年前装的好多了。不过同样是只显示英文。

FEI352 avatar Mar 13 '24 14:03 FEI352

I tried and found that only the KernelSU version fails to boot. Additionally, the loss of i18n is due to makepri.exe becoming a file without an extension. Switching to a version other than KernelSU and then changing makepri.exe back to its original state resolves the issue.

TGSAN avatar Mar 13 '24 16:03 TGSAN

Thank you for the info. Issue will be fixed in the first WSABuilds LTS update.

MustardChef avatar Mar 13 '24 16:03 MustardChef

For me every build doesnt work, the only one that works is the official one from the microsoft store on my arm64 device.

Wapitiii avatar Apr 14 '24 15:04 Wapitiii

For me every build doesnt work, the only one that works is the official one from the microsoft store on my arm64 device.

Including LTS Builds?

MustardChef avatar Apr 14 '24 16:04 MustardChef

Including LTS Builds?

Yep, tried latest build. It just loads and then closes itself.

Wapitiii avatar Apr 14 '24 16:04 Wapitiii

Including LTS Builds?

Yep, tried latest build. It just loads and then closes itself.

What ARM CPU do you have?

MustardChef avatar Apr 14 '24 16:04 MustardChef

What ARM CPU do you have?

Snapdragon 8cx Gen 3

Wapitiii avatar Apr 14 '24 17:04 Wapitiii

Hey @MustardChef i've found something related about that issue:

Protocol name: Application Source: Application Error Date: 15.04.2024 23:36:43 Event ID: 1000 Task Category: Application Crash Events Level: Error Keywords: User: X13S-THINKPAD\Admin Computer: X13S-THINKPAD Description: Faulting application name: WsaClient.exe, Version: 2311.40000.5.0, Timestamp: 0x6595e732 Faulting module name: ucrtbase.dll, Version: 10.0.22621.3374, Timestamp: 0xac93a291 Exception code: 0xc0000409 Fault offset: 0x0000000000076ebc Faulting process ID: 0x1878 Faulting application start time: 0x1DA8F7CB72007AD Faulting application path: C:\Users\Admin\Documents\WSA\WsaClient\WsaClient.exe Faulting module path: C:\Windows\System32\ucrtbase.dll Report ID: 373befac-ee9b-4676-81c2-bcc4677c8945 Full name of the faulty package: MicrosoftCorporationII.WindowsSubsystemForAndroid_2311.40000.5.0_arm64__8wekyb3d8bbwe Application ID relative to the faulty package: App

WinDBG: 0:034> g 00:17:03.423244 ~ Heartbeat timeout ignored due to attached debugger. ModLoad: 00007ff834680000 00007ff8346a0000 C:\Windows\system32\wbem\wbemprox.dll ModLoad: 00007ff845c60000 00007ff845d77000 C:\Windows\SYSTEM32\wbemcomn.dll ModLoad: 00007ff838230000 00007ff83825d000 C:\Windows\system32\wbem\wbemsvc.dll ModLoad: 00007ff836580000 00007ff8367bb000 C:\Windows\system32\wbem\fastprox.dll ModLoad: 00007ff8336d0000 00007ff833705000 C:\Windows\SYSTEM32\amsi.dll ModLoad: 00007ff8316e0000 00007ff8317a5000 C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.24030.9-0\MpOav.dll ModLoad: 00007ff840c80000 00007ff840c95000 C:\Windows\system32\version.dll D:\a_work\1\s\WsaClient\Framework\InstanceManager.cpp(1348)\WsaClient.exe!00007FF60F259064: (caller: 00007FF60F25C7E8) Exception(2) tid(4d44) 80370109 The process encountered a timeout because no response was received from the virtual computer or container. CallContext:[\InstanceManagerRun\StartNewSession] (6c8.4d44): C++ EH exception - code e06d7363 (first chance) (6c8.4d44): Unknown exception - code c000041d (!!! second chance !!!) KERNELBASE!RaiseException+0x54: 00007ff8`583d8464 910243ff add sp,sp,#0x90

Wapitiii avatar Apr 15 '24 21:04 Wapitiii

I found the only 2 versions that work for me:

WSA_2311.40000.5.0_arm64_Release-Nightly-NoGApps-NoAmazon.7z

WSA_2311.40000.5.0_arm64_Release-Nightly-NoGApps.7z

Might be a gapps issue?

Wapitiii avatar Apr 15 '24 23:04 Wapitiii

I found the only 2 versions that work for me:

WSA_2311.40000.5.0_arm64_Release-Nightly-NoGApps-NoAmazon.7z

WSA_2311.40000.5.0_arm64_Release-Nightly-NoGApps.7z

Might be a gapps issue?

Probably.

MustardChef avatar Apr 25 '24 20:04 MustardChef

I have check on a Windows 11 arm64 device (Surface Pro X) and all WSABuilds LTS 1 builds seem to be working for me.

MustardChef avatar Apr 25 '24 20:04 MustardChef

All builds can't run on ASUS Vivobook S 15 (X1E-78-100), even the official one.

Aloereed avatar Jun 19 '24 02:06 Aloereed

Can't run on Surface Pro 11th, X Plus version

HappyMax0 avatar Jun 19 '24 08:06 HappyMax0

Can't run on Surface Pro 11th, X Plus version

@HappyMax0 Even the official version?

MustardChef avatar Jun 19 '24 09:06 MustardChef

I've tried , the offical version also can't be launched.


发件人: MustardChef @.> 发送时间: 2024年6月19日 17:17 收件人: MustardChef/WSABuilds @.> 抄送: HappyMax0 @.>; Mention @.> 主题: Re: [MustardChef/WSABuilds] [BUG] Cannot run in ARM64 devices (Issue #325)

Can't run on Surface Pro 11th, X Plus version

@HappyMax0https://github.com/HappyMax0 Even the official version?

― Reply to this email directly, view it on GitHubhttps://github.com/MustardChef/WSABuilds/issues/325#issuecomment-2178182895, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHEPQDJ3SDR6XKFXDHAA6A3ZIFEEPAVCNFSM6AAAAABEEDIL7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZYGE4DEOBZGU. You are receiving this because you were mentioned.Message ID: @.***>

HappyMax0 avatar Jun 19 '24 09:06 HappyMax0

Seems like something was removed in 24H2. Without access to a Snapdragon X processor system or 24H2, I cannot diagnose the issue. Guess we should wait until someone finds the cause.

MustardChef avatar Jun 19 '24 09:06 MustardChef

Happens on Surface Pro 11 w Snapdragon X Elite as well.

The VmmemWSA seems to hang a certain number of CPU threads to 100% for a few minutes and then closes. The GApps Amazon Magisk one hangs between 4-7 threads seemingly randomly. The KernelSU one always only hangs one thread (constant 8% CPU usage). Changing display driver makes no difference. Haven't tried the GApps-less versions yet

2001zhaozhao avatar Jun 19 '24 17:06 2001zhaozhao

Seems like something was removed in 24H2.

I've upgraded from 23h2 to 24h2, WSA still works on my arm64 device with the 8cx gen 3. image

Wapitiii avatar Jun 19 '24 17:06 Wapitiii

Ok tried both the Amazon only WSABuilds as well as the official WSA. These also don't work but with a different behavior. Both crash during launch quickly, getting to about 400MB memory usage before shutting down. I'm starting to think maybe Microsoft just didn't bother with WSA support on these new CPUs

2001zhaozhao avatar Jun 19 '24 18:06 2001zhaozhao

GApps-less versions also cannot be launched.

获取Outlook for Androidhttps://aka.ms/AAb9ysg


From: Jason Zhao @.> Sent: Thursday, June 20, 2024 1:51:04 AM To: MustardChef/WSABuilds @.> Cc: HappyMax0 @.>; Mention @.> Subject: Re: [MustardChef/WSABuilds] [BUG] Cannot run in ARM64 devices (Issue #325)

Happens on Surface Pro 11 w Snapdragon X Elite as well.

The VmmemWSA seems to hang a certain number of CPU threads to 100% for a few minutes and then closes. The GApps Amazon Magisk one hangs between 4-7 threads seemingly randomly. The KernelSU one always only hangs one thread (constant 8% CPU usage). Changing display driver makes no difference. Haven't tried the GApps-less versions yet

― Reply to this email directly, view it on GitHubhttps://github.com/MustardChef/WSABuilds/issues/325#issuecomment-2179242318, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHEPQDOENLXIKOKQO43VYYLZIHAIRAVCNFSM6AAAAABEEDIL7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZZGI2DEMZRHA. You are receiving this because you were mentioned.Message ID: @.***>

HappyMax0 avatar Jun 19 '24 23:06 HappyMax0

Each version don't work on Surface Pro 11 with XElite inside, also the official version installed by install Amazon Store. They have similar behavior —— run for a minute and show four same window what titled "Windows Subsystem of Android", and then all closed. The IP could be correct during the first time of trying starting, and then the port will changes to 0.

MOONOTUS avatar Jun 24 '24 02:06 MOONOTUS

Each version don't work on Surface Pro 11 with XElite inside, also the official version installed by install Amazon Store. They have similar behavior —— run for a minute and show four same window what titled "Windows Subsystem of Android", and then all closed. The IP could be correct during the first time of trying starting, and then the port will changes to 0.

Yes this is exactly what's happening on my Surface Laptop 7.

raptor1jec avatar Jun 26 '24 21:06 raptor1jec

Each version don't work on Surface Pro 11 with XElite inside, also the official version installed by install Amazon Store. They have similar behavior —— run for a minute and show four same window what titled "Windows Subsystem of Android", and then all closed. The IP could be correct during the first time of trying starting, and then the port will changes to 0.

Same here for my X Plus Surface Pro 11

jom-g avatar Jun 28 '24 05:06 jom-g

Same for lenovo 7x snapdragon x elite

josh900 avatar Jun 28 '24 16:06 josh900

@MustardChef - If you modify the vendor and system partitions, set the properties to make it an arm64-v8 only distro, replace the armv7 binaries/services with armv8 versions, this will be resolved. I'm going to try and write up some instructions to repro how I made it work through all my trial/error.

Buuuuuuut... Here ya go. And I owe it to your build.sh script to show how to PROPERLY mount these partitions as rw then convert back to vhdx. That saved my arse, because manually editing via hex editor / Notepad++ was not fun.

https://x.com/sinclairinat0r/status/1812676637953019964

snickler avatar Jul 15 '24 03:07 snickler

https://www.xda-developers.com/windows-subsystem-for-android-snapdragon-how-to/

https://github.com/snickler/WSA-Patched/releases/tag/0.0.1 <-- I zipped up my system and vendor vhdx. The same exact steps on here to do the custom WSA install folder apply for replacing the vhdxs. There's some things not implemented properly. The Camera doesn't work due to one of the media components still being armv7, but I'm sure someone with actual experience with Android internals can fix this.

BTW, I pulled the armv8 versions and some of the changes from one of the Android 13 Armv8 Google emulators.

@MustardChef - If you want to play around with these and modify, feel free :).

snickler avatar Jul 23 '24 23:07 snickler

https://www.xda-developers.com/windows-subsystem-for-android-snapdragon-how-to/

https://github.com/snickler/WSA-Patched/releases/tag/0.0.1 <-- I zipped up my system and vendor vhdx. The same exact steps on here to do the custom WSA install folder apply for replacing the vhdxs. There's some things not implemented properly. The Camera doesn't work due to one of the media components still being armv7, but I'm sure someone with actual experience with Android internals can fix this.

BTW, I pulled the armv8 versions and some of the changes from one of the Android 13 Armv8 Google emulators.

@MustardChef - If you want to play around with these and modify, feel free :).

First thank you for your big achievement I have a question it work this patch for me but I have a problem all Apps that must run a video Iptv youtube brave browser when I open youtube websit not working . Do you have any idea why ??!

arasshah avatar Jul 25 '24 12:07 arasshah

https://www.xda-developers.com/windows-subsystem-for-android-snapdragon-how-to/ https://github.com/snickler/WSA-Patched/releases/tag/0.0.1 <-- I zipped up my system and vendor vhdx. The same exact steps on here to do the custom WSA install folder apply for replacing the vhdxs. There's some things not implemented properly. The Camera doesn't work due to one of the media components still being armv7, but I'm sure someone with actual experience with Android internals can fix this. BTW, I pulled the armv8 versions and some of the changes from one of the Android 13 Armv8 Google emulators. @MustardChef - If you want to play around with these and modify, feel free :).

First thank you for your big achievement I have a question it work this patch for me but I have a problem all Apps that must run a video Iptv youtube brave browser when I open youtube websit not working . Do you have any idea why ??!

Likely related to the same issue of the media service I haven't gotten to work properly yet, which is likely causing the issue I have with /storage/emulated/0 not being mounted properly. I'm trying to see if I can pull something else from the android emulator that would work.

snickler avatar Jul 25 '24 13:07 snickler

I tried the patched WSA and it does work, which is amazing! It is quite buggy though. Unfortunately Amazon Appstore does not let me log in (the verification code step doesn't respond), and same goes for Kindle. Mobile firefox doesn't seem to be able to load any webpage. I'd love to see these issues ironed out.

Btw if you already have WSA from WSABuilds installed, I haven't tried but you should be able to just copy the two files from wsa-patched.7z into your WSA installation folder (replacing the files that are already there) and this should result in a working WSA installation. Of course it won't include things like google play services though.

Edit: Authenticator app login on Amazon account does work. Weird. Might be my internet since i am on mobile hotspot.

2001zhaozhao avatar Jul 25 '24 21:07 2001zhaozhao