Vulkan and OpenGL won't load? "Win32 function failed: HRESULT:0x887a0004"

Questions about Wine on Linux
Locked
User avatar
mr.matt.eastwood
Level 2
Level 2
Posts: 15
Joined: Fri Sep 03, 2021 8:38 am

Vulkan and OpenGL won't load? "Win32 function failed: HRESULT:0x887a0004"

Post by mr.matt.eastwood »

Hey Wine community!

I found out today that two games that used to run flawlessly using Wine have stopped working.

When trying to run Mini Doom 2 (https://calaverastudio.itch.io/minidoom2) or Rayman Redemption (https://gamejolt.com/games/raymanredemption/340532) on Linux Mint 21 using Wine Staging 7.19, I get this error: https://paste.pics/JCECW
Win32 function failed: HRESULT: 0x887a0004
Call: at line 266 in file \Graphics_DisplayM.cpp
Terminal output for Mini Doom 2:

Code: Select all

0150:fixme:msg:pack_message msg 80 (WM_SETICON) not supported yet
Attempting to set gamepadcount to 12
0150:fixme:dwmapi:DwmEnableMMCSS (1) stub
0150:err:vulkan:wine_vk_init Failed to load vulkan library
0150:err:wgl:init_opengl Failed to load libGL: libGL.so.1: cannot open shared object file: No such file or directory
0150:err:wgl:init_opengl OpenGL support is disabled.
0150:err:d3d:wined3d_caps_gl_ctx_create Failed to find a suitable pixel format.
0150:err:d3d:wined3d_adapter_gl_init Failed to get a GL context for adapter 00F27238.
0150:err:d3d:wined3d_caps_gl_ctx_create Failed to find a suitable pixel format.
0150:err:d3d:wined3d_adapter_gl_init Failed to get a GL context for adapter 00F27238.
0150:fixme:imm:ImeSetActiveContext (000100BE, 1): stub
0150:fixme:imm:ImmReleaseContext (000100FA, 000100BE): stub
That's up until the point where the above-screenshotted error message appears. It looks pretty much the same for Rayman Redemption as well.

This is happening on my RTX 2070 laptop, which has an Optimus video card set to Nvidia (Performance Mode). Latest Nvidia driver 520.56.06, although I also tried with 510 and 515 today - same result. Full specs of my PC: https://termbin.com/qtjg

These games worked when I last played them a few weeks ago. They also work fine on my desktop PC, which also has LM21 and Wine Staging 7.19. I reinstalled Wine twice, completely wiping everything related to it (or at least to the best I could muster) in-between, and it's always the same result. I have no idea what happened and any help would be truly appreciated.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: "Win32 function failed: HRESULT:0x887a0004"

Post by jkfloris »

0150:err:wgl:init_opengl Failed to load libGL: libGL.so.1: cannot open shared object file: No such file or directory
0150:err:wgl:init_opengl OpenGL support is disabled.
It looks like you did not properly install the 32-bit part of your graphics card's drivers.
libGL.so.1 is in the libgl1:i386 package.
User avatar
mr.matt.eastwood
Level 2
Level 2
Posts: 15
Joined: Fri Sep 03, 2021 8:38 am

Re: Vulkan and OpenGL won't load? "Win32 function failed: HRESULT:0x887a0004"

Post by mr.matt.eastwood »

Thanks! It turns out Steam knew the same thing. I ran it and it prompted me to install a whole litany of missing packages/libraries. Afterwards, everything started working.
User avatar
mr.matt.eastwood
Level 2
Level 2
Posts: 15
Joined: Fri Sep 03, 2021 8:38 am

Re: Vulkan and OpenGL won't load? "Win32 function failed: HRESULT:0x887a0004"

Post by mr.matt.eastwood »

Looks like there is no option here to mark this thread as solved?
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Vulkan and OpenGL won't load? "Win32 function failed: HRESULT:0x887a0004"

Post by jkfloris »

Looks like there is no option here to mark this thread as solved?
No, unfortunately there isn't an option to mark a thread as solved.
User avatar
mr.matt.eastwood
Level 2
Level 2
Posts: 15
Joined: Fri Sep 03, 2021 8:38 am

Re: Vulkan and OpenGL won't load? "Win32 function failed: HRESULT:0x887a0004"

Post by mr.matt.eastwood »

All good. Thanks for your response!
aug
Level 3
Level 3
Posts: 75
Joined: Sat Oct 30, 2021 4:21 am

Re: Vulkan and OpenGL won't load? "Win32 function failed: HRESULT:0x887a0004"

Post by aug »

Try install libglvnd both 32 and 64 bits and reinstall the video driver.
If not happen an fix try Dxvk.
Locked