Wine versions above 7.0rc2 not launching GUI programs on intel+nvidia setup

Questions about Wine on Linux
Locked
Failurex69420
Level 1
Level 1
Posts: 6
Joined: Tue Mar 29, 2022 2:40 am

Wine versions above 7.0rc2 not launching GUI programs on intel+nvidia setup

Post by Failurex69420 »

I am running wine on an intel and nvidia setup with nvidia 510.60.02 and I am unable to launch any GUI application through wine versions above 7.0rc2. This is the error I get

Code: Select all

019c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
019c:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
I have tried deleting the wine prefix and checked 32 but libraries but it still doesn't work after that. Versions below 7.0rc2 work fine.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Wine versions above 7.0rc2 not launching GUI programs on intel+nvidia setup

Post by jkfloris »

Do you have another graphics card in the computer besides the NVidia card?

Code: Select all

inxi -G
xrandr --listproviders
Failurex69420
Level 1
Level 1
Posts: 6
Joined: Tue Mar 29, 2022 2:40 am

Re: Wine versions above 7.0rc2 not launching GUI programs on intel+nvidia setup

Post by Failurex69420 »

I have intel igpu and nvidia dgpu.

Output of inxi -G

Code: Select all

Graphics:
  Device-1: Intel HD Graphics 620 driver: i915 v: kernel
  Device-2: NVIDIA GM108M [GeForce 940MX] driver: nvidia v: 510.60.02
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting
    unloaded: nouveau,nvidia gpu: i915 resolution: 1366x768~60Hz
  OpenGL: renderer: Mesa Intel HD Graphics 620 (KBL GT2) v: 4.6 Mesa 22.0.0
Output of xrandr --listprovides

Code: Select all

Providers: number : 2
Provider 0: id: 0x45 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 4 associated providers: 0 name:modesetting
Provider 1: id: 0xaf cap: 0x0 crtcs: 0 outputs: 0 associated providers: 0 name:modesetting
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Wine versions above 7.0rc2 not launching GUI programs on intel+nvidia setup

Post by jkfloris »

How do you start a program with Wine?

Does Wine work with PRIME?

Code: Select all

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia wine <program.exe>
Failurex69420
Level 1
Level 1
Posts: 6
Joined: Tue Mar 29, 2022 2:40 am

Re: Wine versions above 7.0rc2 not launching GUI programs on intel+nvidia setup

Post by Failurex69420 »

I have tried running both

Code: Select all

wine notepad.exe
and

Code: Select all

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia wine notepad.exe
but nothing works and I get the same error.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Wine versions above 7.0rc2 not launching GUI programs on intel+nvidia setup

Post by jkfloris »

Can you also post the output of glxinfo -B?

Code: Select all

glxinfo -B
# and
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo -B
Do you have anything in /etc/X11/xorg.conf(.d/)?
Failurex69420
Level 1
Level 1
Posts: 6
Joined: Tue Mar 29, 2022 2:40 am

Re: Wine versions above 7.0rc2 not launching GUI programs on intel+nvidia setup

Post by Failurex69420 »

Code: Select all

glxinfo -B                                                                                                    
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel (0x8086)
    Device: Mesa Intel(R) HD Graphics 620 (KBL GT2) (0x5916)
    Version: 22.0.0
    Accelerated: yes
    Video memory: 3072MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 620 (KBL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.0.0
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.0.0
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.0.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Code: Select all

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo -B                                        
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 2048 MB
    Total available memory: 2048 MB
    Currently available dedicated video memory: 1999 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce 940MX/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 510.60.02
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 510.60.02
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 510.60.02
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
I have 00-keyboard.conf and 90-mhwd.conf in /etc/X11/xorg.conf.d both were not edited by me.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Wine versions above 7.0rc2 not launching GUI programs on intel+nvidia setup

Post by jkfloris »

Both terminal outputs look good.
What does 90-mhwd.conf contain?

Code: Select all

cat /etc/X11/xorg.conf.d/90-mhwd.conf
Failurex69420
Level 1
Level 1
Posts: 6
Joined: Tue Mar 29, 2022 2:40 am

Re: Wine versions above 7.0rc2 not launching GUI programs on intel+nvidia setup

Post by Failurex69420 »

Code: Select all

cat /etc/X11/xorg.conf.d/90-mhwd.conf
##
## Generated by mhwd - Manjaro Hardware Detection
##
 
 

jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Wine versions above 7.0rc2 not launching GUI programs on intel+nvidia setup

Post by jkfloris »

Unfortunately, there is nothing in there that can indicate the cause of the problem either.
Although a different version, your problem is very similar to bug 52500.
If the problem also occurs in Wine 7.5 and you are able to do a regression test, you can post the information there.
Failurex69420
Level 1
Level 1
Posts: 6
Joined: Tue Mar 29, 2022 2:40 am

Re: Wine versions above 7.0rc2 not launching GUI programs on intel+nvidia setup

Post by Failurex69420 »

I think there's some problem with wine versions above 7.0rc2 and nvidia drivers. If I uninstall nvidia drivers and then use intel gpu, then the newer wine versions work.
Also I checked nvidia 470 series drivers, they also do not work with newer versions of wine.
I am currently using 510 series drivers.
Locked