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] Tool doesn't successfuly patch WSA anymore #813

Open
1 task done
joeyoropesa-dev opened this issue Sep 28, 2024 · 4 comments
Open
1 task done

[Bug] Tool doesn't successfuly patch WSA anymore #813

joeyoropesa-dev opened this issue Sep 28, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@joeyoropesa-dev
Copy link

joeyoropesa-dev commented Sep 28, 2024

Steps to reproduce/复现步骤

  1. As usual I've did with older versions of WSA, cloning the repo in WSL 2 environment
  2. Updating all packages
  3. Executing ./scripts/run.sh and follow instructions to build WSA

Expected behaviour/预期行为

Successfuly builded, installed and executed

Actual behaviour/实际行为

Build is successful (completed) but after executing run.bat and WSA Settings opens, one window loads VM for a short time and automatically crashes while WSA Settings are still open. Tried to re-run VM, but no success - it loads and closes. No error messages and MoBox reported crash in Event Logger (Applications)

When you restore initrd.img to default version (not patched by this tool), it boots successfuly (but without root and gapps installed)

MagiskOnWSALocal commit full SHA/MagiskOnWSALocal 提交的完整哈希

599e027/MagiskOnWSALocal

Linux distribution info/Linux 发行版信息

PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
VERSION_ID="2024.3"
VERSION="2024.3"
VERSION_CODENAME="kali-rolling"
ID=kali
ID_LIKE=debian
HOME_URL="https://www.kali.org/"
SUPPORT_URL="https://forums.kali.org/"
BUG_REPORT_URL="https://bugs.kali.org/"
ANSI_COLOR="1;31"

Windows version/Windows 版本

10.0.26100.1876

Build Parameters/构建参数

COMMAND_LINE=--arch x64 --release-type retail --root-sol magisk --magisk-ver stable --install-gapps --remove-amazon
INFO: Architecture: x64
INFO: Release Type: retail
INFO: Magisk Version: stable
INFO: Root Solution: magisk
INFO: Compress Format: none
INFO: Release Name: Retail

Version requirement/版本要求

  • I am using latest commit of MagiskOnWSALocal/我正在使用最新 commit 的版本

Logs/日志

Screenshot 2024-09-28 090118

Faulting application name: WsaClient.exe, version: 2407.40000.0.0, time stamp: 0x668f1a10
Faulting module name: WsaClient.exe, version: 2407.40000.0.0, time stamp: 0x668f1a10
Exception code: 0xc0000409
Fault offset: 0x0000000000023047
Faulting process id: 0x2730
Faulting application start time: 0x1DB1177123BD2E8
Faulting application path: D:\Others\SystemA64\WsaClient\WsaClient.exe
Faulting module path: D:\Others\SystemA64\WsaClient\WsaClient.exe
Report Id: c88b483e-88b4-4c41-8954-95b30296c51e
Faulting package full name: MicrosoftCorporationII.WindowsSubsystemForAndroid_2407.40000.0.0_x64__8wekyb3d8bbwe
Faulting package-relative application ID: App

Fault bucket 1628685039626230027, type 5
Event Name: MoBEX
Response: Not available
Cab Id: 0

Problem signature:
P1: MicrosoftCorporationII.WindowsSubsystemForAndroid_2407.40000.0.0_x64__8wekyb3d8bbwe
P2: praid:App
P3: 2407.40000.0.0
P4: 668f1a10
P5: WsaClient.exe
P6: 2407.40000.0.0
P7: 668f1a10
P8: 0000000000023047
P9: c0000409
P10: 0000000000000007

Attached files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.eb246ff2-90f7-4c46-9bec-da3511cdef98.tmp.mdmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.2030b70a-d72a-4360-a64c-524a578d6364.tmp.WERInternalMetadata.xml
WPR_initiated_DiagTrackMiniLogger_OneTrace_User_Logger_20240808_1_EC_0_inject.etl
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.e86f7b9b-0e50-49bc-b9af-0ac42b995bc9.tmp.etl
WPR_initiated_DiagTrackMiniLogger_WPR System Collector_inject.etl
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.d56ec0c7-907a-4912-8103-c6abbc84dd4c.tmp.etl
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.6eba42fd-dfba-46ce-91f8-c266a54da8fe.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.495f482f-6fcb-4240-be41-1ffd4118c57c.tmp.txt
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.5a5ef64b-5245-433c-930b-fe6b4b930c3a.tmp.xml

These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_MicrosoftCorpora_a0b78b1a43177ce309548791101d65b9fb09d_e7463532_73a1b368-e5c6-443d-9473-ece7910c007e

Analysis symbol: 
Rechecking for solution: 0
Report Id: c88b483e-88b4-4c41-8954-95b30296c51e
Report Status: 2147487744
Hashed bucket: b90c997cc20f8f8ee69a406a15ea190b
Cab Guid: 0
@joeyoropesa-dev joeyoropesa-dev added the bug Something isn't working label Sep 28, 2024
@Cr4z33
Copy link

Cr4z33 commented Oct 2, 2024

@joeyoropesa-dev out of curiosity are you a Windows 11 Insider?

I ask because I got the same behaviour after latest 1000.26100.28.0 update.

@joeyoropesa-dev
Copy link
Author

@joeyoropesa-dev out of curiosity are you a Windows 11 Insider?

I ask because I got the same behaviour after latest 1000.26100.28.0 update.

Well I was but now slowly leaving it for stability. Stable version of 24H2 should be released soon so yeah.

Anyway, Microsoft is killing WSA support so probably they don't care will you patch WSA or not so I guess this should not be actual issue since no matter what tools I've used to patch WSA even manually to patch it, from latest versions of WSA it showing this issue.

I don't have any issues in patching older versions of WSA but newer one simply doesn't work. Only KernelSU method works (without gapps of course since that would require Tools/initrd.img patching and as soon you touch initrd.img to patch something, newer versions of WSA simply gets killed)

I've also tried to apply KernelSU modules with gapps included but that simply crashed WSA and in the next boot you can see that gapps folders missing from the module in /data/adb/modules and also missing from /system/priv-app, /vendor and so on...

@Cr4z33
Copy link

Cr4z33 commented Oct 2, 2024

I don't know why, but without doing anything (no OS updates, no registry tweaks, nothing) WSA has started working again... 🤯

@Cr4z33
Copy link

Cr4z33 commented Oct 3, 2024

OK I spoke too soon... today same issue again... 💀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants