https://bugs.winehq.org/show_bug.cgi?id=49712
Bug ID: 49712 Summary: Magic: The Gathering Arena fails to connect to server (Regression) Product: Wine Version: 5.15 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: theferdi265@gmail.com Distribution: ---
When running Magic: The Gathering Arena with Wine 5.15, the game fails to connect to the server and is therefore unplayable. The game connects and runs fine with Wine 5.14.
Program used: Magic: The Gathering Arena Installer Download link: https://mtgarena.downloads.wizards.com/Live/Windows32/versions/3059.807586/M... (latest link can be retrieved at https://mtgarena.downloads.wizards.com/Live/Windows32/version)
Setting up and running the program in the same way I tested can be done with this script: https://github.com/Ferdi265/mtga-wine/
Expected behaviour (Windows and Wine 5.14): Game connects and downloads assets after installation Actual behaviour (Wine 5.15): Game displays a connection error message
Linked are logs from running the above script to install and run the game in a fresh wine prefix. Since the game is slow and prone to crashes with wine and DXVK fixes this, I also installed and ran with DXVK _after_ the test without DXVK.
Logs: https://gist.github.com/Ferdi265/aa5b598d8d6d0ed9d6e1fc11af014072 (didn't attach since the bug form only allows one attached file)
https://bugs.winehq.org/show_bug.cgi?id=49712
yrlf theferdi265@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |ArchLinux Hardware|x86 |x86-64 CC| |theferdi265@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=49712
--- Comment #1 from yrlf theferdi265@gmail.com --- Created attachment 67959 --> https://bugs.winehq.org/attachment.cgi?id=67959 output of 'mtga-wine.sh install' with Wine 5.14
(this is added for completeness and likely isn't where the bug occurs)
https://bugs.winehq.org/show_bug.cgi?id=49712
--- Comment #2 from yrlf theferdi265@gmail.com --- Created attachment 67960 --> https://bugs.winehq.org/attachment.cgi?id=67960 output of 'mtga-wine.sh install' with Wine 5.15
(this is added for completeness and likely isn't where the bug occurs)
https://bugs.winehq.org/show_bug.cgi?id=49712
--- Comment #3 from yrlf theferdi265@gmail.com --- Created attachment 67961 --> https://bugs.winehq.org/attachment.cgi?id=67961 output of 'mtga-wine.sh run' with Wine 5.14
This is the debug output of the program when correctly connecting to the server (disk space was full, so it didn't actually install, but it did connect)
https://bugs.winehq.org/show_bug.cgi?id=49712
--- Comment #4 from yrlf theferdi265@gmail.com --- Created attachment 67962 --> https://bugs.winehq.org/attachment.cgi?id=67962 output of 'mtga-wine.sh run' with Wine 5.15
This is the debug output of the program when failing to connect to the server.
https://bugs.winehq.org/show_bug.cgi?id=49712
--- Comment #5 from yrlf theferdi265@gmail.com --- Created attachment 67963 --> https://bugs.winehq.org/attachment.cgi?id=67963 output of 'mtga-wine.sh install-dxvk' with Wine 5.14
(this is added for completeness and likely isn't where the bug occurs)
https://bugs.winehq.org/show_bug.cgi?id=49712
--- Comment #6 from yrlf theferdi265@gmail.com --- Created attachment 67964 --> https://bugs.winehq.org/attachment.cgi?id=67964 output of 'mtga-wine.sh install-dxvk' with Wine 5.15
(this is added for completeness and likely isn't where the bug occurs)
https://bugs.winehq.org/show_bug.cgi?id=49712
--- Comment #7 from yrlf theferdi265@gmail.com --- Created attachment 67965 --> https://bugs.winehq.org/attachment.cgi?id=67965 output of 'mtga-wine.sh run' with Wine 5.14 after installing DXVK
This is not vanilla wine, but it does drastically reduce the spam of irrelevant D3D error logs, so it might be useful to some.
https://bugs.winehq.org/show_bug.cgi?id=49712
--- Comment #8 from yrlf theferdi265@gmail.com --- Created attachment 67966 --> https://bugs.winehq.org/attachment.cgi?id=67966 output of 'mtga-wine.sh run' with Wine 5.15 after installing DXVK
This is not vanilla wine, but it does drastically reduce the spam of irrelevant D3D error logs, so it might be useful to some.
https://bugs.winehq.org/show_bug.cgi?id=49712
--- Comment #9 from yrlf theferdi265@gmail.com --- I should also note that I accidently left the wine DLL override for disabling .desktop file generation enabled during testing; this one:
export WINEDLLOVERRIDES="winemenubuilder.exe=d"
It should not affect the result as far as I understand it.
https://bugs.winehq.org/show_bug.cgi?id=49712
--- Comment #10 from yrlf theferdi265@gmail.com --- A short TL;DR: for people that don't want to run / read through my wrapper script:
'mtga-wine.sh install' effectively does: - wineboot - winecfg /v win7 - add one registry override for the X11 driver with wine regedit - download installer - wine msiexec /i installer.msi /qn
'mtga-wine.sh run' effectively does: - wine "C:/Program Files/Wizards of the Coast/MTGA/MTGA.exe"
'mtga-wine.sh install-dxvk' effectively does: - download dxvk - setup_dxvk.sh install
https://bugs.winehq.org/show_bug.cgi?id=49712
--- Comment #11 from yrlf theferdi265@gmail.com --- The exact error message displayed by the game is "error updating data, please check your connection and try again"
https://bugs.winehq.org/show_bug.cgi?id=49712
Andreas Zuber a.zuber@gmx.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |a.zuber@gmx.ch
--- Comment #12 from Andreas Zuber a.zuber@gmx.ch --- I can confirm this behavior. The regression is present both in wine 5.15 as well as wine-staging 5.15
https://bugs.winehq.org/show_bug.cgi?id=49712
--- Comment #13 from Andreas Zuber a.zuber@gmx.ch --- I ran a regression test between the versions and it points to commit 1d3e3a1c8d08c75e88734ec00b5a2b412e8d6ca3 introducing the issue.
Reverting the commit on version 5.15 fixes the issue for me.
https://bugs.winehq.org/show_bug.cgi?id=49712
Maciej Stanczew maciej.stanczew+b@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |maciej.stanczew+b@gmail.com
--- Comment #14 from Maciej Stanczew maciej.stanczew+b@gmail.com --- I observe a similar issue with Hearthstone: after 1d3e3a1c8d08c75e88734ec00b5a2b412e8d6ca3 the game hangs at loading screen, with message: 0454:err:ntdll:RtlpWaitForCriticalSection section 0295FA90 "?" wait timed out in thread 0454, blocked by 0000, retrying (60 sec)
Should I submit a separate bug report for it, or will it be handled here (as on the surface it seems to be the same problem)?
https://bugs.winehq.org/show_bug.cgi?id=49712
yrlf theferdi265@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |ntdll
--- Comment #15 from yrlf theferdi265@gmail.com --- Changing the affected Component from 'unknown' to 'ntdll' since the commit triggering the bug was in ntdll.
https://bugs.winehq.org/show_bug.cgi?id=49712
Hannah Town phtown@protonmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |phtown@protonmail.com
--- Comment #16 from Hannah Town phtown@protonmail.com --- Created attachment 67991 --> https://bugs.winehq.org/attachment.cgi?id=67991 output of 'legendary launch stargazer'
I experience the same issue running Arena version 3059.807586 under Legendary with Wine 5.15 (Staging) on Fedora 32. If there was any doubt, the problem is not unique to Arch or to a particular way of installing and launching Arena.
https://bugs.winehq.org/show_bug.cgi?id=49712
Denis Sheremet winehq_bugzilla@lxlz.space changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winehq_bugzilla@lxlz.space
https://bugs.winehq.org/show_bug.cgi?id=49712
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #17 from Zebediah Figura z.figura12@gmail.com --- Created attachment 68003 --> https://bugs.winehq.org/attachment.cgi?id=68003 ntdll: Read the condition variable and manipulate the lock on the PE side.
Can you please try the attached patch?
https://bugs.winehq.org/show_bug.cgi?id=49712
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |1d3e3a1c8d08c75e88734ec00b5 | |a2b412e8d6ca3 Keywords| |regression
https://bugs.winehq.org/show_bug.cgi?id=49712
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Magic: The Gathering Arena |Magic: The Gathering Arena |fails to connect to server |fails to connect to server |(Regression) |
https://bugs.winehq.org/show_bug.cgi?id=49712
--- Comment #18 from Andreas Zuber a.zuber@gmx.ch --- I applied the patch to wine 5.15 and 5.15-staging and it fixes the issue in both cases. Thanks for the fast fix!
https://bugs.winehq.org/show_bug.cgi?id=49712
--- Comment #19 from Maciej Stanczew maciej.stanczew+b@gmail.com --- Hearthstone also works on Staging 5.15.2 with applied patch. Thank you!
https://bugs.winehq.org/show_bug.cgi?id=49712
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |8bd95a80f263a8df6873f8e3a8b | |10fdce4136fc4 Resolution|--- |FIXED
--- Comment #20 from Zebediah Figura z.figura12@gmail.com --- Fixed by https://source.winehq.org/git/wine.git/commitdiff/8bd95a80f263a8df6873f8e3a8b10fdce4136fc4.
https://bugs.winehq.org/show_bug.cgi?id=49712
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #21 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 5.16.
https://bugs.winehq.org/show_bug.cgi?id=49712
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |govershay@gmail.com
--- Comment #22 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- *** Bug 49741 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=49712
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |phoe@disroot.org
--- Comment #23 from Zebediah Figura z.figura12@gmail.com --- *** Bug 49725 has been marked as a duplicate of this bug. ***