http://bugs.winehq.org/show_bug.cgi?id=23045
Summary: Far Cry 2: unexpected exiting of application Product: Wine Version: 1.2-rc2 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: mgavl69@juno.com
Created an attachment (id=28591) --> (http://bugs.winehq.org/attachment.cgi?id=28591) fc2bugs_builtin_secur32
Far Cry 2 will unexpectedly exit with no backtrace. Mainly this is a problem encountered when starting a 'New Story',if it doesn't exit on the loading screen, and going along the first jeep ride. I haven't seen it happen when 'Continuing' or loading from a previous saved game yet.
This is one has been puzzling me since alot of people report this in the AppDb pages. The component I've been mainly focusing on is the secur32.dll (builtin & native). Using the native secur32.dll I haven't had any crashes or unexpected exits at all. Using the builtin secur32.dll the exiting always happens. See attachments. winedebug=+file,+secur32
Using winedbg hasn't provided any useful info to me to make sense of it but maybe my winedbg-fu isn't up to par. If you have any suggestions about other channels / winedbg commands (or example how-to pages/commands) I could look into to provide some more useful info let me know.
http://bugs.winehq.org/show_bug.cgi?id=23045
--- Comment #1 from blaise mgavl69@juno.com 2010-06-05 16:02:56 --- Created an attachment (id=28592) --> (http://bugs.winehq.org/attachment.cgi?id=28592) fc2bugs_native_secur32
http://bugs.winehq.org/show_bug.cgi?id=23045
blaise mgavl69@juno.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mgavl69@juno.com
http://bugs.winehq.org/show_bug.cgi?id=23045
--- Comment #2 from Vitaliy Margolen vitaliy@kievinfo.com 2010-06-06 12:58:50 --- Is this a standalone game or Steam'ed game?
http://bugs.winehq.org/show_bug.cgi?id=23045
--- Comment #3 from Juan Lang juan_lang@yahoo.com 2010-06-06 13:28:32 --- The remote end is closing the connection for some reason:
trace:secur32:schan_gnutls_log <4> REC[0x7cf008a0]: Expected Packet[2] Application Data(23) with length: 63 trace:secur32:schan_gnutls_log <4> REC[0x7cf008a0]: Received Packet[2] Alert(21) with length: 32 trace:secur32:schan_pull Pull 32 bytes trace:secur32:schan_get_buffer Using buffer 0: cbBuffer 282, BufferType 0x1, pvBuffer 0xbe4a9e8 trace:secur32:schan_pull Read 32 bytes trace:secur32:schan_gnutls_log <4> REC[0x7cf008a0]: Decrypted Packet[2] Alert(21) with length: 2 trace:secur32:schan_gnutls_log <4> REC[0x7cf008a0]: Alert[1|0] - Close notify - was received
Troubleshooting a problem like this can be really challenging, since the server can close the connection for any reason at all.
Can you try disabling secur32 altogether, i.e.: WINEDLLOVERRIDES=secur32=d wine ... and report what happens?
http://bugs.winehq.org/show_bug.cgi?id=23045
--- Comment #4 from blaise mgavl69@juno.com 2010-06-06 18:05:10 --- WINEDLLOVERRIDES=secur32=d wine '/home/foo/.wine/drive_c/Program Files/Ubisoft/Far Cry 2/bin/FarCry2.exe'
fixme:heap:HeapSetInformation (nil) 1 (nil) 0 fixme:advapi:RegisterEventSourceW ((null),L"Bonjour Service"): stub fixme:winsock:WS_setsockopt Unknown IPPROTO_IP optname 0x00000013 fixme:winsock:WSAIoctl SIO_GET_EXTENSION_FUNCTION_POINTER: unimplemented WSARecvMsg fixme:winsock:NtStatusToWSAError Status code 8000000a converted to DOS error code 2a4 fixme:advapi:DeregisterEventSource (0xcafe4242) stub fixme:ntoskrnl:KeInitializeTimerEx stub: 0x111168 0 wine: cannot find L"C:\windows\system32\PnkBstrA.exe" wine: cannot find L"C:\windows\system32\PnkBstrB.exe" err:module:import_dll Library Secur32.dll (which is needed by L"C:\Program Files\Ubisoft\Far Cry 2\bin\Dunia.dll") not found err:module:import_dll Library Dunia.dll (which is needed by L"C:\Program Files\Ubisoft\Far Cry 2\bin\FarCry2.exe") not found err:module:LdrInitializeThunk Main exe initialization for L"C:\Program Files\Ubisoft\Far Cry 2\bin\FarCry2.exe" failed, status c0000135
http://bugs.winehq.org/show_bug.cgi?id=23045
--- Comment #5 from blaise mgavl69@juno.com 2010-06-06 18:15:39 --- (In reply to comment #2)
Is this a standalone game or Steam'ed game?
Both. But this is the retail dvd version I'm referring to.
http://bugs.winehq.org/show_bug.cgi?id=23045
--- Comment #6 from Juan Lang juan_lang@yahoo.com 2010-06-06 19:01:00 --- (In reply to comment #4)
err:module:import_dll Library Secur32.dll (which is needed by L"C:\Program Files\Ubisoft\Far Cry 2\bin\Dunia.dll") not found
Okay, obviously that won't do it. Next question: when using native secur32.dll, does it actually use SSL/TLS to locate.madserver.net? Use wireshark or tcpdump to see if it is.
http://bugs.winehq.org/show_bug.cgi?id=23045
--- Comment #7 from blaise mgavl69@juno.com 2010-06-06 19:46:49 --- Doing a simple verbose dump of the interface gives me only 2 udp packets referencing locate.madserver.net
20:19:48.457317 IP (tos 0x0, ttl 64, id 62753, offset 0, flags [DF], proto UDP (17), length 66) FOO.home.54843 > Wireless_Broadband_Router.home.domain: [udp sum ok] 27394+ A? locate.madserver.net. (38) 20:19:48.471006 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 82) Wireless_Broadband_Router.home.domain > FOO.home.54843: 27394 q: A? locate.madserver.net. 1/0/0 locate.madserver.net. (54)
The other game-specific connections in the log are to gatorservice.ubi.com & gconnect.ubi.com
http://bugs.winehq.org/show_bug.cgi?id=23045
--- Comment #8 from blaise mgavl69@juno.com 2010-06-06 19:47:54 --- Created an attachment (id=28629) --> (http://bugs.winehq.org/attachment.cgi?id=28629) tcpdump_fc2_native-secur32
http://bugs.winehq.org/show_bug.cgi?id=23045
--- Comment #9 from blaise mgavl69@juno.com 2010-06-06 21:03:58 --- And for comparison here's a raw packet tcpdump with a corresponding debug-trace for the builtin.
http://bugs.winehq.org/show_bug.cgi?id=23045
--- Comment #10 from blaise mgavl69@juno.com 2010-06-06 21:04:54 --- Created an attachment (id=28630) --> (http://bugs.winehq.org/attachment.cgi?id=28630) fc2_builtin_rawtcpdump_debug
http://bugs.winehq.org/show_bug.cgi?id=23045
--- Comment #11 from blaise mgavl69@juno.com 2010-06-06 21:12:10 --- Created an attachment (id=28631) --> (http://bugs.winehq.org/attachment.cgi?id=28631) fc2_native_rawtcpdump
http://bugs.winehq.org/show_bug.cgi?id=23045
--- Comment #12 from Juan Lang juan_lang@yahoo.com 2010-06-07 11:17:59 --- Can't say I can learn much from what I can see in the log. With native, it appears not to be using TLS. With builtin, it does. Usually people complain about the absence of features, not their presence ;-)
http://bugs.winehq.org/show_bug.cgi?id=23045
--- Comment #13 from Austin English austinenglish@gmail.com 2012-03-19 14:53:12 CDT --- This is your friendly reminder that there has been no bug activity for 650 days. Is this still an issue in current (1.4 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=23045
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |adys.wh@gmail.com Resolution| |ABANDONED
--- Comment #14 from Jerome Leclanche adys.wh@gmail.com 2012-04-19 22:04:47 CDT --- Abandoned
http://bugs.winehq.org/show_bug.cgi?id=23045
Frédéric Delanoy frederic.delanoy@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #15 from Frédéric Delanoy frederic.delanoy@gmail.com 2012-04-30 14:41:28 CDT --- Closing ABANDONED bugs
http://bugs.winehq.org/show_bug.cgi?id=23045
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED CC| |gyebro69@gmail.com Resolution|ABANDONED | Ever Confirmed|0 |1
--- Comment #16 from GyB gyebro69@gmail.com 2012-10-20 04:36:27 CDT --- I reopen this bug as I'm observing the same problem with the GOG.com version of Far Cry 2. When I start a new single-player game, the game runs fine for a short period, but it quits unexpectedly within 1-2 minutes. No backtrace is generated.
'winetricks secur32' or denying connections to locate.madserver.net via /etc/hosts makes the problem go away. It seems this server is responsible for in-game advertising in certain games.
When using native secur32.dll, the game doesn't make connections to locate.madserver.net at all, only to gconnect.ubi.com. It periodically sends 76 bytes long tcp packets to gconnect.ubi.com. There are no incoming packets from ubi.com
With the built-in secur32 the game indeed uses SSL/TLS and it communicates with locate.madserver.net until it crashes. I can attach the wireshark dump if someone is interested.
Fedora 17 x86 openssl-1.0.0j-2.fc17.i686 gnutls-2.12.17-1.fc17.i686
http://bugs.winehq.org/show_bug.cgi?id=23045
--- Comment #17 from GyB gyebro69@gmail.com 2012-10-20 04:38:42 CDT --- Created attachment 42198 --> http://bugs.winehq.org/attachment.cgi?id=42198 +secur32 log, Wine 1.5.15
http://bugs.winehq.org/show_bug.cgi?id=23045
Frédéric Delanoy frederic.delanoy@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |frederic.delanoy@gmail.com
--- Comment #18 from Frédéric Delanoy frederic.delanoy@gmail.com 2013-06-06 14:08:04 CDT --- Is it still an issue in recent wine (1.5.31 or later)?
http://bugs.winehq.org/show_bug.cgi?id=23045
--- Comment #19 from GyB gyebro69@gmail.com 2013-06-06 19:50:38 CDT --- Created attachment 44677 --> http://bugs.winehq.org/attachment.cgi?id=44677 Wine 1.5.31 log
Still an issue in wine-1.5.31-225-gba40509.
Usually the game simply quits after a short period of game play. On one occasion the game ended with a "***glibc detected...munmap_chunk(): invalid pointer..." message in the terminal as can be seen in the attachment.
http://bugs.winehq.org/show_bug.cgi?id=23045
Roland Haeder roland@mxchange.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |roland@mxchange.org
http://bugs.winehq.org/show_bug.cgi?id=23045
Sven Arvidsson sa@whiz.se changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sa@whiz.se
--- Comment #20 from Sven Arvidsson sa@whiz.se --- *** Bug 31122 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=23045
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEW URL| |http://www.gog.com/game/far | |_cry_2_fortunes_edition CC| |focht@gmx.net Component|-unknown |secur32 Summary|Far Cry 2: unexpected |Far Cry 2 crashes |exiting of application |unexpectedly after some | |time
--- Comment #21 from Anastasius Focht focht@gmx.net --- Hello folks,
since Béla and Sven still get this issue -> confirming.
Regards
https://bugs.winehq.org/show_bug.cgi?id=23045
--- Comment #22 from Austin English austinenglish@gmail.com --- This is your friendly reminder that there has been no bug activity for over a year. Is this still an issue in current (1.7.51 or newer) wine?
https://bugs.winehq.org/show_bug.cgi?id=23045
shiva p.shiva2603@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |p.shiva2603@gmail.com
--- Comment #23 from shiva p.shiva2603@gmail.com --- program error on farcry2 is unable to launch exe.
https://bugs.winehq.org/show_bug.cgi?id=23045
--- Comment #24 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Austin English from comment #22)
This is your friendly reminder that there has been no bug activity for over a year. Is this still an issue in current (1.7.51 or newer) wine?
I haven't seen this kind of crash in FC2 (GOG.com) for a long time now. I retested with previous Wine versions from the 1.5 branch, but there is no crash with them either. In wireshark I see that the game sends some data to a server belonging to Ubisoft, but no other connection attempts were made.
Anyway, I can't reproduce the crash, the game runs stable in every Wine version I tried.
wine-1.7.51-225-g3966aff Fedora 22 32-bit Far Cry 2 from GOG.com
https://bugs.winehq.org/show_bug.cgi?id=23045
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #25 from super_man@post.com --- (In reply to Béla Gyebrószki from comment #24)
(In reply to Austin English from comment #22)
This is your friendly reminder that there has been no bug activity for over a year. Is this still an issue in current (1.7.51 or newer) wine?
I haven't seen this kind of crash in FC2 (GOG.com) for a long time now. I retested with previous Wine versions from the 1.5 branch, but there is no crash with them either. In wireshark I see that the game sends some data to a server belonging to Ubisoft, but no other connection attempts were made.
Anyway, I can't reproduce the crash, the game runs stable in every Wine version I tried.
wine-1.7.51-225-g3966aff Fedora 22 32-bit Far Cry 2 from GOG.com
Can we mark as worksforme? If you browse the comment history and see years and wine versions. It's hard for me to believe someone is suddenly testing this.
https://bugs.winehq.org/show_bug.cgi?id=23045
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com, | |winetest@luukku.com
https://bugs.winehq.org/show_bug.cgi?id=23045
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dimesio@earthlink.net
--- Comment #26 from winetest@luukku.com --- (In reply to Béla Gyebrószki from comment #24)
(In reply to Austin English from comment #22)
This is your friendly reminder that there has been no bug activity for over a year. Is this still an issue in current (1.7.51 or newer) wine?
I haven't seen this kind of crash in FC2 (GOG.com) for a long time now. I retested with previous Wine versions from the 1.5 branch, but there is no crash with them either. In wireshark I see that the game sends some data to a server belonging to Ubisoft, but no other connection attempts were made.
Anyway, I can't reproduce the crash, the game runs stable in every Wine version I tried.
wine-1.7.51-225-g3966aff Fedora 22 32-bit Far Cry 2 from GOG.com
Bug was reported back 2010. And if you see recent history I doubt there will be any feedback anytime soon. You have been here the most active one.
https://bugs.winehq.org/show_bug.cgi?id=23045
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |ABANDONED Status|NEW |RESOLVED
--- Comment #27 from Béla Gyebrószki gyebro69@gmail.com --- If someone can still reproduce the problem, feel free to reopen.
Marking ABANDONED.
https://bugs.winehq.org/show_bug.cgi?id=23045
Steffen Rytter Postas nc@necrophcodr.me changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nc@necrophcodr.me
--- Comment #28 from Steffen Rytter Postas nc@necrophcodr.me --- I've reproduced this unfortunately, using the following:
wine-1.9.20 (Staging) Sabayon MATE amd64 (with latest updates as of posting).
Version is Steam, and it is confirmed to be present still.
https://bugs.winehq.org/show_bug.cgi?id=23045
--- Comment #29 from winetest@luukku.com --- (In reply to Steffen Rytter Postas from comment #28)
I've reproduced this unfortunately, using the following:
wine-1.9.20 (Staging) Sabayon MATE amd64 (with latest updates as of posting).
Version is Steam, and it is confirmed to be present still.
Should be reopened then.
https://bugs.winehq.org/show_bug.cgi?id=23045
--- Comment #30 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Steffen Rytter Postas from comment #28)
I've reproduced this unfortunately, using the following:
wine-1.9.20 (Staging) Sabayon MATE amd64 (with latest updates as of posting).
Version is Steam, and it is confirmed to be present still.
Before reopening, I would like to ask you to confirm that installing native secur32.dll works around the crashes.
https://bugs.winehq.org/show_bug.cgi?id=23045
--- Comment #31 from Steffen Rytter Postas nc@necrophcodr.me --- (In reply to Béla Gyebrószki from comment #30)
(In reply to Steffen Rytter Postas from comment #28)
I've reproduced this unfortunately, using the following:
wine-1.9.20 (Staging) Sabayon MATE amd64 (with latest updates as of posting).
Version is Steam, and it is confirmed to be present still.
Before reopening, I would like to ask you to confirm that installing native secur32.dll works around the crashes.
How would I go about doing this? I've read that using winetricks was not really accepted in regards to these things.
https://bugs.winehq.org/show_bug.cgi?id=23045
--- Comment #32 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to Steffen Rytter Postas from comment #31)
Version is Steam, and it is confirmed to be present still.
Before reopening, I would like to ask you to confirm that installing native secur32.dll works around the crashes.
How would I go about doing this? I've read that using winetricks was not really accepted in regards to these things.
To prove that a problem exist it is fine to use winetricks, which is what comment 30 suggests you to. What is not correct is to pretend a bug is fixed just because you installed something using winetricks. If installing secur32 fixes the issue from Far Cry than you should be experiencing this same bug, if not than you have some other problem.
https://bugs.winehq.org/show_bug.cgi?id=23045
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #33 from Austin English austinenglish@gmail.com --- Closing.
https://bugs.winehq.org/show_bug.cgi?id=23045
Adrien Fernandes adrien_fernandes2@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adrien_fernandes2@hotmail.c | |om
--- Comment #34 from Adrien Fernandes adrien_fernandes2@hotmail.com --- Created attachment 61806 --> https://bugs.winehq.org/attachment.cgi?id=61806 Terminal output on FreeBSD
GTX 765m ===> nvidia-driver-390.48 12G RAM
Wine 3.12 FreeBSD 12.0-CURRENT amd64
This problem appears on a lot of games as soon as they are too graphically heavy. I remember having the game working correctly fine on GNU/Linux but not on FreeBSD. What is that meaning ? :
003f:fixme:d3d_shader:print_glsl_info_log Info log received from GLSL shader #207: 003f:fixme:d3d_shader:print_glsl_info_log Vertex info 003f:fixme:d3d_shader:print_glsl_info_log ----------- 003f:fixme:d3d_shader:print_glsl_info_log 0(23) : warning C7050: "vs_out[3].w" might be used before being initialized 003f:fixme:d3d_shader:print_glsl_info_log 0(23) : warning C7050: "vs_out[4].zw" might be used before being initialized 003f:fixme:d3d_shader:print_glsl_info_log 0(23) : warning C7050: "vs_out[5]" might be used before being initialized 003f:fixme:d3d_shader:print_glsl_info_log 0(23) : warning C7050: "vs_out[6]" might be used before being initialized 003f:fixme:d3d_shader:print_glsl_info_log 0(23) : warning C7050: "vs_out[7]" might be used before being initialized 003f:fixme:d3d_shader:print_glsl_info_log 0(23) : warning C7050: "vs_out[8]" might be used before being initialized 003f:fixme:d3d_shader:print_glsl_info_log 0(23) : warning C7050: "vs_out[9]" might be used before being initialized 003f:fixme:d3d_shader:print_glsl_info_log 0(23) : warning C7050: "vs_out[10]" might be used before being initialized 003f:fixme:d3d_shader:print_glsl_info_log 0(23) : warning C7050: "vs_out[11]" might be used before being initialized
I've seen those messages for million times now over the years. :/