https://bugs.winehq.org/show_bug.cgi?id=49042
Bug ID: 49042 Summary: The ddraw.dll library in the game Gothic2 stopped loading (with the DX11 render) Product: Wine-staging Version: 5.6 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: sohatok@yandex.ru CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
The ddraw.dll library in the game Gothic2 stopped loading (with the DX11 render)
Hello.
After updating wine to version 5.6, the DDRAW.dll library stopped loading When the game starts, the following messages are displayed: 0009: err: module: LdrInitializeThunk "DDRAW.dll" failed to initialize, aborting 0009: err: module: LdrInitializeThunk Initializing dlls for L "D: \ Gothic II \ System \ Gothic2.exe" failed, status c0000005
On previous versions, younger than 5.6 (5.5, 5.4 ....), the game was loaded without errors. After updating wine to version 5.7, the error remained (not fixed). All versions of wine that I have specified have the "staging" modification. Gothic2 game has version 2.6 with DX11 render Without DX11 rendering, the game starts normally (DX9 is used)
Under windows 7 or 10, the game starts normally (with DX11). Under windows, to disable the DX11 rendering, just rename the ddraw.dll file in the SYSTEM directory (I mean the game directory) Under linux, to enable DX11, add the download of the external ddraw.dll: winecfg -> Applications (add Gothic2.exe) -> Libraries (add ddraw.dll) or run the game with the key: WINEDLLOVERRIDES = dxgi, d3d11, ddraw = n, b
example of a game launch line: WINEDLLOVERRIDES = dxgi, d3d11, ddraw = n, b DXVK_HUD = gpuload, memory wine ./Gothic2.exe
I am using 64-bit prefix.
The following libraries are also added for sound functioning:
dmband.dll dmcompos.dll dmime.dll dmloader.dll dmstyle.dll dmsynth.dll dmusic.dll dsound.dll
these are native libraries taken from the system32 directory of windows xp (32 bit) If required, then the link for downloading the libraries used in my prefix: https: // drive. google.com/open?id=1-Nr0ThkEYgFSDQRFHcCMDvSKPMItta7v
The game is physically located on the ntfs section mounted in the home directory, therefore, file permissions may look a little strange. Dxvk version 1.6.1 is installed in the prefix (.wine)
My operating system: System: Host: alex-pc Kernel: 5.3.0-42- generic x86_64 bits: 64 Desktop: Xfce 4.12.3 Distro: Ubuntu 18.04.4 LTS Graphics: Card: Advanced Micro Devices [AMD / ATI] Navi 10 [Radeon RX 5600 OEM / 5600 XT / 5700/5700 XT] Display Server: x11 (X.Org 1.20.5) drivers: ati, amdgpu (unloaded: modesetting, fbdev, vesa, radeon) Resolution: 1920x1200@59.95hz OpenGL: renderer: AMD Radeon RX 5700 version: 4.6.13594 20.10
Game archive for the ability to reproduce the error: https://drive.google.com/open?id=1NrQZmqNEEK3CCyH6VqhXA7JFAvryBKgj Unpacked game takes about 12.2 GB.
Game Launch File: SYSTEM \ Gothic2.exe
Best regards, sohatok.
https://bugs.winehq.org/show_bug.cgi?id=49042
--- Comment #1 from Zebediah Figura z.figura12@gmail.com --- Is this "ddraw.dll" shipped by the application, or installed from a third-party source?
(In reply to sohatok from comment #0)
example of a game launch line: WINEDLLOVERRIDES = dxgi, d3d11, ddraw = n, b DXVK_HUD = gpuload, memory wine ./Gothic2.exe
DXVK is not supported in this bug tracker. Please test with builtin d3d libraries, or report this bug to DXVK.
https://bugs.winehq.org/show_bug.cgi?id=49042
--- Comment #2 from sohatok sohatok@yandex.ru --- Yes, I am aware that dxvk errors are not dealt with here. The fact is that ddraw.dll stopped loading after updating wine-staging from version 5.5 to version 5.6 and also does not load in version 5.7, and not after updating dxvk. When I had version 5.5 of wine, I had to use alternately to find the winepath error several versions of dxvk: 1 .6.1; 1.6; 1.5.5; 1.5.4; 1.5.3 With any of these versions of dxvk, the ddraw.dll library loaded successfully. After updating wine-staging, ddraw.dll does not load with any of these dxvk versions. I understand that my ddraw.dll library is produced by a third party and is not standard. I just want to draw your attention to the fact that this library loaded fine earlier and it boots without any problems under Windows (7 or 10 no difference) at the current time. Based on this, I conclude that the problem is precisely in wine-staging weight> 5.5
https://bugs.winehq.org/show_bug.cgi?id=49042
--- Comment #3 from Zebediah Figura z.figura12@gmail.com --- While updating Wine from 5.6 to 5.7 without changing DXVK or this third-party ddraw.dll may introduce a crash, that does not necessarily mean that the bug is in Wine.
If this bug can be reproduced with Wine's builtin d3d implementation, it can be considered valid. Otherwise, without further information as to why the crash occurs, we have no way of knowing.
https://bugs.winehq.org/show_bug.cgi?id=49042
--- Comment #4 from sohatok sohatok@yandex.ru --- At the time of updating wine from version 5.5 to version 5.6, neither dxvk nor ddraw.dll (third-party) were changed. Maybe I didn’t understand you correctly, but if: 1) with the version of wine .... 5.3, 5.4, 5.5 the ddraw.dll library loaded normally with any version of dxvk; 2) with the version wine 5.6 and 5.7, the ddraw.dll library does not load with any version of dxvk then the problem is in wine.
https://bugs.winehq.org/show_bug.cgi?id=49042
--- Comment #5 from Zebediah Figura z.figura12@gmail.com --- Changes in one component may expose bugs in another.
https://bugs.winehq.org/show_bug.cgi?id=49042
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |o.dierick@piezo-forte.be
--- Comment #6 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
(In reply to sohatok from comment #0)
If required, then the link for downloading the libraries used in my prefix: https: // drive. google.com/open?id=************************************
Game archive for the ability to reproduce the error: https://drive.google.com/open?id=**************************** Unpacked game takes about 12.2 GB.
Sharing of proprietary software is prohibited.
Please remove those ASAP.
Regards.
https://bugs.winehq.org/show_bug.cgi?id=49042
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- I removed the initial comment. Please don't post Google Drive links to software that you are not allowed to distribute.
https://bugs.winehq.org/show_bug.cgi?id=49042
--- Comment #8 from sohatok sohatok@yandex.ru --- Hello,
Thanks for the advice, I did not think that this can be perceived as a distribution. Deleted all links (as well as the files themselves). They were not provided for distribution, but for the ability to reproduce the error in the environment where it occurred.
Good luck
https://bugs.winehq.org/show_bug.cgi?id=49042
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEEDINFO Ever confirmed|0 |1
--- Comment #9 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- (In reply to Zebediah Figura from comment #1)
Is this "ddraw.dll" shipped by the application, or installed from a third-party source?
Hello,
I installed Steam and Gothic 2 in a clean 32-bit wineprefix with wine 5.7.
There is no issue that I could notice. Well, maybe those that are documented in the appdb (no music and non-us keyboard layout), but I'm not familiar with the game so I didn't notice until I read about them.
The application doesn't ship ddraw.dll.
Where did you get the ddraw.dll? Is it part of a mod?
Regards.
https://bugs.winehq.org/show_bug.cgi?id=49042
--- Comment #10 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- (In reply to Olivier F. R. Dierick from comment #9)
Where did you get the ddraw.dll? Is it part of a mod?
This question is directed to the OP.
https://bugs.winehq.org/show_bug.cgi?id=49042
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
--- Comment #11 from Béla Gyebrószki gyebro69@gmail.com --- I can reproduce the problem in Wine-Staging 5.6. and 5.7:
0009:err:module:LdrInitializeThunk "DDRAW.dll" failed to initialize, aborting 0009:err:module:LdrInitializeThunk Initializing dlls for L"C:\GOG Games\Gothic 2 Gold\system\Gothic2.exe" failed, status c0000005
It works in current Staging-git though (wine-5.7-170-gd1f858e03da).
The "ddraw.dll" in question is indeed part of a fan-made mod which makes use of D3D11 in this old game: https://forum.worldofplayers.de/forum/threads/1502591-D3D11-Renderer-f%C3%BC... It needs to be set to "native,builtin" otherwise the mod is not enabled and the game starts with the original DX8 renderer.
The problem is (was) also present with wined3d, it's not a DXVK-specific issue.
https://bugs.winehq.org/show_bug.cgi?id=49042
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|1 |0 Status|NEEDINFO |UNCONFIRMED
--- Comment #12 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
Thanks for the hint.
I followed the instructions for the mod(s) and installed: - Gothic 2 fix 2.6.0.0 rev2; - Gothic 2 PlayerKit 2.8; - Gothic 2 night of the raven systempack 1.8; - Gothic d3d11 X17.1. All installers went smooth. Then set ddraw to native,builtin in winecfg.
On first launch, the gd3d11 mod wants to install X17.4. I let it do and when it was done the game failed with an error dialog about missing GD3D11 folder.
After reading [1], the error was fixed by making a symbolic link. [1] https://steamcommunity.com/app/39510/discussions/0/2132869574269911431/
After that, the error was gone, but the game fails to start anyway: When launched, a few dbghelp errors are printed and then it get stuck forever consuming 100% of one core until I kill Gothic2.exe.
However, the Log.txt file in Gothic II/system says that the ddraw proxy was loaded.
This test was done with Wine 5.7 (release tag) + commit c3fac6e36caab168974dd04a60ae1bbb1a0fd919 (nitpicked from GIT to workaround bug 49011).
So, I guess the DLL loading crash is in fact bug 49011 which is fixed in GIT since a few days.
Please retest with current GIT.
Regards.
https://bugs.winehq.org/show_bug.cgi?id=49042
--- Comment #13 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Olivier F. R. Dierick from comment #12)
After that, the error was gone, but the game fails to start anyway: When launched, a few dbghelp errors are printed and then it get stuck forever consuming 100% of one core until I kill Gothic2.exe.
Hello Olivier,
I followed the steps you described to install the mod, but with the GOG.com version. I also had to install native d3dx11_43.dll with winetricks to launch the mod successfully.
I can confirm that the mod is working fine in Wine-Staging git version.
Regards.
https://bugs.winehq.org/show_bug.cgi?id=49042
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED Keywords| |regression
--- Comment #14 from Zebediah Figura z.figura12@gmail.com --- (In reply to Béla Gyebrószki from comment #13)
I can confirm that the mod is working fine in Wine-Staging git version.
Marking fixed, then.
https://bugs.winehq.org/show_bug.cgi?id=49042
--- Comment #15 from sohatok sohatok@yandex.ru --- Hello everybody!
Thank you very much for your attention to this problem. Mod "Return 2.0" breathed new life into my favorite game.
There is an easier way to install a fan mod: here on this page: https://rpgrussia.com/threads/ssylki-na-sborku-instrukcija-po-ustanovke-0066... There is a link to Modification "Return 2. 0 "build (0066) R2: Torrent File: View Attachment Gothic-II-Returning.torrent
this image has an installer in which all patches are assembled together and all the required programs can be launched from the installation wizard (including render X17.5).
This mod is distributed freely.
I currently have wine staging 5.8 installed. I really managed to run the current render (X17.5), but only under the 32-bit prefix. When using the 64-bit prefix ddraw.dll refuses to start.
The render is quite working: G2D3D11_V21.zip http://worldofplayers.ru/threads/37471/page-4#post-781722 But it is very old (something like X17.1)
Regards.
https://bugs.winehq.org/show_bug.cgi?id=49042
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #16 from Zebediah Figura z.figura12@gmail.com --- Closing bugs fixed in wine-staging 5.8.