Multiple programs suddenly stopped working: can't load d3d9.dll

Questions about Wine on Linux
Locked
discovery_time
Newbie
Newbie
Posts: 2
Joined: Wed Nov 03, 2021 1:05 pm

Multiple programs suddenly stopped working: can't load d3d9.dll

Post by discovery_time »

I play a number of Japanese-language visual novel games with wine. They all worked flawlessly until today, but today they all stopped loading at all today with the same error about being unable to load d3d9.dll. This is especially strange because I have been loading these at least once a day between reboots, and the last time any wine package updated was at least a week ago.
  • wine --version returns "wine-6.20". This happens with both the "wine" and "wine-staging" packages on an updated Arch Linux.
  • The file $WINEPREFIX/drive_c/windows/system32/d3d9.dll does exist. Because the games are Japanese I normally run them with LC_ALL=ja_JP.UTF-8 and TZ="Asia/Tokyo" as well, but removing these seems to have no effect.
  • To be clear, I am NOT running these games from Steam, but via normal wine in my terminal.
  • At least one other (non-game) GUI program loads fine from the same WINEPREFIX.
Here is an example log for https://appdb.winehq.org/objectManager. ... &iId=14246:
00a4:fixme:ntdll:EtwRegisterTraceGuidsW register trace class {485e7de8-0a80-11d8-ad15-505054503030}
00a4:fixme:ntdll:EtwRegisterTraceGuidsW register trace class {485e7de9-0a80-11d8-ad15-505054503030}
00a4:fixme:ntdll:EtwRegisterTraceGuidsW register trace class {485e7dea-0a80-11d8-ad15-505054503030}
00a4:fixme:ntdll:EtwRegisterTraceGuidsW register trace class {485e7deb-0a80-11d8-ad15-505054503030}
00a4:fixme:ntdll:EtwRegisterTraceGuidsW register trace class {485e7dec-0a80-11d8-ad15-505054503030}
00a4:fixme:ntdll:EtwRegisterTraceGuidsW register trace class {485e7ded-0a80-11d8-ad15-505054503030}
00b0:fixme:service:I_ScRegisterDeviceNotification Notification filters are not yet implemented.
00c0:err:service:device_notify_proc failed to open RPC handle, error 1722
002c:fixme:ver:GetCurrentPackageId (0031FEA4 00000000): stub
0024:err:module:import_dll Library d3d9.dll (which is needed by L"C:\\KeroQ\\\7d20\6674\3089\3057\304d\65e5\300510th\\BGI.exe") not found
0024:err:module:LdrInitializeThunk Importing dlls for L"C:\\KeroQ\\\7d20\6674\3089\3057\304d\65e5\300510th\\BGI.exe" failed, status c0000135
0034:fixme:ver:GetCurrentPackageId (0031FEA4 00000000): stub
I'd be very grateful if anyone could help!
User avatar
JoseskVolpe
Level 4
Level 4
Posts: 124
Joined: Sat Sep 04, 2021 9:35 pm

Re: Multiple programs suddenly stopped working: can't load d3d9.dll

Post by JoseskVolpe »

¿Do they work in a new clean wineprefix?
Your prefix could have been messed up by another installation or by prefix update
discovery_time
Newbie
Newbie
Posts: 2
Joined: Wed Nov 03, 2021 1:05 pm

Re: Multiple programs suddenly stopped working: can't load d3d9.dll

Post by discovery_time »

They don't work with a clean wineprefix. In fact, I copied my wineprefix and winetricks folders over to a second computer and the programs worked on that second computer. The second computer is /also/ running updated arch linux with the same set of packages installed (quite literally the package listing pacman -Q is identical)
User avatar
JoseskVolpe
Level 4
Level 4
Posts: 124
Joined: Sat Sep 04, 2021 9:35 pm

Re: Multiple programs suddenly stopped working: can't load d3d9.dll

Post by JoseskVolpe »

Hm that's very weird... I'm not sure what's causing the issue here
Locked