https://bugs.winehq.org/show_bug.cgi?id=51988
Bug ID: 51988 Summary: Dungeon Keeper 2 (Retail) crashes on startup Product: Wine Version: 6.20 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: volker.schlegel@tutanota.com Distribution: ---
Created attachment 70976 --> https://bugs.winehq.org/attachment.cgi?id=70976 Backtrace.txt created by wine
Distro: Arch Architecture: x86_64 Wine is installed via the package manager
The game crashes when trying to start it with "wine ./DKII.exe".
I have no idea on what Version Dungeon Keeper 2 is. SHA1 checksum of DKII.exe: 57261c8ef4acdc93c94bd54a3142a24ececba53d
https://bugs.winehq.org/show_bug.cgi?id=51988
--- Comment #1 from Gijs Vermeulen gijsvrm@gmail.com --- Could you attach the full terminal output, not only the backtrace? See: https://wiki.winehq.org/FAQ#How_can_I_get_a_debugging_log_.28a.k.a._terminal_output.29.3F
https://bugs.winehq.org/show_bug.cgi?id=51988
--- Comment #2 from Volker S. volker.schlegel@tutanota.com --- Created attachment 71278 --> https://bugs.winehq.org/attachment.cgi?id=71278 Terminal log
https://bugs.winehq.org/show_bug.cgi?id=51988
--- Comment #3 from Volker S. volker.schlegel@tutanota.com --- Installing the unofficial fan patch(1.8) fixes it.
https://bugs.winehq.org/show_bug.cgi?id=51988
--- Comment #4 from Volker S. volker.schlegel@tutanota.com --- Nevermind, the game crashes after finishing the first mission.
https://bugs.winehq.org/show_bug.cgi?id=51988
--- Comment #5 from Volker S. volker.schlegel@tutanota.com --- Created attachment 72190 --> https://bugs.winehq.org/attachment.cgi?id=72190 The error message displayed by the wine crash window
https://bugs.winehq.org/show_bug.cgi?id=51988
--- Comment #6 from Volker S. volker.schlegel@tutanota.com --- I tried to get a terminal output, but this time the game didn't crash... Interesting
https://bugs.winehq.org/show_bug.cgi?id=51988
--- Comment #7 from Volker S. volker.schlegel@tutanota.com --- I've been able to reproduce the same crash on Manjaro and now I've tried it on Fedora, it crashes as soon as I click Play in the window from setup.exe. Looking at the error logs it seems to be the same or a similar crash.
https://bugs.winehq.org/show_bug.cgi?id=51988
Volker S. volker.schlegel@tutanota.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |ntoskrnl
--- Comment #8 from Volker S. volker.schlegel@tutanota.com --- Looking into the various debug logs I have, it seems to be related to ntoskrnl failing to load "C:\windows\system32\drivers\\SECDRV.SYS" which apparently belongs to SafeDisc DRM...
https://bugs.winehq.org/show_bug.cgi?id=51988
--- Comment #9 from Volker S. volker.schlegel@tutanota.com --- Created attachment 72961 --> https://bugs.winehq.org/attachment.cgi?id=72961 Wine Debug Log with WINEDEBUG=+seh,+ntoskrnl
I wrote "@@@@@" to the file before clicking on Play
https://bugs.winehq.org/show_bug.cgi?id=51988
--- Comment #10 from Volker S. volker.schlegel@tutanota.com --- Looking a bit more into SafeDisc I found this post: https://www.winehq.org/pipermail/wine-users/2002-April/007910.html The SafeDisc Version used by my version of Dungeon Keeper II seems to be 1.x No version in the file size tables in that post matches exactly leading me to believe that it probably uses an older version of SafeDisc. However I'm either dumb or the version pattern in this version is weird, because I'm decoding that as 256.2816.0.
https://bugs.winehq.org/show_bug.cgi?id=51988
--- Comment #11 from Volker S. volker.schlegel@tutanota.com --- Created attachment 72963 --> https://bugs.winehq.org/attachment.cgi?id=72963 Partial dump of secdrv.sys containing the version pattern
Decodes to 256.2816.0 for me, probably made some mistake
https://bugs.winehq.org/show_bug.cgi?id=51988
Volker S. volker.schlegel@tutanota.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Dungeon Keeper 2 (Retail) |Dungeon Keeper 2 (Retail) |crashes on startup |crashes on startup due to | |SafeDisc DRM Version 1.x
https://bugs.winehq.org/show_bug.cgi?id=51988
Volker S. volker.schlegel@tutanota.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Dungeon Keeper 2 (Retail) |Dungeon Keeper 2 (Retail, |crashes on startup due to |German) crashes on startup |SafeDisc DRM Version 1.x |due to SafeDisc DRM Version | |1.x
https://bugs.winehq.org/show_bug.cgi?id=51988
--- Comment #12 from Austin English austinenglish@gmail.com --- Try protectionid https://web.archive.org/web/20210331144912/https://protectionid.net/
https://bugs.winehq.org/show_bug.cgi?id=51988
--- Comment #13 from Volker S. volker.schlegel@tutanota.com --- (In reply to Austin English from comment #12)
Try protectionid https://web.archive.org/web/20210331144912/https://protectionid.net/
The file doesn't seem to be archived by archive.org. Are there any reuploads of this?
https://bugs.winehq.org/show_bug.cgi?id=51988
--- Comment #14 from Volker S. volker.schlegel@tutanota.com --- My version of wine is built from https://source.winehq.org/git/wine.git/. I cloned it about 4 weeks ago. I will probably rebuild it tomorrow morning, but I doubt anything will be different regarding this bug. I'll decompile secdrv.sys and look deeper into it to find out what exactly is causing this, maybe I can develop a patch. I'll post any updates here in case anyone else has the same problem and wants to help.
https://bugs.winehq.org/show_bug.cgi?id=51988
--- Comment #15 from Volker S. volker.schlegel@tutanota.com --- (In reply to Volker S. from comment #13)
(In reply to Austin English from comment #12)
Try protectionid https://web.archive.org/web/20210331144912/https://protectionid.net/
The file doesn't seem to be archived by archive.org. Are there any reuploads of this?
Found a mirror of this site where archive.org archived the files: https://web.archive.org/web/20180921050146/https://pid.gamecopyworld.com/
https://bugs.winehq.org/show_bug.cgi?id=51988
--- Comment #16 from Volker S. volker.schlegel@tutanota.com --- Ok, so according to protectionid it's SafeDisc 1.11.000
https://bugs.winehq.org/show_bug.cgi?id=51988
Volker S. volker.schlegel@tutanota.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Dungeon Keeper 2 (Retail, |Dungeon Keeper 2 (Retail, |German) crashes on startup |German) crashes on startup |due to SafeDisc DRM Version |due to SafeDisc DRM Version |1.x |1.11.000
https://bugs.winehq.org/show_bug.cgi?id=51988
--- Comment #17 from Volker S. volker.schlegel@tutanota.com --- Ok, so I am trying to find the old SafeDisc implementation mentioned here: https://www.winehq.org/pipermail/wine-users/2002-April/007910.html I can't find it though..
https://bugs.winehq.org/show_bug.cgi?id=51988
--- Comment #18 from Volker S. volker.schlegel@tutanota.com --- Interesting.. After searching through the git logs it seems that this guy only ever made 2 commits: b50a532aff99cbd351efe4fbbfe1b67199442a74 and 0314a65a581598c78281bd42ae559046fbe5bc8d None of them seem to implement support for safedisc.
https://bugs.winehq.org/show_bug.cgi?id=51988
Etaash Mathamsetty etaash.mathamsetty@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |etaash.mathamsetty@gmail.co | |m
--- Comment #19 from Etaash Mathamsetty etaash.mathamsetty@gmail.com --- some kernel drivers make the registry key point to a certain path, without putting C:\windows\ in front, this would usually result in a c0000142 error which is what you are seeing, maybe try modifying the registry key? (open regedit and go to HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services and look for your driver, after that change the path like I described (unless it's already correct, in that case something else is the issue))
https://bugs.winehq.org/show_bug.cgi?id=51988
Volker S. volker.schlegel@tutanota.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |volker.schlegel@tutanota.co | |m
https://bugs.winehq.org/show_bug.cgi?id=51988
--- Comment #20 from Volker S. volker.schlegel@tutanota.com --- (In reply to Etaash Mathamsetty from comment #19)
some kernel drivers make the registry key point to a certain path, without putting C:\windows\ in front, this would usually result in a c0000142 error which is what you are seeing, maybe try modifying the registry key? (open regedit and go to HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services and look for your driver, after that change the path like I described (unless it's already correct, in that case something else is the issue))
Sorry for not replying for over 6 months, I thought I'd automatically get an email when someone replies, fixed that now, so I should respond a lot quicker :'D
Running Manjaro again, just verified that the bug still happens with both wine 8.9 (32bit only, built from the source tarball) and wine-staging 8.6.
For the sake of this bug report I will only use wine 8.9 from now on for testing since wine-staging doesn't seem to have any patches that fix it and no patches for ntoskrnl were added or updated since wine-staging 8.6. The registry key HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/Secdrv/ImagePath contains C:\windows\system32\drivers\SECDRV.SYS, so it's something else. While the second backslash before SECDRV.SYS is odd removing it doesn't fix it.
https://bugs.winehq.org/show_bug.cgi?id=51988
Volker S. volker.schlegel@tutanota.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|6.20 |8.9