https://bugs.winehq.org/show_bug.cgi?id=52092
Bug ID: 52092 Summary: game pass Product: Wine Version: 6.21 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: master.zion@gmail.com Distribution: ---
Hi everyone... it seems it is not possible to install the xbox application for PC using wine. It would be useful to play Windows games from xbox game pass, and it will be very useful on Steam deck.
it fails during the installation startup.
------ Unhandled Exception: 0024:fixme:ntdll:EtwEventRegister ({8e9f5090-2d75-4d03-8a81-e5afbf85daf1}, 05E202EE, 00000000, 01EA96F4) stub. Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Windows.Foundation.UniversalApiContract, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRunt ime' or one of its dependencies. Module not found. at XboxInstaller.App..ctor() at XboxInstaller.App.Main() ------
https://www.xbox.com/en-IN/apps/xbox-app-for-pc
https://bugs.winehq.org/show_bug.cgi?id=52092
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|game pass |Xbox app for Windows PC | |crashes at start Component|ntdll |-unknown URL| |https://assets.xbox.com/ins | |taller/20190628.8/anycpu/Xb | |oxInstaller.exe Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Keywords| |download CC| |xerox.xerox2000x@gmail.com
--- Comment #1 from Louis Lenders xerox.xerox2000x@gmail.com --- Confirming.
Seems related to UWP so for now i fear this is future music.
The missing Windows.Foundation.UniversalApiContract seems to be contained in https://globalcdn.nuget.org/packages/microsoft.windows.sdk.contracts.10.0.22...
Google gives maybe some other useful info on this missing 'Windows.Foundation.UniversalApiContract':
https://www.thomasclaudiushuber.com/2019/04/26/calling-windows-10-apis-from-...
sha1sum XboxInstaller.exe ee07659a7efaa8ba7bd735b7ef8ad4279573e5c7 XboxInstaller.exe
https://bugs.winehq.org/show_bug.cgi?id=52092
selurvedu@dismail.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |selurvedu@dismail.de
https://bugs.winehq.org/show_bug.cgi?id=52092
Ker noa blue-t@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |blue-t@web.de
https://bugs.winehq.org/show_bug.cgi?id=52092
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jon9097@gmail.com
--- Comment #2 from Fabian Maurer dark.shadow4@web.de --- *** Bug 53023 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=52092
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |julianhoyos94@gmail.com
--- Comment #3 from Fabian Maurer dark.shadow4@web.de --- *** Bug 52188 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=52092
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de Summary|Xbox app for Windows PC |Multiple UWP apps crash at |crashes at start |start due to missing | |"Windows.Foundation.Univers | |alApiContract" (Xbox app | |for Windows PC, Minecraft | |installer)
--- Comment #4 from Fabian Maurer dark.shadow4@web.de --- Adjusting summary to reflect current state better. Not even sure how to properly address this though, the UWP stuff is weird.
https://bugs.winehq.org/show_bug.cgi?id=52092
Neko-san nekoNexus@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nekoNexus@protonmail.ch
https://bugs.winehq.org/show_bug.cgi?id=52092
harkamalsr@gmail.com harkamalsr@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |harkamalsr@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=52092
safe.bell6727@alistair23.me changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |safe.bell6727@alistair23.me
https://bugs.winehq.org/show_bug.cgi?id=52092
--- Comment #5 from safe.bell6727@alistair23.me --- Created attachment 75067 --> https://bugs.winehq.org/attachment.cgi?id=75067 Exception backtrace
https://bugs.winehq.org/show_bug.cgi?id=52092
--- Comment #6 from safe.bell6727@alistair23.me --- Same issue on Wine 8.14, I have attached a full backtrace
https://bugs.winehq.org/show_bug.cgi?id=52092
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |grandrodri3@gmail.com
--- Comment #7 from Ken Sharp imwellcushtymelike@gmail.com --- *** Bug 56626 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=52092
tobil4sk@outlook.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tobil4sk@outlook.com
--- Comment #8 from tobil4sk@outlook.com --- I am able to workaround this error with XboxInstaller.exe by changing the Windows version to Windows 10. On the download page, it says that Windows 10 is the minimum requirement.
However, when the app starts with all required dependencies installed (corefonts, d3dcompiler47 and I think dotnet as well), the app then complains that the Windows version is outdated and then tries to run the Windows updater.
The download page also says that 19H1 or higher is required, but I'm not too sure how to deal with that and maybe that's for a separate thread.
https://bugs.winehq.org/show_bug.cgi?id=52092
--- Comment #9 from Tobi L tobil4sk@outlook.com --- Created attachment 76521 --> https://bugs.winehq.org/attachment.cgi?id=76521 Patch to avoid the UniversalApiContract 7 crash
This patch seems to avoid the crash when the prefix is set to Windows 7.
https://bugs.winehq.org/show_bug.cgi?id=52092
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |infyquest@gmail.com
--- Comment #10 from Vijay Kamuju infyquest@gmail.com --- Created a MR with tests for this based on your patch : https://gitlab.winehq.org/wine/wine/-/merge_requests/5771
https://bugs.winehq.org/show_bug.cgi?id=52092
Etaash Mathamsetty etaash.mathamsetty@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |etaash.mathamsetty@gmail.co | |m
--- Comment #11 from Etaash Mathamsetty etaash.mathamsetty@gmail.com --- Hello I just tried the xbox installer, and using Windows 7 I get the same outdated message with the patch. The real issue here is init_current_version returning the wrong version (windows 8) instead of the correct version (using the prefix's windows version), the app calls GetVersionExW to get the windows version
https://bugs.winehq.org/show_bug.cgi?id=52092
--- Comment #12 from Etaash Mathamsetty etaash.mathamsetty@gmail.com --- the logic looks obviously wrong, im kind of curious how it got into this state. (or maybe I just can't read the code properly)
https://bugs.winehq.org/show_bug.cgi?id=52092
--- Comment #13 from Vijay Kamuju infyquest@gmail.com --- Can you try using a clean prefix?
https://bugs.winehq.org/show_bug.cgi?id=52092
--- Comment #14 from Etaash Mathamsetty etaash.mathamsetty@gmail.com --- now it is getting the same crash even with the patch
https://bugs.winehq.org/show_bug.cgi?id=52092
--- Comment #15 from Vijay Kamuju infyquest@gmail.com --- Marked the patch as draft till we clarify the fix.
https://bugs.winehq.org/show_bug.cgi?id=52092
--- Comment #16 from Tobi L tobil4sk@outlook.com ---
Created a MR with tests for this based on your patch
Thanks!
I get the same outdated message with the patch
To clarify, are you getting the "Windows.Foundation.UniversalApiContract" crash? Or are you talking about the incorrect version check once the app starts? Could you confirm the windows version and what the error is.
I did some debugging, it seems there is an issue on this line:
https://gitlab.winehq.org/wine/wine/-/blob/951e0e27a743e52c75c7fedc0b1eaa9eb...
Here, nt->OptionalHeader.MajorOperatingSystemVersion is 4, so it reverts to the default current version which is Windows 8.0.
https://bugs.winehq.org/show_bug.cgi?id=52092
--- Comment #17 from Tobi L tobil4sk@outlook.com --- I've opened a separate thread about the version check logic, as that's unrelated to the UniversalApiContract crash: https://bugs.winehq.org/show_bug.cgi?id=56795
https://bugs.winehq.org/show_bug.cgi?id=52092
--- Comment #18 from Vijay Kamuju infyquest@gmail.com --- Ok then, I am removing the draft status from patch.
https://bugs.winehq.org/show_bug.cgi?id=52092
Fox2Code fox2code@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fox2code@gmail.com
--- Comment #19 from Fox2Code fox2code@gmail.com --- The missing dlls are available on nuget website.
There: https://www.nuget.org/packages?q=WindowsContract
The package name doesn't exactly match the dlls names.