WineHQ
Bug Tracking Database – Bug 34971

 Bugzilla

 

Last modified: 2014-01-03 13:09:40 UTC  

Volvo The Game crashes when selecting competition mode

Bug 34971 - Volvo The Game crashes when selecting competition mode
Volvo The Game crashes when selecting competition mode
Status: CLOSED FIXED
AppDB: Show Apps affected by this bug
Product: Wine
Classification: Unclassified
Component: winsock
1.7.6
Other MacOS
: P2 normal
: ---
Assigned To: Bruno Jesus
http://www.gamershell.com/download_46...
: download
Depends on:
Blocks: 17747
  Show dependency tree
 
Reported: 2013-11-21 18:47 UTC by Ian
Modified: 2014-01-03 13:09 UTC (History)
2 users (show)

See Also:
Regression SHA1:
Fixed by SHA1: 719715c77426c7cb759a012d24f898622db5db6b
Distribution: ---
Staged patchset:


Attachments
Terminal Output (835.97 KB, text/plain)
2013-11-21 18:47 UTC, Ian
Details
.dmp file created by the crash reporter (56.72 KB, application/octet-stream)
2013-11-21 18:48 UTC, Ian
Details
hack (365 bytes, patch)
2013-11-25 12:01 UTC, Bruno Jesus
Details | Diff
+winsock log (74.83 KB, text/plain)
2013-11-25 13:15 UTC, Béla Gyebrószki
Details
hack 2 (1.64 KB, patch)
2013-11-25 14:33 UTC, Bruno Jesus
Details | Diff
+winsock debug log (hack2 applied) (39.76 KB, text/plain)
2013-11-25 15:03 UTC, Béla Gyebrószki
Details
first attempt (2.87 KB, patch)
2013-11-25 19:11 UTC, Bruno Jesus
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ian 2013-11-21 18:47:12 UTC
Created attachment 46600 [details]
Terminal Output

After selecting the competition mode, the game crashes and gives an error message from the games crash reporter. It also gives a .dmp file which I will upload in case it is useful.
Comment 1 Ian 2013-11-21 18:48:30 UTC
Created attachment 46601 [details]
.dmp file created by the crash reporter
Comment 2 Austin English 2013-11-21 19:09:10 UTC
Does native wininet help?
Comment 3 Bruno Jesus 2013-11-21 19:14:26 UTC
Since I don't have OSX I'm not sure how wine is installed. The last log line shows :
Users/ianpickert/Desktop/Volvo The Game.app/Contents/Frameworks/wswine.bundle/bin/wine

This suggests to me that this is a 3rd party wine wrapper, please correct me if I'm wrong.
Comment 4 Ian 2013-11-21 19:57:59 UTC
Thanks for the quick replies. The crash is still present when I set native wininet. Also, yes I used a third party wine wrapper for the log, however i have tested this with plain wine and the issue is present, and the logs are identical (except for the path difference when I force quit the game obviously). It was just more convenient for me to upload that log.
Comment 5 Béla Gyebrószki 2013-11-23 03:20:18 UTC
The game is freely available from the above url, and I can confirm the reported problem under Fedora 19, Wine 1.7.7.
Winedbg produces the following backtrace:

Backtrace:
=>0 0x7e70e329 ws_sockaddr_ws2u+0x9(wsaddr=(nil), wsaddrlen=0, uaddr=0x33f970) [/home/gyebro/sources/wine-git/dlls/ws2_32/socket.c:1292] in ws2_32 (0x0033f948)
  1 0x7e70e9e2 do_connect+0x31(fd=0x37, name=(nil), namelen=0) [/home/gyebro/sources/wine-git/dlls/ws2_32/socket.c:2648] in ws2_32 (0x0033fa08)
  2 0x7e71ecd2 WS_connect+0x81(s=<couldn't compute location>, name=<couldn't compute location>, namelen=<couldn't compute location>) [/home/gyebro/sources/wine-git/dlls/ws2_32/socket.c:2685] in ws2_32 (0x0033fa98)
  3 0x006e2b72 in volvo (+0x2e2b71) (0x0dab54e0)
  4 0x00794b4c in volvo (+0x394b4b) (0x00794b54)
  5 0x006697c0 in volvo (+0x2697bf) (0x006688a0)
  6 0x8114246c (0x8b555351)
0x7e70e329 ws_sockaddr_ws2u+0x9 [/home/gyebro/sources/wine-git/dlls/ws2_32/socket.c:1292] in ws2_32: movzwl	0x0(%eax),%ecx
1292	    switch (wsaddr->sa_family)
Comment 6 Bruno Jesus 2013-11-25 12:01:33 UTC
Created attachment 46636 [details]
hack

The game does not run here, it quits silently. Can you please get a +winsock in plain wine? And after that try the attached patch.
Comment 7 Béla Gyebrószki 2013-11-25 13:15:15 UTC
Created attachment 46637 [details]
+winsock log

Hi Bruno,

Here's a +winsock debug log using plain Wine 1.7.7.
With your hack the game no longer crashes when entering the competition menu, but I still can't register or login the game ('connecting' is displayed in the menu but nothing happens). Do you need a +winsock log with your hack applied to see what's happening?
Comment 8 Bruno Jesus 2013-11-25 13:46:33 UTC
Thanks for the reply. No need for other logs for now. 

> 0009:trace:winsock:WS_getaddrinfo "84.244.178.114", (null) 0x32f864 -> 0x32f894 -7
> 0009:trace:winsock:WS_connect socket 01a0, ptr (nil) (nil), length 0

The call to getaddrinfo is failing but the application ignores that and tries to connect sending a NULL address. We need to figure out why it's failing.

In linux that -7 return means #define EAI_SOCKTYPE     -7

I need to add more debug messages to getaddrinfo, I'll attach a new patch soon.
Comment 9 Bruno Jesus 2013-11-25 14:33:19 UTC
Created attachment 46638 [details]
hack 2

Please get a new +winsock with this patch.
Comment 10 Béla Gyebrószki 2013-11-25 15:03:29 UTC
Created attachment 46639 [details]
+winsock debug log (hack2 applied)
Comment 11 Bruno Jesus 2013-11-25 15:09:12 UTC
Thanks, the game is really asking the wrong question but that may work in windows. Now I know how to replicate and test.
Comment 12 Bruno Jesus 2013-11-25 19:11:00 UTC
Created attachment 46641 [details]
first attempt

It will take a while to test all cases required before sending a correct fix. For now please try the attached patch.
Comment 13 Bruno Jesus 2013-12-31 14:23:25 UTC
Should be fixed by 719715c77426c7cb759a012d24f898622db5db6b, please try again.
Comment 14 Béla Gyebrószki 2013-12-31 15:08:03 UTC
(In reply to comment #13)
> Should be fixed by 719715c77426c7cb759a012d24f898622db5db6b, please try
> again.

Confirming, the game doesn't crash in competition mode using wine-1.7.9-143-g33132ce. Thanks, Bruno for fixing this bug.
Comment 15 Bruno Jesus 2014-01-01 11:55:54 UTC
(In reply to comment #14)
> Confirming, the game doesn't crash in competition mode using
> wine-1.7.9-143-g33132ce. Thanks, Bruno for fixing this bug.

Resolving fixed, thanks for testing.
Comment 16 Alexandre Julliard 2014-01-03 13:09:40 UTC
Closing bugs fixed in 1.7.10.


Privacy Policy
If you have a privacy inquiry regarding this site, please write to [email protected]

Hosted By CodeWeavers