https://bugs.winehq.org/show_bug.cgi?id=46564
Bug ID: 46564 Summary: [bcrypt]Anno 1800 closed beta crashes at launch Product: Wine-staging Version: 4.0 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: berillions@gmail.com CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
Created attachment 63437 --> https://bugs.winehq.org/attachment.cgi?id=63437 Anno 1800 bcrypt log
Hello,
I tried to launch Anno 1800 with wine-staging + DXVK but unfortunatly, the game crashes at launch : I see a black screen like if the game start (before the Ubisoft logo video) and the game closes.
In the output console log, the game closes after these both lines : 0129:fixme:bcrypt:BCryptGenerateKeyPair 0xade1910, 0x7f9dbf8da990, 256, 00000000 - stub 0129:fixme:bcrypt:BCryptFinalizeKeyPair (nil), 00000000 - stub
I attach the +bcrypt log but i don't know if something wrong or not.
The only thing i can say is that the game works ONLY if UPlay is launched with offline mode. I think it's a network issue because the game is constantly connected to Internet enven for singleplayer campagn.
To resume : UPlay Online + Anno 1800 = crash because of bcrypt (i think) UPlay Offline + Anno 1800 = Works
https://bugs.winehq.org/show_bug.cgi?id=46564
Berillions berillions@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hverbeet@gmail.com
--- Comment #1 from Berillions berillions@gmail.com --- Henri, I add you to the CC List because you worked on the bcrypt implementation.
I talked with Zebediah on Discord, and for him there are issues because : - BCryptFinalizeKeyPair should return an NTSTATUS - BCryptGenerateKeyPair should return a real handle, in the second parameter - The log shows a call to BCryptExportKey(), which presumably fails since the handle is NULL, and then I'd guess the game just throws an exception
Have you got the possibility to check that ?
Thanks
https://bugs.winehq.org/show_bug.cgi?id=46564
--- Comment #2 from Hans Leidekker hans@meelstraat.net --- Created attachment 63447 --> https://bugs.winehq.org/attachment.cgi?id=63447 patch
Can you get a +bcrypt trace with this patch applied?
https://bugs.winehq.org/show_bug.cgi?id=46564
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |bcrypt Summary|[bcrypt]Anno 1800 closed |Anno 1800 closed beta |beta crashes at launch |crashes at launch Product|Wine-staging |Wine
--- Comment #3 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- This wont be just a wine-staging issue.
https://bugs.winehq.org/show_bug.cgi?id=46564
--- Comment #4 from Berillions berillions@gmail.com --- Created attachment 63451 --> https://bugs.winehq.org/attachment.cgi?id=63451 Anno 1800 log with bcrypt patch
Hi,
I tried the patch and unfortunatly, the game still crashes at launch. I add the +bcrypt log when i launch the game.
https://bugs.winehq.org/show_bug.cgi?id=46564
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #63447|0 |1 is obsolete| |
--- Comment #5 from Hans Leidekker hans@meelstraat.net --- Created attachment 63454 --> https://bugs.winehq.org/attachment.cgi?id=63454 patch
Fun, BCryptExportKey(BCRYPT_ECCPUBLIC_BLOB) returns success when the buffer is too small.
Can you get another trace with this version?
https://bugs.winehq.org/show_bug.cgi?id=46564
--- Comment #6 from Berillions berillions@gmail.com --- Created attachment 63456 --> https://bugs.winehq.org/attachment.cgi?id=63456 Anno 1800 log with bcrypt patch Version 2
Good job Hans, the game works now without crash even if UPlay is launched with the Online mode.
But it seems that the game still has not access to Internet. Because in game there is a Wifi symbol which is green when there is an access to Internet and grey/barred without it. On Windows, the symbol is green, with wine it's grey/barred.
But maybe it's related to this issue or not. Unfortunatly, the closed beta access finish tomorrow. We will have the following of the story at the release date : 04/16/19.
I add the bcrypt log too :-)
https://bugs.winehq.org/show_bug.cgi?id=46564
--- Comment #7 from Berillions berillions@gmail.com --- Created attachment 63458 --> https://bugs.winehq.org/attachment.cgi?id=63458 Anno 1800 log generated by the game
I add the Anno 1800 log generated by the game itself. You can see different error message like this : [14:47:27][14c][ ERROR] EalLogOutput: [EAL]: (ERROR) ERROR Unable to import public key from packet. Connection failed. [14:47:27][14c][ ERROR] EalLogOutput: [EAL]: (ERROR) ERROR [SECURITY] Failed to set shared secret. Connection to server failed.
But i still don't know if it's related at this bug report :-)
https://bugs.winehq.org/show_bug.cgi?id=46564
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #63454|0 |1 is obsolete| |
--- Comment #8 from Hans Leidekker hans@meelstraat.net --- Created attachment 63459 --> https://bugs.winehq.org/attachment.cgi?id=63459 patch
Thanks, it wants support for BCRYPT_ECCPUBLIC_BLOB in BcryptImportKeyPair now. This version adds it. I bet we'll hit another unimplemented feature after this ;-)
https://bugs.winehq.org/show_bug.cgi?id=46564
--- Comment #9 from Berillions berillions@gmail.com --- (In reply to Hans Leidekker from comment #8)
Created attachment 63459 [details] patch
Thanks, it wants support for BCRYPT_ECCPUBLIC_BLOB in BcryptImportKeyPair now. This version adds it. I bet we'll hit another unimplemented feature after this ;-)
You're right. Now the game crashes for a new unimplemented function : [...] 0184:trace:bcrypt:BCryptImportKeyPair 0xaf09510, (nil), L"ECCPUBLICBLOB", 0x1b04f3c0, 0x14426958, 72, 00000000 wine: Call from 0x7b44fee6 to unimplemented function bcrypt.dll.BCryptSecretAgreement, aborting
https://bugs.winehq.org/show_bug.cgi?id=46564
kaito.linux@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kaito.linux@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=46564
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Staged patchset| |https://github.com/wine-sta | |ging/wine-staging/tree/mast | |er/patches/bcrypt-BCryptSec | |retAgreement Status|UNCONFIRMED |STAGED
--- Comment #10 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- I've staged the missing stubs BCryptDestroySecret/BCryptSecretAgreement/BCryptDeriveKey
Missing BCryptGenerateKeyPair support is bug 45312.
@Hans, I've updated the BCryptGenerateKeyPair in staging with your patch and changed it to support older gnutls.
Thanks.
https://bugs.winehq.org/show_bug.cgi?id=46564
--- Comment #11 from Berillions berillions@gmail.com --- Thanks guys for the patches and to have added them in Staging.
I'll be back here when the game will be release to inform you if the missing BCryptDestroySecret/BCryptSecretAgreement/BCryptDeriveKey stubs are enough or not.
https://bugs.winehq.org/show_bug.cgi?id=46564
--- Comment #12 from Hans Leidekker hans@meelstraat.net --- (In reply to Berillions from comment #11)
Thanks guys for the patches and to have added them in Staging.
I'll be back here when the game will be release to inform you if the missing BCryptDestroySecret/BCryptSecretAgreement/BCryptDeriveKey stubs are enough or not.
Do you know how BCryptDeriveKey is called?
https://bugs.winehq.org/show_bug.cgi?id=46564
--- Comment #13 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- (In reply to Hans Leidekker from comment #12)
(In reply to Berillions from comment #11)
Thanks guys for the patches and to have added them in Staging.
I'll be back here when the game will be release to inform you if the missing BCryptDestroySecret/BCryptSecretAgreement/BCryptDeriveKey stubs are enough or not.
Do you know how BCryptDeriveKey is called?
This was a guess on my behalf, BCryptDeriveKey appears to be the only function that uses the BCRYPT_SECRET_HANDLE value returned from BCryptSecretAgreement.
https://bugs.winehq.org/show_bug.cgi?id=46564
--- Comment #14 from Berillions berillions@gmail.com --- Hello Alister and Hans,
The Open Beta is available for 2 days (04/12 to 04/14). Currently, the game works but the Internet connection not.
I have these lines in the Anno 1800 log generated by the game : [ 4:57:07][21b][ ERROR] rdnet::CConnectionTo::OnFailure: Error occurred in Punch: code -999850 (Local address error, check system error code.), reason Punch detect failed. [ 4:57:07][21b][ ERROR] rdnet::CConnectionTo::OnFailure: Error occurred in MatchMaking: code -999850 (Local address error, check system error code.), reason Connecting to MatchMaking [ 4:57:35][19c][ ERROR] EalLogOutput: [EAL]: (ERROR) ERROR RendezVous Facade login failed, error:Core::11 [ 4:57:35][19c][ ERROR] EalLogOutput: [EAL]: (ERROR) ERROR RendezVous Facade login failure, error:Core::11
I'll add the output console log for Wine this afternoon after work :-)
https://bugs.winehq.org/show_bug.cgi?id=46564
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sashok.olen@gmail.com
--- Comment #15 from Fabian Maurer dark.shadow4@web.de --- *** Bug 47235 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=46564
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.winehq.org/sho | |w_bug.cgi?id=47235
https://bugs.winehq.org/show_bug.cgi?id=46564
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |08bc5b0d349b40efec0fc41e609 | |88a18de3a9d28 Status|STAGED |RESOLVED Resolution|--- |FIXED
--- Comment #16 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Fixed by https://source.winehq.org/git/wine.git/?a=commit;h=08bc5b0d349b40efec0fc41e6...
https://source.winehq.org/git/wine.git/?a=commit;h=eb615ea0cbe46e156a7840ad0...
https://bugs.winehq.org/show_bug.cgi?id=46564
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #17 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.10.