Ubuntu 22.04.01 LTS with WineHQ wine-8.0-rc4 fails to start with errors

Questions about Wine on Linux
Locked
ccurtis0
Level 1
Level 1
Posts: 5
Joined: Sat Jan 14, 2023 10:27 am

Ubuntu 22.04.01 LTS with WineHQ wine-8.0-rc4 fails to start with errors

Post by ccurtis0 »

Hi, I've searched and found no answers to this problem. I am running Ubuntu 22.04.01 LTS 64-bit and installed wine-7.0.1 (wine-stable) following the instructions from https://wiki.winehq.org/Ubuntu

This was a fresh install of wine. When running wine <application> a number of debug messages were printed, my system appeared to freeze for a few moments, and then an error resembling the following was printed:

Code: Select all

err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
I tried a few different things, including running with WINEPREFIX=${HOME}/wine-test, but the problem persisted. I then installed wine-devel and tried again with the same general behavior and results: wine simply fails to start. I also removed ~/.wine and the problem persists. Here is the output from then attempting to run a fresh `winecfg`:

Code: Select all

user@ubuntu:~$ winecfg 
wine: created the configuration directory '/home/user/.wine'
002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0048:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0050:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
002c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
002c:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
0040:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0040:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
0088:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0088:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
0090:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0090:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
00d4:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
00d4:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
00fc:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00fc:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00fc:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
wine: configuration in L"/home/user/.wine" has been updated.
00fc:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00fc:fixme:wineusb:query_id Unhandled ID query type 0x5.
00fc:fixme:wineusb:query_id Unhandled ID query type 0x5.
00fc:fixme:wineusb:query_id Unhandled ID query type 0x5.
013c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
013c:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."

Code: Select all

user@ubuntu:~$ wine --version
wine-8.0-rc4

Code: Select all

user@ubuntu:~$ inxi  -SGxxx
System:
  Host: ubuntu Kernel: 5.13.0-52-generic x86_64 bits: 64 compiler: gcc
    v: 9.4.0 Desktop: GNOME 42.5 tk: GTK 3.24.33 wm: gnome-shell dm: GDM3 42.0
    Distro: Ubuntu 22.04.1 LTS (Jammy Jellyfish)
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Dell
    driver: i915 v: kernel ports: active: eDP-1
    empty: DP-1, DP-2, DP-3, HDMI-A-1, HDMI-A-2 bus-ID: 00:02.0
    chip-ID: 8086:3e9b class-ID: 0300
  Device-2: NVIDIA TU117GLM [Quadro T1000 Mobile] vendor: Dell
    driver: nvidia v: 525.78.01 pcie: speed: 5 GT/s lanes: 16 ports:
    active: none off: HDMI-A-3 empty: DP-4,DP-5,DP-6 bus-ID: 01:00.0
    chip-ID: 10de:1fb9 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.3 compositor: gnome-shell driver: X:
    loaded: modesetting,nvidia unloaded: fbdev,nouveau,vesa gpu: i915
    display-ID: :1 screens: 1
  Screen-1: 0 s-res: 5760x2160 s-dpi: 96 s-size: 1524x572mm (60.0x22.5")
    s-diag: 1628mm (64.1")
  Monitor-1: HDMI-0 pos: top-right res: 3840x2160 hz: 30 dpi: 122
    size: 800x450mm (31.5x17.7") diag: 918mm (36.1")
  Monitor-2: eDP-1-1 pos: primary,bottom-l res: 1920x1080 hz: 60 dpi: 142
    size: 344x193mm (13.5x7.6") diag: 394mm (15.5")
  OpenGL: renderer: Quadro T1000/PCIe/SSE2 v: 4.6.0 NVIDIA 525.78.01
    direct render: Yes

Code: Select all

user@ubuntu:~$ glxinfo -B
name of display: :1
display: :1  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 4096 MB
    Total available memory: 4096 MB
    Currently available dedicated video memory: 1967 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: Quadro T1000/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 525.78.01
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 525.78.01
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 525.78.01
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Code: Select all

user@ubuntu:~$ xrandr 
Screen 0: minimum 8 x 8, current 5760 x 2160, maximum 32767 x 32767
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 3840x2160+1920+0 (normal left inverted right x axis y axis) 800mm x 450mm
   3840x2160     30.00*+  59.94    29.97    23.98  
   4096x2160     59.94    29.97    24.00    23.98  
   1920x1080     60.00    59.94    29.97    23.98  
   1680x1050     59.95  
   1440x900      59.89  
   1360x768      60.02  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x800      59.81  
   1280x720      60.00    59.94    29.97    23.98  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
eDP-1-1 connected primary 1920x1080+0+712 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080     60.01*+  48.01    60.01  
   1680x1050     60.01  
   1400x1050     60.01  
   1600x900      60.01  
   1280x1024     60.01  
   1400x900      60.01  
   1280x960      60.01  
   1440x810      60.01  
   1368x768      60.01  
   1280x800      60.01  
   1280x720      60.01  
   1024x768      60.01  
   960x720       60.01  
   928x696       60.01  
   896x672       60.01  
   1024x576      60.01  
   960x600       60.01  
   960x540       60.01  
   800x600       60.01  
   840x525       60.01  
   864x486       60.01  
   700x525       60.01  
   800x450       60.01  
   640x512       60.01  
   700x450       60.01  
   640x480       60.01  
   720x405       60.01  
   684x384       60.01  
   640x360       60.01  
   512x384       60.01  
   512x288       60.01  
   480x270       60.01  
   400x300       60.01  
   432x243       60.01  
   320x240       60.00  
   360x202       60.00  
   320x180       60.01  
DP-1-1 disconnected (normal left inverted right x axis y axis)
HDMI-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)
HDMI-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-3 disconnected (normal left inverted right x axis y axis)
Is there a known workaround for this problem? My searching returned nothing helpful.

Thanks.
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Ubuntu 22.04.01 LTS with WineHQ wine-8.0-rc4 fails to start with errors

Post by jkfloris »

NVIDIA 525.78.01
How did you install the Nvidia driver? Ubuntu Jammy has version 525.60.11
In any case, make sure you also have the 32-bit part installed.
ccurtis0
Level 1
Level 1
Posts: 5
Joined: Sat Jan 14, 2023 10:27 am

Re: Ubuntu 22.04.01 LTS with WineHQ wine-8.0-rc4 fails to start with errors

Post by ccurtis0 »

jkfloris wrote: Sun Jan 15, 2023 5:39 pm How did you install the Nvidia driver? Ubuntu Jammy has version 525.60.11

Code: Select all

root@ubuntu:~#  apt policy xserver-xorg-video-nvidia-525
xserver-xorg-video-nvidia-525:
  Installed: 525.78.01-0ubuntu0.22.04.1
  Candidate: 525.78.01-0ubuntu0.22.04.1
  Version table:
 *** 525.78.01-0ubuntu0.22.04.1 500
        500 http://archive.ubuntu.com/ubuntu jammy-proposed/restricted amd64 Packages
        100 /var/lib/dpkg/status
     525.60.11-0ubuntu0.22.04.1 500
        500 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages
jkfloris wrote: Sun Jan 15, 2023 5:39 pm In any case, make sure you also have the 32-bit part installed.

Code: Select all

wine-devel/jammy,now 8.0~rc4~jammy-1 amd64 [installed,automatic]
wine-devel-amd64/jammy,now 8.0~rc4~jammy-1 amd64 [installed,automatic]
wine-devel-i386/jammy,now 8.0~rc4~jammy-1 i386 [installed,automatic]
winehq-devel/jammy,now 8.0~rc4~jammy-1 amd64 [installed]
Is that sufficient?
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Ubuntu 22.04.01 LTS with WineHQ wine-8.0-rc4 fails to start with errors

Post by jkfloris »

Actually, I meant the 32-bit packages of the Nvidia driver. For example libnvidia-gl-525:i386
Keep in mind that packages from the jammy-proposed repository may contain some bugs.
ccurtis0
Level 1
Level 1
Posts: 5
Joined: Sat Jan 14, 2023 10:27 am

Re: Ubuntu 22.04.01 LTS with WineHQ wine-8.0-rc4 fails to start with errors

Post by ccurtis0 »

jkfloris wrote: Mon Jan 16, 2023 9:34 am Actually, I meant the 32-bit packages of the Nvidia driver. For example libnvidia-gl-525:i386
For libnvidia-gl specifically, yes:

Code: Select all

ii  libnvidia-cfg1-525:amd64                               525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-525                                   525.78.01-0ubuntu0.22.04.1                 all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-525:amd64                            525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA libcompute package
ii  libnvidia-compute-525:i386                             525.78.01-0ubuntu0.22.04.1                 i386         NVIDIA libcompute package
ii  libnvidia-decode-525:amd64                             525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-525:i386                              525.78.01-0ubuntu0.22.04.1                 i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-egl-wayland1:amd64                           1:1.1.9-1.1                                amd64        Wayland EGL External Platform library -- shared library
ii  libnvidia-encode-525:amd64                             525.78.01-0ubuntu0.22.04.1                 amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-525:i386                              525.78.01-0ubuntu0.22.04.1                 i386         NVENC Video Encoding runtime library
ii  libnvidia-extra-525:amd64                              525.78.01-0ubuntu0.22.04.1                 amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-525:amd64                               525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-525:i386                                525.78.01-0ubuntu0.22.04.1                 i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-525:amd64                                 525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-525:i386                                  525.78.01-0ubuntu0.22.04.1                 i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  nvidia-compute-utils-525                               525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA compute utilities
ii  nvidia-dkms-525                                        525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA DKMS package
ii  nvidia-driver-525                                      525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-525                               525.78.01-0ubuntu0.22.04.1                 amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-525                               525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA kernel source package
ii  nvidia-prime                                           0.8.17.1                                   all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                                        510.47.03-0ubuntu1                         amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-525                                       525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA driver support binaries
ii  screen-resolution-extra                                0.18.2                                     all          Extension for the nvidia-settings control panel
ii  xserver-xorg-video-nvidia-525                          525.78.01-0ubuntu0.22.04.1                 amd64        NVIDIA binary Xorg driver
The installed amd64 packages without corresponding i386 packages are:
  • libnvidia-cfg1-525:amd64
  • libnvidia-egl-wayland1:amd64
  • libnvidia-extra-525:amd64
  • nvidia-compute-utils-525
  • nvidia-settings
  • nvidia-utils-525
  • xserver-xorg-video-nvidia-525
    and
  • nvidia-dkms-525
  • nvidia-driver-525
  • nvidia-kernel-common-525
  • nvidia-kernel-source-525
Most of these do not have :i386 counterparts. I installed:
  • (does not exist) libnvidia-cfg1-525:i386
  • libnvidia-egl-wayland1:i386 - no change
  • libnvidia-extra-525:i386 - no change
  • (does not exist) nvidia-compute-utils-525:i386
  • (failed) nvidia-settings:i386 - requires unknown package screen-resolution-extra:i386
  • (does not exist) nvidia-utils-525:i386
  • (does not exist) xserver-xorg-video-nvidia-525:i386
  • (does not exist) nvidia-dkms-525:i386
  • (does not exist) nvidia-driver-525:i386
  • (does not exist) nvidia-kernel-common-525:i386
  • (does not exist) nvidia-kernel-source-525:i386
By "no change", I mean that when I attempt to run winecfg, I get this:

Code: Select all

user@ubuntu:~$ winecfg 
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:wineusb:query_id Unhandled ID query type 0x5.
0084:fixme:wineusb:query_id Unhandled ID query type 0x5.
0084:fixme:wineusb:query_id Unhandled ID query type 0x5.
00e4:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
00e4:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
I deleted ~/.wine and the messages are basically the same, and nearly identical to those in my first message. The hex/address numbers are slightly different from those in my initial message.

Code: Select all

user@ubuntu:~$ winecfg 
wine: created the configuration directory '/home/user/.wine'
002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0048:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0050:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0040:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0040:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
002c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
002c:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
0084:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0084:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
008c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
008c:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
00d0:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
00d0:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
00f8:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00f8:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00f8:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
wine: configuration in L"/home/user/.wine" has been updated.
00f8:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00f8:fixme:wineusb:query_id Unhandled ID query type 0x5.
00f8:fixme:wineusb:query_id Unhandled ID query type 0x5.
00f8:fixme:wineusb:query_id Unhandled ID query type 0x5.
0134:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0134:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
ccurtis0
Level 1
Level 1
Posts: 5
Joined: Sat Jan 14, 2023 10:27 am

Re: Ubuntu 22.04.01 LTS with WineHQ wine-8.0-rc4 fails to start with errors (external NVidia display problem?)

Post by ccurtis0 »

So: I did a test.

If I unplug the external display connected to the NVidia card, "winecfg" still fails. However, if I then delete ~/.wine and rerun "winecfg" with the external display disconnected, winecfg does start. Exiting winecfg and plugging in the external display causes it to fail to run again, and even after unplugging the display it continues to fail to launch. It appears that wine will run if it never sees my external display.

So: With the display unplugged I removed ~/.wine and ran winecfg again. After it launched and while it was running I then plugged in the external display. My system appeared to freeze and generally was very unhappy, but slowly recovered. The winecfg app continues to run when I move it onto the external display.

While winecfg is running and the external display is connected I can also launch winefile.

If I then close both winefile and winecfg and attempt to run winefile, I get the same "no driver" error as before:

Code: Select all

0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:wineusb:query_id Unhandled ID query type 0x5.
0084:fixme:wineusb:query_id Unhandled ID query type 0x5.
0084:fixme:wineusb:query_id Unhandled ID query type 0x5.
00d8:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
00d8:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
wine: Read access denied for device L"\\??\\D:\\", FS volume label and serial are not available.
wine: Read access denied for device L"\\??\\E:\\", FS volume label and serial are not available.
wine: Read access denied for device L"\\??\\F:\\", FS volume label and serial are not available.
wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available.
aug
Level 3
Level 3
Posts: 69
Joined: Sat Oct 30, 2021 4:21 am

Re: Ubuntu 22.04.01 LTS with WineHQ wine-8.0-rc4 fails to start with errors

Post by aug »

Try installing
libglvnd and libglvnd:i386

Install Mesa from
https://launchpad.net/~kisak/+archive/u ... es_filter=

DXVK is another solution too
ccurtis0
Level 1
Level 1
Posts: 5
Joined: Sat Jan 14, 2023 10:27 am

Re: Ubuntu 22.04.01 LTS with WineHQ wine-8.0 fails to start with errors when using NVidia drivers with an external displ

Post by ccurtis0 »

Thanks for the reply. The packages libglvnd and libglvnd:i386 are not available via apt. I'm using the proprietary NVidia driver and my limited understanding is that it replaces Mesa wholly. That may mean that Mesa or DXVK will work, but unfortunately this is a production system that I can't afford to mess around with much. It appears that Wine will not work for me here.

I updated to the latest release (8.0.0~jammy-1) but the problem persists, even after removing the ~/.wine directory. I did not experiment with removing the external monitor but assume it will still work using only the laptop display.
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Ubuntu 22.04.01 LTS with WineHQ wine-8.0-rc4 fails to start with errors

Post by jkfloris »

The packages libglvnd and libglvnd:i386 are not available via apt.
The package names are libglvnd0 and libglvnd0:i386, but if those are not installed, then I expect libgl1 and libgl1:i386 are not installed either.

You can check that everything is properly installed with:

Code: Select all

# from mesa-utils-bin:i386
glxinfo.i386-linux-gnu -B
Locked