"GDI42.dll" failed to initialize

Questions about Wine on Linux
Locked
xingjiapeng
Newbie
Newbie
Posts: 4
Joined: Sat Jul 04, 2020 8:36 am

"GDI42.dll" failed to initialize

Post by xingjiapeng »

Hi!
I met a problem while I was using wine.
It report: "GDI42.dll" failed to initialize.
Like that:

Code: Select all

001b:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000142
0009:err:module:LdrInitializeThunk "GDI42.dll" failed to initialize, aborting
0009:err:module:LdrInitializeThunk Initializing dlls for L"C:\\Program Files\\Travel around Time\\PlantsVsZombies.exe" failed, status c0000142
  • System: sparkylinux (debian testing)
  • Wine version: wine-5.0 (Debian 5.0-4)
Thanks.
fargodwe

Re: "GDI42.dll" failed to initialize

Post by fargodwe »

I'm no expert on any of this, but I do have a wine prefix I did nothing special to, so I searched fo GDI42.dll and it is not in the prefix. GDI32.dll is though. Makes me wonder if you need to specifially load GDI42.dll. I didn't see it listed in winetrick but perhaps it's part of some package there or something. What were you trying to run? Also note that wine will kick out err: messages and other things as it is running - these normally aren't problems but in your case it seems to be stopping your program from running.

Please post back the console starting with your command to start the program and through the end of wine output.
fargodwe

Re: "GDI42.dll" failed to initialize

Post by fargodwe »

I still haven't found GDI42.dll, but I have a visual basic program whose graphics weren't working and another user here found the problem. It also deals with a GDI dll. While not GDI42.dll it won't hurt to try it with your program to see if it helps. Just use winetricks and install gdiplus. Let us know if it makes any difference of not.
xingjiapeng
Newbie
Newbie
Posts: 4
Joined: Sat Jul 04, 2020 8:36 am

Re: "GDI42.dll" failed to initialize

Post by xingjiapeng »

Hi!
Sorry for my late response.
Actually this is my whole output:

Code: Select all

xingjiapeng@xingjiapeng-pc:~/.wine/drive_c/Program Files/Travel around Time$ wine PlantsVsZombies.exe 
001b:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000142
0009:err:module:LdrInitializeThunk "GDI42.dll" failed to initialize, aborting
0009:err:module:LdrInitializeThunk Initializing dlls for L"C:\\Program Files\\Travel around Time\\PlantsVsZombies.exe" failed, status c0000142
The program I wanted to ran is a customize pvz which can be downloaded from here: https://share.weiyun.com/SThiDLQG

I tried to use winetricks to download gdiplus, but it doesn't help.

Thanks.
fargodwe

Re: "GDI42.dll" failed to initialize

Post by fargodwe »

I tried going to the site you linked to thinking I could set up a test prefix to test it on my end. That site comes up in Chinese with a different URL so I couldn't get the program. I'm more than a little leery of downloading some of those things as I don't understand wine except to use it so I don't know if there is a way for a Windows virus to do anything to my linux installation.

If you could give me a link in English I might be able to help. Unfortunately I've just been too darn stupid to learn another language so I'm not bilingual, so I don't understand a thing on that webpage.

If it comes with an installer, try seeing if one of archive managers can tell you what is included. I know sometimes I have luck with that. In the mean time I'll see if I can find that dll anywhere.
fargodwe

Re: "GDI42.dll" failed to initialize

Post by fargodwe »

Ok, I found a link to the dll. It appears to be a privately created dll so it wouldn't just be included in wine. If you can follow this link to get the dll you can place it in your program's wine prefix.

You can also register a dll to a wine prefix but I would need to look to see how to do that.

Now a couple questions:

1. Did you download a 32-bit or 64-bit version of the program?
2. Did you create a wine prefix that matches that version?

It's hard to do much without the program but I can try. The first thing I would do is follow this link and see if you can see where to download the dll. Once you've downloaded it, if you need help putting it in your wine prefix let me know and I'll see if I can help. I don't know much about this stuff but I can try to help. Here's the link:

Code: Select all

https://www.zhaodll.com/dll/softdown.asp?softid=75719
xingjiapeng
Newbie
Newbie
Posts: 4
Joined: Sat Jul 04, 2020 8:36 am

Re: "GDI42.dll" failed to initialize

Post by xingjiapeng »

Hi!
Sorry, I tried to replace the GDI42.dll, and it worked...
So that's probably because of I use a wrong GDI42.dll, or probably there are something wrong when I download it.

Sorry to make trouble to you.
Thanks.
fargodwe

Re: "GDI42.dll" failed to initialize

Post by fargodwe »

Absolutely no trouble!!! I'm glad you got it sorted out and everything is ok. Have a great day!
Locked