Wine cannot load dlls that already exist
-
- Level 2
- Posts: 12
- Joined: Wed Mar 27, 2019 12:09 am
Wine cannot load dlls that already exist
Hello, I am trying to play Call of Duty in my PC with wine 4.1 staging (which according to AppDB, is more than enough to play the game). I get an error stating that the dll files mss32.dll and binkw32.dll failed to load, even though the dll files are present right there in the app directory. I also tried copying the dll files to system32 directory , but to no good news. As you can see in the screenshot, I have both the dll files but it says both failed to load.
Re: Wine cannot load dlls that already exist
@Vigneshd332Vigneshd332 wrote:Hello, I am trying to play Call of Duty in my PC with wine 4.1 staging (which according to AppDB, is more than enough to play the game). I get an error stating that the dll files mss32.dll and binkw32.dll failed to load, even though the dll files are present right there in the app directory. I also tried copying the dll files to system32 directory , but to no good news. As you can see in the screenshot, I have both the dll files but it says both failed to load.
Please don't post screenshots of terminal logs. This is not ever helpful.
See: WineHQ FAQ: 10.1.1 How can I get a debugging log (a.k.a. terminal output)?
You can test the application with:
Code: Select all
export WINEDEBUG=+loaddll
wine iw3sp.exe &> ~/wine-staging-4.1_cod_log.txt
Code: Select all
...
Bob
-
- Level 2
- Posts: 12
- Joined: Wed Mar 27, 2019 12:09 am
Re: Wine cannot load dlls that already exist
Log report:
...
...
...
Code: Select all
trace:loaddll:load_builtin_dll Loaded L"KERNEL32.dll" at 0x7b810000: builtin
trace:loaddll:load_builtin_dll Loaded L"KERNEL32.dll" at 0x7b820000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\wineboot.exe" at 0x7fc0f2b40000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\advapi32.dll" at 0x7fc0f28c0000: builtin
trace:loaddll:load_builtin_dll Loaded L"KERNEL32.dll" at 0x7b820000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\winemenubuilder.exe" at 0x7fcfe3a10000: builtin
trace:loaddll:load_builtin_dll Loaded L"KERNEL32.dll" at 0x7b820000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\advapi32.dll" at 0x7fcfe3130000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\services.exe" at 0x7f1b29c50000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\advapi32.dll" at 0x7f1b29740000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\rpcrt4.dll" at 0x7f1b299c0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\userenv.dll" at 0x7f1b29520000: builtin
trace:loaddll:load_builtin_dll Loaded L"KERNEL32.dll" at 0x7b820000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\gdi32.dll" at 0x7fcfe2a10000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\version.dll" at 0x7fcfe27f0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\user32.dll" at 0x7fcfe2d80000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\rpcrt4.dll" at 0x7fcfe2560000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\ole32.dll" at 0x7fcfe33c0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\oleaut32.dll" at 0x7fcfe21f0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\winedevice.exe" at 0x7f0b2f2b0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\advapi32.dll" at 0x7f0b2f030000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\ntoskrnl.exe" at 0x7f0b2ede0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\rpcrt4.dll" at 0x7f0b2eb50000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\mountmgr.sys" at 0x7f0b2e930000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\gdi32.dll" at 0x7f0b2d1a0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\version.dll" at 0x7f0b2cf80000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\user32.dll" at 0x7f0b2d510000: builtin
trace:loaddll:load_builtin_dll Loaded L"KERNEL32.dll" at 0x7b820000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\shlwapi.dll" at 0x7fcfe1f50000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\windowscodecs.dll" at 0x7fcfe3740000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\plugplay.exe" at 0x7f8a70c70000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\advapi32.dll" at 0x7f8a70a00000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\rpcrt4.dll" at 0x7f8a70770000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\gdi32.dll" at 0x7fc0f1ac0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\version.dll" at 0x7fc0f1890000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\user32.dll" at 0x7fc0f1e30000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\shlwapi.dll" at 0x7fc0f21d0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\comctl32.dll" at 0x7fc0f1580000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\shell32.dll" at 0x7fc0f2460000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\comctl32.dll" at 0x7fcfe17d0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\shell32.dll" at 0x7fcfe1af0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\winex11.drv" at 0x7f0b2c0e0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\winex11.drv" at 0x7fc0f06f0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\winex11.drv" at 0x7fcfe0940000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\uxtheme.dll" at 0x7fc0ee8d0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\uxtheme.dll" at 0x7fcfdeb20000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\rpcrt4.dll" at 0x7fc0ee2b0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\ole32.dll" at 0x7fc0ee560000: builtin
trace:loaddll:load_native_dll Loaded L"Z:\\home\\vk\\.PlayOnLinux\\wineprefix\\cod4\\drive_c\\Program Files\\Activision\\Call of Duty 4 - Modern Warfare\\iw3sp.exe" at 0x400000: native
trace:loaddll:load_builtin_dll Loaded L"KERNEL32.dll" at 0x7b820000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\explorer.exe" at 0x7f91815a0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\advapi32.dll" at 0x7f9181090000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\rpcrt4.dll" at 0x7f9181310000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\gdi32.dll" at 0x7f9180980000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\version.dll" at 0x7f9180750000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\user32.dll" at 0x7f9180cf0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\winex11.drv" at 0x7f917f8c0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\imm32.dll" at 0x7f917dab0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\shlwapi.dll" at 0x7f917d3a0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\comctl32.dll" at 0x7f917d080000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\shell32.dll" at 0x7f917d630000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\uxtheme.dll" at 0x7f917ce40000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\ole32.dll" at 0x7f917cae0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\advapi32.dll" at 0x7e9c0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\gdi32.dll" at 0x7ea30000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\version.dll" at 0x7eff0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\user32.dll" at 0x7eb50000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\rpcrt4.dll" at 0x7e820000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\ole32.dll" at 0x7e8a0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\msacm32.dll" at 0x7e7f0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\winmm.dll" at 0x7ec90000: builtin
err:module:import_dll Loading library mss32.dll (which is needed by L"Z:\\home\\vk\\.PlayOnLinux\\wineprefix\\cod4\\drive_c\\Program Files\\Activision\\Call of Duty 4 - Modern Warfare\\iw3sp.exe") failed (error c0000020).
err:module:import_dll Loading library binkw32.dll (which is needed by L"Z:\\home\\vk\\.PlayOnLinux\\wineprefix\\cod4\\drive_c\\Program Files\\Activision\\Call of Duty 4 - Modern Warfare\\iw3sp.exe") failed (error c0000020).
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\opengl32.dll" at 0x7e570000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\wined3d.dll" at 0x7e680000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\d3d9.dll" at 0x7e7b0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\d3dx9_34.dll" at 0x7e540000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\d3dcompiler_43.dll" at 0x7e450000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\d3dxof.dll" at 0x7e420000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\d3dx9_36.dll" at 0x7e4c0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\winex11.drv" at 0x7e1a0000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\shlwapi.dll" at 0x7df20000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\comctl32.dll" at 0x7db10000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\shell32.dll" at 0x7dc10000: builtin
trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\ddraw.dll" at 0x7deb0000: builtin
err:module:LdrInitializeThunk Main exe initialization for L"Z:\\home\\vk\\.PlayOnLinux\\wineprefix\\cod4\\drive_c\\Program Files\\Activision\\Call of Duty 4 - Modern Warfare\\iw3sp.exe" failed, status c0000135
Re: Wine cannot load dlls that already exist
@Vigneshd332
It's not a good idea to run installed programs, from outwith of the WINEPREFIX in which they were originally installed.
This will work for games installed in a Steam library, as long as the Steam client itself is installed to the WINEPREFIX.
But will not for regular games, which have been installed to a specific WINEPREFIX.
So you'd want to set your WINEPREFIX env variable first:
Also please note that PlayOnLinux is not supported on this site.
See: 8.7 I used a third party application (PlayOnLinux, WineBottler, etc.) to install or manage applications in Wine and need help
End users that use these third party wrappers tend not to understand how to use Wine correctly, leading to elementary errors (like yours).
Bob
It's not a good idea to run installed programs, from outwith of the WINEPREFIX in which they were originally installed.
This will work for games installed in a Steam library, as long as the Steam client itself is installed to the WINEPREFIX.
But will not for regular games, which have been installed to a specific WINEPREFIX.
So you'd want to set your WINEPREFIX env variable first:
Code: Select all
export WINEPREFIX="/home/vk/.PlayOnLinux/wineprefix/cod4/"
wine iw3sp.exe
See: 8.7 I used a third party application (PlayOnLinux, WineBottler, etc.) to install or manage applications in Wine and need help
End users that use these third party wrappers tend not to understand how to use Wine correctly, leading to elementary errors (like yours).
Bob
- DarkShadow44
- Level 8
- Posts: 1207
- Joined: Tue Nov 22, 2016 5:39 pm
Re: Wine cannot load dlls that already exist
The first post seemed like vanilla wine though.
Re: Wine cannot load dlls that already exist
So what... If the game has been installed via PlayOnLinux, then my point still stands.DarkShadow44 wrote:The first post seemed like vanilla wine though.
-
- Level 2
- Posts: 12
- Joined: Wed Mar 27, 2019 12:09 am
Re: Wine cannot load dlls that already exist
The first post I made was done with vannila wine. I had the same problem with ddlls. I tried PlayonLinux as Plan B. Well the last post made by Bob solved my problem. Thanks everyone.