https://bugs.winehq.org/show_bug.cgi?id=46313
Bug ID: 46313 Summary: Zwift: Crash on startup Product: Wine Version: 4.0-rc2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: jamie.magee@gmail.com Distribution: ---
Created attachment 63045 --> https://bugs.winehq.org/attachment.cgi?id=63045 Install and run attempt
I'm trying to run Zwift [1] on wine 4.0-rc2. The minimum requirements [2] are Windows 7, 64-bit, and .NET Framework (Though I'm not 100% sure which version).
I've attached my logs from installing ZwiftLauncher.exe in a 64-bit prefix with wine-mono, and subsequently trying to launch it.
I've also (unsuccessfully) attempted some other setup attempts with the help of Bob Wya in the forums [3] if those logs are of any use.
Please let me know if you need any more information.
[1] https://cdn.zwift.com/app/ZwiftSetup.exe [2] https://support.zwift.com/en_us/what-are-the-minimum-device-requirements-for... [3] https://forum.winehq.org/viewtopic.php?f=2&t=31589
https://bugs.winehq.org/show_bug.cgi?id=46313
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de URL| |https://cdn.zwift.com/app/Z | |wiftSetup.exe Ever confirmed|0 |1 Keywords| |dotnet, download Status|UNCONFIRMED |NEW
--- Comment #1 from Fabian Maurer dark.shadow4@web.de --- Confirming.
https://bugs.winehq.org/show_bug.cgi?id=46313
Reonaydo tuupic@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tuupic@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=46313
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox.xerox2000x@gmail.com
--- Comment #2 from Louis Lenders xerox.xerox2000x@gmail.com --- Hi,
The app needs presentation framework, so mono won`t work.
I installed it in a WINEPREFIX where i had dotnet35sp1 preinstalled, and then I ran into bug 31350. Maybe ``winetricks dotnet30 is enough as well, didn`t test that.
Staging has patchset for that bug , so try wine-staging. The initial window comes up and then it starts updating, which will take some time apparenetly; I ctrl~c-ed the app, will test further tomorrow to see if it runs
@reporter of bug: Could you try the above (winetricks dotnet35sp1, and run in Staging, and report back please? Thanks in advance
sha1sum /media/louis/aqqa/ZwiftSetup.exe 2ff17cc55f3f6489b356c2f91f162a93947ef732 /media/louis/aqqa/ZwiftSetup.exe
https://bugs.winehq.org/show_bug.cgi?id=46313
--- Comment #3 from Louis Lenders xerox.xerox2000x@gmail.com --- Created attachment 64108 --> https://bugs.winehq.org/attachment.cgi?id=64108 console output
Retested in fresh WINEPREFIX; ``winetricks dotnet35sp1 win7``
Apart from dwmapi bug also seems to suffer from https://bugs.winehq.org/show_bug.cgi?id=34764
Unhandled exception: page fault on read access to 0xfffffffc in 32-bit code Backtrace: =>0 0x7c138561 IMILUnknown2Impl_Release+0x2c() in windowscodecs (0x04c8ed68) 1 0x54039ed3 EntryPoint+0x388a6() in wpfgfx_v0300 (0x04c8ed8c)
After applying 1st patch from Staging patchset for that bug, the app begins updating. (https://raw.githubusercontent.com/wine-staging/wine-staging/master/patches/w...)
After the update I end with a white window, with no text/buttons. Looks like a mshtml bug. I didn`t try winetricks ie8 as that refuses to run in 64 bit prefix.
I`ll change summary to make this bugreport useful; let`s use it to track the ``white window`` bug
https://bugs.winehq.org/show_bug.cgi?id=46313
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |mshtml Summary|Zwift: Crash on startup |Zwift: (.Net 3.x app) | |shows only white/blank | |screen on startup
--- Comment #4 from Louis Lenders xerox.xerox2000x@gmail.com --- added some info
https://bugs.winehq.org/show_bug.cgi?id=46313
Emlyn emlyn.bolton@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |emlyn.bolton@gmail.com
--- Comment #5 from Emlyn emlyn.bolton@gmail.com --- Confirmed on wine 4.11-staging / Lubuntu 19.04
1. Created a new prefix, 64bit. 2. Uninstalled mono in that prefix (couldn't install dotnet with mono installed) 3. Installed dotnet35sp1 4. Ran wine on the ZwiftSetup.exe
Updates the Zwift component, then white screens.
https://bugs.winehq.org/show_bug.cgi?id=46313
ryanjohngay@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ryanjohngay@gmail.com
--- Comment #6 from ryanjohngay@gmail.com --- On wine-5.0-rc6 (Staging) / Ubuntu 19.04.
After some experimenting, I've found that the white screen "bug" is due to the loaded website doing a "display: none;" on the body. It detects whether jQuery object is started, and if not hides all of the DOM. Of course, jQuery is only compatible with IE9+ and is therefore not created.
So the white screen bug is not a "bug" but an incompatibility.
You can see this yourself by running wine iexplore and navigating to https://launcher.zwift.com/launcher. If you have access to a Windows machine, you can emulate the different versions of iexplore MSHTML and find that below 9 the page is white, like on Wine.
https://bugs.winehq.org/show_bug.cgi?id=46313
wentam42@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wentam42@gmail.com
--- Comment #7 from wentam42@gmail.com --- While not a solution to the launcher incompatibility, I've found a workaround for those who want to play the game in wine.
The launcher will update the game correctly in wine, but we can't login or launch the game as that's all done through the web UI.
The game itself is launched with ZwiftApp.exe, and if you have not logged in via the launcher it contains it's own login screen that works in wine.
However, if ZwiftApp.exe isn't launched as a child process of ZwiftLauncher.exe, it will just start the launcher instead of the game.
So: * Download and extract "RunFromProcess" https://www.nirsoft.net/utils/run_from_process.html * $ wine ZwiftLauncher.exe * Wait for any updates to fully complete * $ wine /path/to/RunFromProcess.exe ZwiftLauncher.exe ZwiftApp.exe --launcher_version=1.0.50 --token=
Alternatively, it's also possible to force the launcher to run the game without using RunFromProcess with a bit of a fun trick: * wineserver -k (to start fresh) * set http_proxy env var to a currently-disabled proxy * run the launcher, wait for a popup dialog but don't click anything yet * turn on your proxy so the game can use the internet connection * click 'yes'
Setting an iptables rule will just have the launcher complain about internet access. Don't know why the proxy thing works, discovered it entirely by accident while experimenting (logging traffic with mitmproxy).
Game seems to run great in wine. Have not tested pairing any sensors yet.
https://bugs.winehq.org/show_bug.cgi?id=46313
--- Comment #8 from wentam42@gmail.com --- (In reply to wentam42 from comment #7)
While not a solution to the launcher incompatibility, I've found a workaround for those who want to play the game in wine.
The launcher will update the game correctly in wine, but we can't login or launch the game as that's all done through the web UI.
The game itself is launched with ZwiftApp.exe, and if you have not logged in via the launcher it contains it's own login screen that works in wine.
However, if ZwiftApp.exe isn't launched as a child process of ZwiftLauncher.exe, it will just start the launcher instead of the game.
So:
- Download and extract "RunFromProcess"
https://www.nirsoft.net/utils/run_from_process.html
- $ wine ZwiftLauncher.exe
- Wait for any updates to fully complete
- $ wine /path/to/RunFromProcess.exe ZwiftLauncher.exe ZwiftApp.exe
--launcher_version=1.0.50 --token=
Alternatively, it's also possible to force the launcher to run the game without using RunFromProcess with a bit of a fun trick:
- wineserver -k (to start fresh)
- set http_proxy env var to a currently-disabled proxy
- run the launcher, wait for a popup dialog but don't click anything yet
- turn on your proxy so the game can use the internet connection
- click 'yes'
Setting an iptables rule will just have the launcher complain about internet access. Don't know why the proxy thing works, discovered it entirely by accident while experimenting (logging traffic with mitmproxy).
Game seems to run great in wine. Have not tested pairing any sensors yet.
Woops, one simplification to this: the arguments on ZwiftApp.exe can be omitted: $ wine /path/to/RunFromProcess.exe ZwiftLauncher.exe ZwiftApp.exe
Might need use http_proxy and https_proxy both for 2nd workaround.
https://bugs.winehq.org/show_bug.cgi?id=46313
dapharsyde dapharsyde@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dapharsyde@gmail.com
--- Comment #9 from dapharsyde dapharsyde@gmail.com --- Created attachment 66452 --> https://bugs.winehq.org/attachment.cgi?id=66452 zwift wine backtrace
https://bugs.winehq.org/show_bug.cgi?id=46313
--- Comment #10 from dapharsyde dapharsyde@gmail.com --- (In reply to dapharsyde from comment #9)
Created attachment 66452 [details] zwift wine backtrace
I am able to launch ZwiftApp using RunFromProcess.exe, but it crashes a split second after the music starts, with this error:
Unhandled exception: page fault on execute access to 0x00000000 in 64-bit code (0x0000000000000000).
Any ideas what would be causing this? Backtrace attached...
https://bugs.winehq.org/show_bug.cgi?id=46313
teslaandfriends@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |teslaandfriends@gmail.com
--- Comment #11 from teslaandfriends@gmail.com --- Thanks to wentam42's workaround I had my first Linux ride last night.
I was not able to get sensors to connect directly; I'm using a BLE PowerTap SCS and the extent of Bluetooth support in wine is not clear to me.
Bypassed that problem using ZwiftCompanion.
Not sure if helpful but I recorded the process. Be forewarned audio is trash as I'm riding the trainer the whole time.
Part 1 (installation, update, white screen) https://youtu.be/QtmChNigELs Part 2 (Bluetooth attempt[fail], ZwiftCompanion, and first Linux ride): https://youtu.be/V5R53cyvemE
https://bugs.winehq.org/show_bug.cgi?id=46313
--- Comment #12 from wentam42@gmail.com --- (In reply to dapharsyde from comment #10)
(In reply to dapharsyde from comment #9)
Created attachment 66452 [details] zwift wine backtrace
I am able to launch ZwiftApp using RunFromProcess.exe, but it crashes a split second after the music starts, with this error:
Unhandled exception: page fault on execute access to 0x00000000 in 64-bit code (0x0000000000000000).
Any ideas what would be causing this? Backtrace attached...
I have this problem on one machine, have been debugging, and plan to open a separate bug report for this.
I think this may be tied to intel graphics. What's your graphics hardware?
https://bugs.winehq.org/show_bug.cgi?id=46313
--- Comment #13 from wentam42@gmail.com --- (In reply to teslaandfriends from comment #11)
Thanks to wentam42's workaround I had my first Linux ride last night.
I was not able to get sensors to connect directly; I'm using a BLE PowerTap SCS and the extent of Bluetooth support in wine is not clear to me.
Bypassed that problem using ZwiftCompanion.
Not sure if helpful but I recorded the process. Be forewarned audio is trash as I'm riding the trainer the whole time.
Part 1 (installation, update, white screen) https://youtu.be/QtmChNigELs Part 2 (Bluetooth attempt[fail], ZwiftCompanion, and first Linux ride): https://youtu.be/V5R53cyvemE
Glad you've got it running!
Wine's bluetooth support is non-existent. Additionally, it seems that the game is using the UWP bluetooth api, so adding this into wine isn't doable right now by my understanding.
I'm working on replacing the game's BleWin10Lib.dll with my own implementation that calls into the linux bluetooth stack, bypassing the issue. This means reverse-engineering the interface, which will take some time.
We're pretty lucky that bluetooth work for the game is done in a separate dll here.
https://bugs.winehq.org/show_bug.cgi?id=46313
--- Comment #14 from Ryan ryanjohngay@gmail.com --- (In reply to wentam42 from comment #12)
(In reply to dapharsyde from comment #10)
(In reply to dapharsyde from comment #9)
Created attachment 66452 [details] zwift wine backtrace
I am able to launch ZwiftApp using RunFromProcess.exe, but it crashes a split second after the music starts, with this error:
Unhandled exception: page fault on execute access to 0x00000000 in 64-bit code (0x0000000000000000).
Any ideas what would be causing this? Backtrace attached...
I have this problem on one machine, have been debugging, and plan to open a separate bug report for this.
I think this may be tied to intel graphics. What's your graphics hardware?
+1
Same crash and backtrace for me on an i5-6300u with integrated graphics.
https://bugs.winehq.org/show_bug.cgi?id=46313
--- Comment #15 from dapharsyde dapharsyde@gmail.com --- (In reply to Ryan from comment #14)
(In reply to wentam42 from comment #12)
(In reply to dapharsyde from comment #10)
(In reply to dapharsyde from comment #9)
Created attachment 66452 [details] zwift wine backtrace
I am able to launch ZwiftApp using RunFromProcess.exe, but it crashes a split second after the music starts, with this error:
Unhandled exception: page fault on execute access to 0x00000000 in 64-bit code (0x0000000000000000).
Any ideas what would be causing this? Backtrace attached...
I have this problem on one machine, have been debugging, and plan to open a separate bug report for this.
I think this may be tied to intel graphics. What's your graphics hardware?
+1
Same crash and backtrace for me on an i5-6300u with integrated graphics.
Yep, same here. I am attempting this on a HP Spectre x360 laptop with integrated "Intel HD Graphics 620". If you open a bug for this, please let me know so I can follow it too, thanks!
Disappointing that we're so close, but still can't get it to work!
https://bugs.winehq.org/show_bug.cgi?id=46313
--- Comment #16 from wentam42@gmail.com --- (In reply to dapharsyde from comment #15)
(In reply to Ryan from comment #14)
(In reply to wentam42 from comment #12)
(In reply to dapharsyde from comment #10)
(In reply to dapharsyde from comment #9)
Created attachment 66452 [details] zwift wine backtrace
I am able to launch ZwiftApp using RunFromProcess.exe, but it crashes a split second after the music starts, with this error:
Unhandled exception: page fault on execute access to 0x00000000 in 64-bit code (0x0000000000000000).
Any ideas what would be causing this? Backtrace attached...
I have this problem on one machine, have been debugging, and plan to open a separate bug report for this.
I think this may be tied to intel graphics. What's your graphics hardware?
+1
Same crash and backtrace for me on an i5-6300u with integrated graphics.
Yep, same here. I am attempting this on a HP Spectre x360 laptop with integrated "Intel HD Graphics 620". If you open a bug for this, please let me know so I can follow it too, thanks!
Disappointing that we're so close, but still can't get it to work!
https://bugs.winehq.org/show_bug.cgi?id=48613
Please move all discussion regarding the ZwiftApp.exe launch page fault crash on intel graphics hardware to this bug. If you have already confirmed the bug here, it would be ideal if you confirmed it in the new bug report as well to keep discussion in one place.
This bug report (46313) remains to be for discussing the white screen launcher mshtml issue.
Thanks!
https://bugs.winehq.org/show_bug.cgi?id=46313
dapharsyde dapharsyde@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|dapharsyde@gmail.com |
https://bugs.winehq.org/show_bug.cgi?id=46313
Charly42 family.marczoch@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |family.marczoch@free.fr
--- Comment #17 from Charly42 family.marczoch@free.fr --- Hello ,
i'm complete out with wine/zwift and 64 / 32bits.
my config: ubuntu 18.04 wine 5.0.0 satble.
i have no instal mono. i have would like install 'dotnet35sp1' but : winetricks doesn't want because i'm on 64bits.... grrrr
I have change all for a 32 bits instal, 'dotnet35sp1' : instal OK, but when i want instal zwift , at the end of instal zwit open a windows :".... 64bit application and you run on 32 bits...".... grrrrr
I have delet all!! re install on 64bits arch but always the same problems with 'dotnet35sp1'!! : ''winetricks dotnet35sp1 ------------------------------------------------------ You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug. ------------------------------------------------------ Using winetricks 20180217 - sha256sum: 1b156c616174f41df79d72a90c52eb2b110c63a6e8ecb865d303a8f9f0908924 with wine-5.0 and WINEARCH=win64 Executing w_do_call dotnet35sp1 Executing load_dotnet35sp1 ------------------------------------------------------ This package (dotnet35sp1) does not work on a 64-bit installation. You must use a prefix made with WINEARCH=win32"""
please help me many thanks
https://bugs.winehq.org/show_bug.cgi?id=46313
--- Comment #18 from Austin English austinenglish@gmail.com --- (In reply to Charly42 from comment #17)
Using winetricks 20180217 - sha256sum:
Update your copy of winetricks
https://bugs.winehq.org/show_bug.cgi?id=46313
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|https://cdn.zwift.com/app/Z |https://web.archive.org/web |wiftSetup.exe |/20190404201940if_/https:// | |cdn.zwift.com/app/ZwiftSetu | |p.exe CC| |focht@gmx.net Summary|Zwift: (.Net 3.x app) |Zwift Launcher 1.0 (.Net |shows only white/blank |3.x app) shows only |screen on startup |white/blank screen on | |startup
--- Comment #19 from Anastasius Focht focht@gmx.net --- Hello folks,
please keep all unrelated problems elsewhere, including diagnosis of broken WINEPREFIXes and/or.NET Framework installations. Wine Bugzilla is not meant for end-user support. If you need help to set up Wine and/or app/installer prerequisites, use WineHQ forums (https://forum.winehq.org/).
There is also the possibility to force the launcher to use a later version of the .NET CLR. For example with .NET Framework 4.0 installed via 'winetricks -q dotnet40':
--- snip --- $ export COMPlus_OnlyUseLatestCLR=1
$ pwd /home/focht/.wine/drive_c/Program Files (x86)/Zwift
$ wine ./ZwiftLauncher.exe --- snip ---
Anyway, Ryan (comment #6) already provided decent analysis, so lets stick to that topic.
$ sha1sum ZwiftSetup.exe 2ff17cc55f3f6489b356c2f91f162a93947ef732 ZwiftSetup.exe
$ du -sh ZwiftSetup.exe 2.5M ZwiftSetup.exe
$ wine --version wine-5.5
Regards