Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Game] Wildstar - "Failed to Initialize Direct3D" #274

Open
PadreAdamo opened this issue Mar 10, 2017 · 16 comments
Open

[Game] Wildstar - "Failed to Initialize Direct3D" #274

PadreAdamo opened this issue Mar 10, 2017 · 16 comments

Comments

@PadreAdamo
Copy link

Greetings! I am having an issue on game launch. A dialog promp displays "Failed to Initialize Direct3D." I ran the game with NINE_DEBUG=all

My other WINE NINE games run perfectly fine without issue. The items in the log that standout to me are:

fixme:ddraw:ddraw7_Initialize Ignoring guid {aeb2cdd4-6e41-43ea-941c-8361cc760781}.
fixme:module:load_dll Loader redirect from L"C:\windows\system32\d3d9.dll" to L"d3d9-nine.dll"
err:d3d9nine:present_has_d3dadapter Failed to load /usr/lib/d3d/d3dadapter9.so.1: /usr/lib/d3d/d3dadapter9.so.1: cannot open shared object file: No such file or directory
err:d3d9nine:present_has_d3dadapter
Native Direct3D 9 will be unavailable.
For more information visit https://wiki.ixit.cz/d3d9
err:d3d9nine:d3dadapter9_new Your display driver doesn't support native D3D9 adapters.
fixme:system:SetProcessDPIAware stub!
fixme:module:load_dll Loader redirect from L"C:\windows\system32\d3d9.dll" to L"d3d9-nine.dll"
fixme:d3d9nine:D3DPERF_SetOptions (0x1) : stub
err:d3d9nine:present_has_d3dadapter Failed to load /usr/lib/d3d/d3dadapter9.so.1: /usr/lib/d3d/d3dadapter9.so.1: cannot open shared object file: No such file or directory
err:d3d9nine:present_has_d3dadapter
Native Direct3D 9 will be unavailable.
For more information visit https://wiki.ixit.cz/d3d9
err:d3d9nine:d3dadapter9_new Your display driver doesn't support native D3D9 adapters.
fixme:module:load_dll Loader redirect from L"C:\windows\system32\d3d9.dll" to L"d3d9-nine.dll"
fixme:d3d9nine:D3DPERF_SetOptions (0x1) : stub
err:d3d9nine:present_has_d3dadapter Failed to load /usr/lib/d3d/d3dadapter9.so.1: /usr/lib/d3d/d3dadapter9.so.1: cannot open shared object file: No such file or directory
err:d3d9nine:present_has_d3dadapter
Native Direct3D 9 will be unavailable.
For more information visit https://wiki.ixit.cz/d3d9
err:d3d9nine:d3dadapter9_new Your display driver doesn't support native D3D9 adapters.
fixme:win:UnregisterDeviceNotification (handle=0xcafeaffe), STUB!
fixme:win:UnregisterDeviceNotification (handle=0xcafeaffe), STUB!
fixme:iphlpapi:CancelIPChangeNotify (overlapped 0x4ba2e88): stub


In addition, a similar bug was posted some time ago here: #142

@Altosk
Copy link

Altosk commented Mar 10, 2017 via email

@PadreAdamo
Copy link
Author

PadreAdamo commented Mar 10, 2017

OpenSUSE Tumbleweed
Radeon 7970

@Altosk
Copy link

Altosk commented Mar 10, 2017 via email

@Altosk
Copy link

Altosk commented Mar 10, 2017

err:d3d9nine:present_has_d3dadapter Failed to load /usr/lib/d3d/d3dadapter9.so.1: /usr/lib/d3d/d3dadapter9.so.1: cannot open shared object file: No such file or directory

@PadreAdamo
Copy link
Author

PadreAdamo commented Mar 10, 2017

Strange. I don't have this problem with other titles. This is the first time I have tried to get this one to run. -edit-
I'm running Guild Wars 2 on Wine Nine right now.

@axeldavy
Copy link

Some games are 32 bits, and others 64 bits. Perhaps you have 32 bits nine, but not 64 bits.

@PadreAdamo
Copy link
Author

PadreAdamo commented Mar 10, 2017

I am running the 64-bit client of Guild Wars 2. I wonder if I don't have 32-bit. Interesting. I will check this tonight and report back. Thank you.

@PadreAdamo
Copy link
Author

PadreAdamo commented Mar 10, 2017

This is the 64-bit client. I also use the Guild Wars 2 64-bit client so that rules out the client bit being an issue?

fixme:ddraw:ddraw7_Initialize Ignoring guid {aeb2cdd4-6e41-43ea-941c-8361cc760781}.
fixme:module:load_dll Loader redirect from L"C:\windows\system32\d3d9.dll" to L"d3d9-nine.dll"
err:d3d9nine:present_has_d3dadapter Failed to load /usr/lib/d3d/d3dadapter9.so.1: /usr/lib/d3d/d3dadapter9.so.1: cannot open shared object file: No such file or directory
err:d3d9nine:present_has_d3dadapter
Native Direct3D 9 will be unavailable.
For more information visit https://wiki.ixit.cz/d3d9

I just navigated to the /usr/lib/d3d/ directory referenced above and I don't have it. This is strange because I don't have any issues with Guild Wars 2 on Wine Nine.

The whereis command:
d3d: /usr/lib64/d3d

Wine and Wine-32, Mesa and Mesa-32 are installed

@axeldavy
Copy link

well, it is looking the wrong dir for 64 bits d3dadapter.
Use symlinks, or compile wine yourself (it will detect the path)

@PadreAdamo
Copy link
Author

PadreAdamo commented Mar 10, 2017 via email

@PadreAdamo
Copy link
Author

PadreAdamo commented Mar 11, 2017 via email

@PadreAdamo
Copy link
Author

I just ran two different programs, Steam and Guild Wars 2 (two different prefixes) Everything runs fine.

Gren message for Native Direct3D 9 is active.

@axeldavy
Copy link

Steam is 32 bits. Guild Wars 2 may be 32 bits as well.
Even if you use wine 64 bits, 32 bits program will use 32 bits d3dadapter.

Thus likely you have 32 bits d3dadapter at the location wine is looking for, but not the 64 bits one.

@PadreAdamo
Copy link
Author

Guild Wars 2 is 64-bit client. It's okay though. Symlink did not fix the issue. I am loading up another distro and will try on that; Ubuntu w/Padoka PPA. I will report my findings back here.

@HolimaX
Copy link

HolimaX commented May 26, 2021

Is this issue fixed then?

@axeldavy
Copy link

It is probably fixed. The library search code has been updated since.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants