http://bugs.winehq.org/show_bug.cgi?id=34412
Bug #: 34412 Summary: Winsock error when connectiong to Xsyon game server Product: Wine Version: 1.7.1 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: blocker Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: sxxe@gmx.de Classification: Unclassified
Hi,
when trying to play the game Xsyon i am not able to connect to the game servers.
I get this error when Pressing the "connect" or "Trial Server" button:
http://imgur.com/4Dsrrig http://imgur.com/XpsUCu1
When the error occurred for the first time (more than a year ago) i talked about it with a wine dev in IRC and we tried to figure out together what is going on but at one point we had to stop. It took to long and apparently it is not that easy to fix.
When i start wine with: WINEDEBUG='-all,+winsock'
I get this after hitting the button:
trace:winsock:WSAStartup verReq=2 trace:winsock:WSAStartup succeeded
Greetings, Andy
http://bugs.winehq.org/show_bug.cgi?id=34412
sxe sxxe@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://www.xsyon.com/conten | |t.php
http://bugs.winehq.org/show_bug.cgi?id=34412
sxe sxxe@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Winsock error when |Winsock error when |connectiong to Xsyon game |connecting to Xsyon game |server |servers
http://bugs.winehq.org/show_bug.cgi?id=34412
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |26145
http://bugs.winehq.org/show_bug.cgi?id=34412
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download CC| |00cpxxx@gmail.com Blocks|26145 | Severity|blocker |normal
--- Comment #1 from Bruno Jesus 00cpxxx@gmail.com 2013-09-01 12:16:04 CDT --- Not a blocker, read http://bugs.winehq.org/page.cgi?id=fields.html#importance
http://bugs.winehq.org/show_bug.cgi?id=34412
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |26145
http://bugs.winehq.org/show_bug.cgi?id=34412
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|-unknown |winsock AssignedTo|wine-bugs@winehq.org |00cpxxx@gmail.com Ever Confirmed|0 |1
--- Comment #2 from Bruno Jesus 00cpxxx@gmail.com 2013-09-02 11:56:28 CDT --- I can see the error now, the application is doing something which is currently not supported. Actually I would expect it not to work in Windows too, it will need some tests.
The problem is that the application calls WSAEnumProtocols asking for some specific protocols and passes len = 0, wine returns the required size of 1860. Then the app calls it again passing len = 1860 but with another set of protocols, which requires 2976 bytes, wine returns error in that case (as expected for current tests). I'll work on it.
http://bugs.winehq.org/show_bug.cgi?id=34412
--- Comment #3 from Bruno Jesus 00cpxxx@gmail.com 2013-09-02 12:37:20 CDT --- Actually this is an application bug, but windows copes with that. The app sends invalid protocols in the list, windows clears the invalid protocols and returns valid data.
http://bugs.winehq.org/show_bug.cgi?id=34412
--- Comment #4 from sxe sxxe@gmx.de 2013-09-03 02:27:47 CDT --- Great you were able to reproduce it.
Let me know if i can help somehow. I could write an email to the developer. Not that its likely they will help us but it could be worth a shot.
http://bugs.winehq.org/show_bug.cgi?id=34412
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
--- Comment #5 from Bruno Jesus 00cpxxx@gmail.com 2013-09-03 07:22:03 CDT --- (In reply to comment #4)
Let me know if i can help somehow.
I have already tested it but you could try the patch below. http://source.winehq.org/patches/data/98399
I could write an email to the developer. Not that its likely they will help us but it could be worth a shot.
The problem is that they are not NULL terminating the protocols list, so WSAEnumProtocols keep reading data until it reaches a zero in memory.
http://bugs.winehq.org/show_bug.cgi?id=34412
--- Comment #6 from sxe sxxe@gmx.de 2013-09-03 08:13:59 CDT --- (In reply to comment #5)
(In reply to comment #4)
Let me know if i can help somehow.
I have already tested it but you could try the patch below. http://source.winehq.org/patches/data/98399
Awesome it works. :) I was able to log into the game but there seems to be something wrong with mouse rotation. Anyway, thats a different problem.
Thanks for your work!
http://bugs.winehq.org/show_bug.cgi?id=34412
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |1d1faa0283727ddec8855ee877b | |f7033b9869d37 Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #7 from Bruno Jesus 00cpxxx@gmail.com 2013-09-05 13:34:29 CDT --- Patch commited, thanks for the report and test.
http://bugs.winehq.org/show_bug.cgi?id=34412
--- Comment #8 from sxe sxxe@gmx.de 2013-09-05 14:54:02 CDT --- Well, thanks for fixing it, that was the hard part.
http://bugs.winehq.org/show_bug.cgi?id=34412
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org 2013-09-13 13:20:36 CDT --- Closing bugs fixed in 1.7.2.