https://bugs.winehq.org/show_bug.cgi?id=37813
Bug ID: 37813 Summary: Defiance fails to connect to login Server Product: Wine Version: 1.7.31 Hardware: x86-64 OS: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: Bastyjuice@aol.com
The Game is patching and ist Starting without any Trouble but after launching Defiance, the Game pop ups with a Dialog "The defiance service is unavailable please try again later"
Michael Bond tells that he Have turned on all debug for winsock and dug through the log. He see it create a socket and connect to login-live-us-pc.defiance.com port 50000. After that there's a handful of failed setsockopt calls for send and recv buffer sizes followed by a series of select and WSAFDIsSet calls waiting for socket activity, and finally shutdown and closesocket.
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #1 from BastyJuice Bastyjuice@aol.com --- Created attachment 50356 --> https://bugs.winehq.org/attachment.cgi?id=50356 LastRunWinlog
Maybe it helps to find the Issue
https://bugs.winehq.org/show_bug.cgi?id=37813
BastyJuice Bastyjuice@aol.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |Bastyjuice@aol.com
https://bugs.winehq.org/show_bug.cgi?id=37813
BastyJuice Bastyjuice@aol.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://www.defiance.com/de/ | |play-for-free/
https://bugs.winehq.org/show_bug.cgi?id=37813
BastyJuice Bastyjuice@aol.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.defiance.com/de/ |https://appdb.winehq.org/ob |play-for-free/ |jectManager.php?sClass=vers | |ion&iId=27970
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #2 from Bruno Jesus 00cpxxx@gmail.com --- Please attach a +winsock,+wininet,+winhttp.
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #3 from BastyJuice Bastyjuice@aol.com --- https://dl.dropboxusercontent.com/u/30544155/Winsock.log
Winsock Log it is to Big for Upload
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #4 from BastyJuice Bastyjuice@aol.com --- Created attachment 50357 --> https://bugs.winehq.org/attachment.cgi?id=50357 Wininet.log
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #5 from BastyJuice Bastyjuice@aol.com --- Created attachment 50358 --> https://bugs.winehq.org/attachment.cgi?id=50358 Winhttp log
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #6 from Bruno Jesus 00cpxxx@gmail.com --- Created attachment 50359 --> https://bugs.winehq.org/attachment.cgi?id=50359 more verbose log
Thanks for the log, it looks like the connection attempts to 193.105.173.31:50000 are not being recognized as connected or the server is never sending information to the client. I'm not sure which one, when I connect manually to that address I also don't get anything so the problem may be related to the connection not being recognized.
Please get a new +winsock with the attached patch.
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #7 from BastyJuice Bastyjuice@aol.com --- Hello Bruno,
i hope this is what you need for Develop it was my frist Engine Build :-)
https://dl.dropboxusercontent.com/u/30544155/winsock_with_patch.log
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #8 from Bruno Jesus 00cpxxx@gmail.com --- Thanks for the log again, unfortunately I see nothing wrong in it. Wine is connecting to the server as expected but the application seems to be waiting something else to happen like receiving data from the server.
trace:winsock:WS_connect socket 02dc, ptr 0x33ef9c { family AF_INET, address 193.105.173.31, port 50000 }, length 16 warn:winsock:wsaErrno errno 36, (Operation now in progress). ... trace:winsock:WS_select read 0x66c95fc, write 0x66cb600, excp 0x66cd604 timeout 0x66c95e0 trace:winsock:WS_select read 0x66c95fc, write 0x66cb600, excp 0x66cd604 timeout 0x66c95e0 trace:winsock:WS_select read 0x66c95fc, write 0x66cb600, excp 0x66cd604 timeout 0x66c95e0 trace:winsock:WS_select read 0x66c95fc, write 0x66cb600, excp 0x66cd604 timeout 0x66c95e0 trace:winsock:__WSAFDIsSet (socket: 02dc, fd_set 0x66c95fc, count 0) <-- 0 trace:winsock:__WSAFDIsSet (socket: 02dc, fd_set 0x66cb600, count 1) <-- 1 trace:winsock:__WSAFDIsSet (socket: 02dc, fd_set 0x66cd604, count 0) <-- 0
Socket is now connected but does not have anything to read and the application continues to poll until it times out and starts a new connection attempt.
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #9 from Bruno Jesus 00cpxxx@gmail.com --- Does any of the information in https://support.trionworlds.com/app/answers/detail/a_id/1420/~/service-is-un... help?
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #10 from BastyJuice Bastyjuice@aol.com --- Hello Bruno,
that sounds strange under windows no problem :-( anyway yes i tried the FAQ from Trion but nothing helpd.
"Dr. Wes Snyder V" told me that the game has worked since Trion has Patched somthing from the game don't ask me what was patched.
It seem hat Defiance will be one of the Games that Dosen't run on Wine :-)
anyway Thanks for your help and your hope.
best regards
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #11 from Bruno Jesus 00cpxxx@gmail.com --- Sorry I couldn't help more for now, I'll try to find 15Gb to download the game and test myself.
Can you please check bug 34917 and bug 35679 and post a comment there if you think they are fixed? Thanks in advance.
https://bugs.winehq.org/show_bug.cgi?id=37813
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #12 from Bruno Jesus 00cpxxx@gmail.com --- I can confirm the issue in 1.7.34, the application connects to the server complains the service is offline. The application keeps the connection opened until you either press retry or quit, no clues so far.
Download is free but quite long (15Gb) and is done through the Glyph Client.
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #13 from Bruno Jesus 00cpxxx@gmail.com --- I found the issue using the "random enabling debug channels" technique. At least for me the problem is this:
0057:trace:crypt:CryptAcquireContextW (0x684e660, (null), (null), 1, f0000000) 0057:trace:crypt:RSAENH_CPAcquireContext (phProv=0x63796f8, pszContainer=(null), dwFlags=f0000000, pVTable=0x6379778) 0057:trace:crypt:CryptGenRandom (0x63796e8, 64, 0x684e7a0) 0057:trace:crypt:RSAENH_CPGenRandom (hProv=00000001, dwLen=64, pbBuffer=0x684e7a0) 0057:trace:crypt:CryptReleaseContext (0x63796e8, 00000000) 0057:trace:crypt:RSAENH_CPReleaseContext (hProv=00000001, dwFlags=00000000) 0057:trace:crypt:CryptAcquireContextW (0x684e660, (null), L"Intel Hardware Cryptographic Service Provider", 22, 00000000) 0057:trace:crypt:CryptGenRandom (0x6379630, 64, 0x684e7a0) 0057:trace:crypt:CryptReleaseContext (0x6379630, 00000000)
The application tries to generate some random numbers, but for some reason it's not satisfied and tries using a different not installed provider (Intel Hardware Cryptographic Service Provider). As the provider is not installed there is an error and the application is not happy and displays a generic error about servers unavailable.
I don't know if the intel provider is installed by default on Windows or if Glyph or the game installer failed to install it.
https://bugs.winehq.org/show_bug.cgi?id=37813
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com
--- Comment #14 from Bruno Jesus 00cpxxx@gmail.com --- Created attachment 50529 --> https://bugs.winehq.org/attachment.cgi?id=50529 gen random hack
The attached patch is enough to workaround the issue I see in Debian, please try in OSX.
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #15 from Bruno Jesus 00cpxxx@gmail.com --- Actually I forgot that at some point I installed the intel security driver myself. So the problem is a bit different and the patch is no longer relevant:
003c:trace:crypt:CryptAcquireContextW (0x32ea34, (null), L"Intel Hardware Cryptographic Service Provider", 22, 00000000) 003c:fixme:crypt:CRYPT_LoadProvider Failed to load dll L"icsp.dll"
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #16 from BastyJuice Bastyjuice@aol.com --- I saw you last post to late I Tryed the patch but i din't work :-) But i think you know that already.
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #17 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to BastyJuice from comment #16)
I saw you last post to late I Tryed the patch but i din't work :-) But i think you know that already.
Yeah, sorry for the noise. I think I downloaded the intel CSP from http://www.codeproject.com/KB/security/WinAES/Intel_RNG_CSP.zip But the site requires registration. The installer from that zip (folder SILENT) + the hack patch is what made this work. I'll look for a simpler way to workaround and/or solve this.
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #18 from Bruno Jesus 00cpxxx@gmail.com --- Just a warning about my previous comment: installing the Intel RND CSP files messed with the prefix I had for this game, it helped the game work yeah but the uninstaller didn't do a great job and I think I'll have to reinstall Glyph and the game now in a new prefix.
So, if anyone is trying this please do in a backup prefix and with a different Glyph account.
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #19 from BastyJuice Bastyjuice@aol.com --- So i was trying to do your Workaround
- Install Intel RNG - Patch the Wine (1.7.34)
but the eroor is the same is there anything i have forgotten ?
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #20 from Bruno Jesus 00cpxxx@gmail.com --- Please attach a +crypt log.
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #21 from BastyJuice Bastyjuice@aol.com --- (In reply to Bruno Jesus from comment #20)
Please attach a +crypt log.
Like you wish https://dl.dropboxusercontent.com/u/30544155/crypt.log
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #22 from Bruno Jesus 00cpxxx@gmail.com --- Thank you, the output is as I expected. It's the same for when it worked for me but for some reason it does not work for you so I have to dig deeper.
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #23 from BastyJuice Bastyjuice@aol.com --- Nothing new same Issue with and without GIT
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #24 from BastyJuice Bastyjuice@aol.com --- I testet different Wine Engines but no one of the ist working, last try was 1.7.37 with the Patch and the Intel Driver.
The Big Question is there somthing else what you have installed over winetricks or thirdparty software ?
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #25 from Bruno Jesus 00cpxxx@gmail.com --- After following many functions I found one that fixed the bug for me, please try the patch http://source.winehq.org/patches/data/110641
My theory is as follows after reading many different types of logs: the game seems to use different functions to generate random data, among the methods it is trying different cryptographic providers and statistics functions from Windows, by giving something back in NetStatisticsGet instead of returning error the game seems to be happy with the amount of random data collected and starts correctly.
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #26 from BastyJuice Bastyjuice@aol.com --- Hi Bruno great News i will test this as soon as i can. Should i only use that fix alone or with the previous ones ?
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #27 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to BastyJuice from comment #26)
Hi Bruno great News i will test this as soon as i can. Should i only use that fix alone or with the previous ones ?
The patch was commited today, so all you need is a wine-git version. No hacks or anything else, I had to "winetricks vcrun2012" to run Glyph due to bug 37583.
https://bugs.winehq.org/show_bug.cgi?id=37813
Saulius K. saulius2@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |saulius2@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #28 from BastyJuice Bastyjuice@aol.com --- Hi Bruno,
so i get now Luck same Error,essage. I uses a total new Installation from GIT Today.
Only Installed vcrun2012. Maybe its some special on a Mac...
https://bugs.winehq.org/show_bug.cgi?id=37813
--- Comment #29 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to BastyJuice from comment #28)
Hi Bruno,
so i get now Luck same Error,essage. I uses a total new Installation from GIT Today.
Only Installed vcrun2012. Maybe its some special on a Mac...
Ok, thanks for testing. Since I don't have OSX to test and the nature of the bug is still unresolved I guess the only thing available is a +relay log so I can compare to the Linux version. The log will probably be >= 1 Gigabyte, you can then compress with "bzip2 -9" and upload to some file sharing.
https://bugs.winehq.org/show_bug.cgi?id=37813
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #30 from winetest@luukku.com --- According to appdb this problem is still valid against even wine 2.1. And has been who knows how long.