DLL load failed: DLL initialization failed.

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
realbug
Level 2
Level 2
Posts: 15
Joined: Sun May 22, 2022 3:27 am

DLL load failed: DLL initialization failed.

Post by realbug »

https://github.com/KurtBestor/Hitomi-Do ... al-Preview

The following error occurs when running the program. So, I asked the program developer and found that if you run it with the "--no-browser" option, some of the functions have problems, but it runs normally run. However, the internal browsing function
There is a disadvantage that I can't use it. It runs normally in Windows, but it is estimated that the setting of the wine should be touched more or that it is a bug. I've already reported it as a bug, but I'm writing down if there's a way to solve this with the settings.

Traceback (most recent call last):
File "hitomi_downloader_GUI.py", line 158, in <module>
File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
File "Qt.py", line 11, in <module>
File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
File "PyQt\QtWebEngineCore.py", line 1, in <module>
ImportError: DLL load failed: DLL initialization failed.
Attachments
화면 캡처 2022-05-22 173751.png
화면 캡처 2022-05-22 173751.png (11.95 KiB) Viewed 3976 times
realbug
Level 2
Level 2
Posts: 15
Joined: Sun May 22, 2022 3:27 am

Re: DLL load failed: DLL initialization failed.

Post by realbug »

The execution environment is version "winehq-stable 7.0" and "winehq-staging 7.9" in Ubuntu 22.04.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: DLL load failed: DLL initialization failed.

Post by jkfloris »

(To keep everything together for other visitors as well.)
Wine Bug 53022
Hitomi Github issue 4781

Louis Lenders' suggested patch seems to work here as well (Wine 7.9 + patch).
However, the program does try to load a driver "WinDivert64.sys", which fails:

Code: Select all

0690:err:module:import_dll Library fwpkclnt.sys (which is needed by L"C:\\users\\floris\\Temp\\WinDivert64.sys") not found
0690:err:module:import_dll Library WDFLDR.SYS (which is needed by L"C:\\users\\floris\\Temp\\WinDivert64.sys") not found
0690:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\WinDivert1.4": c0000142
I don't know if this will affect the program.
qwertymnb
Level 4
Level 4
Posts: 236
Joined: Sun Jan 17, 2016 4:36 pm

Re: DLL load failed: DLL initialization failed.

Post by qwertymnb »

This should be fixed now in upcoming wine-7.10 : https://www.winehq.org/pipermail/wine-c ... 65786.html

So patience for a week or two.....
User avatar
alexis92
Level 1
Level 1
Posts: 7
Joined: Thu Apr 28, 2022 7:53 am

Re: DLL load failed: DLL initialization failed.

Post by alexis92 »

May I ask what else is new with the upcoming version? The link you sent is rather hard to decipher for a newbie like me I'm afraid haha
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: DLL load failed: DLL initialization failed.

Post by jkfloris »

Here you can find out what's in the latest Wine version:
https://source.winehq.org/git/wine.git/shortlog
Often the descriptions are very technical, but you get some idea of what the developers are working on.
Locked