[Bug 41951] New: Unimplemented function bcrypt.dll.BCryptDuplicateHash prevents DOOM from running
https://bugs.winehq.org/show_bug.cgi?id=41951 Bug ID: 41951 Summary: Unimplemented function bcrypt.dll.BCryptDuplicateHash prevents DOOM from running Product: Wine Version: 1.9.24 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: bcrypt Assignee: wine-bugs(a)winehq.org Reporter: strider(a)strycore.com Distribution: --- Created attachment 56337 --> https://bugs.winehq.org/attachment.cgi?id=56337 Wine output with +bcrypt With the recent removal of Denuvo in DOOM, we are closer to having a working game but some features are still missing. Aside form bug #40418, the call to bcrypt.dll.BCryptDuplicateHash seems to crash the game. I'm attaching a log from Wine 1.9.24 running with WINEDEBUG="+bcrypt" and a crash report from the game itself. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 --- Comment #1 from Mathieu Comandon <strider(a)strycore.com> --- Created attachment 56338 --> https://bugs.winehq.org/attachment.cgi?id=56338 Crash report produced by DOOM itself -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 Adam Bolte <abolte(a)systemsaviour.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |abolte(a)systemsaviour.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 thesaxophonist(a)gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thesaxophonist(a)gmail.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 Luke Bratch <luke(a)bratch.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |luke(a)bratch.co.uk -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 David Gámiz Jiménez <david.gamiz(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david.gamiz(a)gmail.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 kaito.linux(a)gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kaito.linux(a)gmail.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 Nguyen Thai Ngoc Duy <pclouds(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pclouds(a)gmail.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 Bruno Jesus <00cpxxx(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |40418 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 david(a)tpflug.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david(a)tpflug.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 Matthew Krafczyk <krafczyk.matthew(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |krafczyk.matthew(a)gmail.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 Anton Romanov <theli.ua(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |theli.ua(a)gmail.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 Johannes Brandstätter <jbrandst(a)2ds.eu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jbrandst(a)2ds.eu --- Comment #2 from Johannes Brandstätter <jbrandst(a)2ds.eu> --- Created attachment 56346 --> https://bugs.winehq.org/attachment.cgi?id=56346 Log of DOOMx64.exe with the missing methods. I hacked away at the issue but sadly just now found out about the patch for AES support that Hans Leidekker already provided in another bug. Anyway was a fun exercise. So it may really just be up to the duplicate hash method to get it running. For what it's worth I attached the log with +bcrypt and all missing methods at least as stubs. The output from the game's console changed as well: FATAL ERROR: Loading unverified resource. Verify files with Steam or set 'devMode_enable' to allow unverified resources: index file C:\Program Files (x86)\Steam\steamapps\common\DOOM\base\gameresources.index Set cvar 'devMode_enable' to enable Dev Mode. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 --- Comment #3 from Mathieu Comandon <strider(a)strycore.com> --- Someone suggested trying out setting bcrypt.dll to native. I have tried that and bcrypt fails to initialize but that's maybe because I'm using the wrong version of the dll. Specifically, I'm looking for a proper dll from Windows 7 64bit. @Johannes have you tried the 'devMode_enable' option as stated in the error message? Setting this will disable multiplayer and taint any existing save games but getting the game to launch would be a start. You can try setting it in $WINEPREFIX/drive_c/users/[username]/Saved Games/id Software/DOOM/base/DOOMConfig.cfg -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 --- Comment #4 from Johannes Brandstätter <jbrandst(a)2ds.eu> --- Yes, I tried setting it, but via adding "+cvar devMode_enable" on the command line. It only tried to show a confirmation dialog which was completely black. I clicked randomly on the black surface, as well as pressing Enter and so on... but nothing happened. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 Mike Ellery <mellery(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mellery(a)gmail.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 Sven Arvidsson <sa(a)whiz.se> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sa(a)whiz.se -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 Wylda <wylda(a)volny.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wylda(a)volny.cz -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 C0rn3j <spleefer90(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |spleefer90(a)gmail.com --- Comment #5 from C0rn3j <spleefer90(a)gmail.com> --- Someone supposedly hacked around this and made the game run(although with missing labels), they said they'll release the code after a nap. No code yet - "git and links will be tomorrow." -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 --- Comment #6 from C0rn3j <spleefer90(a)gmail.com> --- Someone supposedly hacked around this and made the game run(although with missing labels), they said they'll release the code after a nap. No code yet - "git and links will be tomorrow." http://steamcommunity.com/app/379720/discussions/0/152391995402132325/ -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 Jordyn <quietraccoon(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |quietraccoon(a)gmail.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 --- Comment #7 from C0rn3j <spleefer90(a)gmail.com> --- The source is out, it's a big hack ^^ https://github.com/thevoidnn/wine20-bcrypt-doom -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 --- Comment #8 from Anton Romanov <theli.ua(a)gmail.com> ---
it's a big hack
Well, yeah. As gnutls doesn't have any way to duplicate state there is no clear way to avoid hacks. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 Ivan Epifanov <isage.dna(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |isage.dna(a)gmail.com --- Comment #9 from Ivan Epifanov <isage.dna(a)gmail.com> --- Hello. I rewrote bcrypt using libgcrypt https://github.com/isage/wine-doom Saving/loading works too, but still needs proper binary-safe padding implementation for Encrypt/Decrypt. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 Sebastian Lackner <sebastian(a)fds-team.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |STAGED CC| |dmitry(a)baikal.ru, | |erich.e.hoover(a)wine-staging | |.com, michael(a)fds-team.de, | |sebastian(a)fds-team.de Staged patchset| |https://github.com/wine-com | |pholio/wine-staging/tree/ma | |ster/patches/bcrypt-Improve | |ments -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 --- Comment #10 from Ivan Epifanov <isage.dna(a)gmail.com> --- Two users confirmed that with latest wine-staging game works properly. Thank you! -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 --- Comment #11 from Matthew Krafczyk <krafczyk.matthew(a)gmail.com> --- I can also confirm that the game seems to be working properly. I only tested single player. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 --- Comment #12 from Adam Bolte <abolte(a)systemsaviour.com> --- I was unable to get multiplayer loading at all, even with staging rc2. I attempted to load it maybe 5 times. Clicking the multiplayer button from the main menu results in the game attempting to restart, which always crashes for me. Once the game crashes during loading, it always seems to crash during loading until I exit Steam and run `wineserver -k` before trying again. The game also seems to fail to shutdown cleanly a lot of the time (maybe 2 times out of 3), and the DOOM exe process has to be killed off manually. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 --- Comment #13 from C0rn3j <spleefer90(a)gmail.com> --- Created attachment 56557 --> https://bugs.winehq.org/attachment.cgi?id=56557 Doom trying to connect to MP match -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 --- Comment #14 from C0rn3j <spleefer90(a)gmail.com> --- Actually clicking on Multiplayer tries to restart the game, which hangs for good 5-10 minutes and then launches fine. After that I can queue up with people but it never connects and throws me back into the menu, presumably because of unimplemented things in bcrypt which are in the log I attached. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 dylanmc <pinturiano(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pinturiano(a)gmail.com --- Comment #15 from dylanmc <pinturiano(a)gmail.com> --- With Playonlinux, Doom updated without denuvo, wine 2.0-rc2-staging AMD64 the game started and works, now I have only to test gameplay :) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 --- Comment #16 from Sebastian Lackner <sebastian(a)fds-team.de> --- (In reply to C0rn3j from comment #14)
After that I can queue up with people but it never connects and throws me back into the menu, presumably because of unimplemented things in bcrypt which are in the log I attached.
This issue should be fixed in Wine Staging 2.0-rc3 when using a GnuTLS version
= 3.0. As it turned out, multiplayer requires additional bcrypt functionality (AES-GCM support to be precise). Please note that it is preferred to have each issue in a separate bug report, so if you notice any other issues, please open a new bug report for it.
-- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 fjfrackiewicz(a)gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fjfrackiewicz(a)gmail.com --- Comment #17 from fjfrackiewicz(a)gmail.com --- Looks like this function is implemented now: https://source.winehq.org/git/wine.git/commit/da8853f06226f97e2486066b45785b... -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 Sebastian Lackner <sebastian(a)fds-team.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|STAGED |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |da8853f06226f97e2486066b457 | |85be7894afca2 --- Comment #18 from Sebastian Lackner <sebastian(a)fds-team.de> --- (In reply to fjfrackiewicz from comment #17)
Looks like this function is implemented now:
https://source.winehq.org/git/wine.git/commit/ da8853f06226f97e2486066b45785be7894afca2
Yes, this particular issue is fixed (probably not sufficient for DOOM, though). -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #19 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 2.4. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 Michael Stefaniuc <mstefani(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.0.x -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41951 Michael Stefaniuc <mstefani(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|2.0.x |--- CC| |mstefani(a)winehq.org --- Comment #20 from Michael Stefaniuc <mstefani(a)winehq.org> --- Removing the 2.0.x Target Milestone as this is not enough for Doom 4. The other 10 patches in Devel as well as the 27 patches from Staging are needed too. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org