Ubuntu 22.04 / Wine 8: Could not initialize Direct3D

Questions about Wine on Linux
Locked
meyer
Level 3
Level 3
Posts: 50
Joined: Sat Jul 15, 2017 2:38 am

Ubuntu 22.04 / Wine 8: Could not initialize Direct3D

Post by meyer »

I moved from ubuntu 20.04 and wine 6 to ubuntu 22.04 and winehq-devel 8.0-rc1. I tried to install anno 1701 and fail because of the error FROM ANNO (not from wine in the terminal) that direct3 could not be initialized. This is the wine error

Code: Select all

0054:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\atksgt": c0000142
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"atksgt" failed to start: 1114
0088:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\lirsgt": c0000142
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"lirsgt" failed to start: 1114
00d0:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00d0:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00d0:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00d0:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00c0:err:vulkan:wine_vk_init Failed to load libvulkan.so.1.
0024:err:richedit:ReadStyleSheet skipping optional destination
0024:err:richedit:ReadStyleSheet skipping optional destination
0024:fixme:imm:ImeSetActiveContext (0001007E, 1): stub
0024:fixme:imm:ImmReleaseContext (000100A4, 0001007E): stub
00c0:fixme:imm:ImeSetActiveContext (00010026, 0): stub
00c0:fixme:imm:ImmReleaseContext (00010020, 00010026): stub
13c:err:vulkan:wine_vk_init Failed to load libvulkan.so.1.
013c:err:wgl:init_opengl Failed to load libGL: libGL.so.1: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
013c:err:wgl:init_opengl OpenGL support is disabled.
013c:err:d3d:wined3d_caps_gl_ctx_create Failed to find a suitable pixel format.
013c:err:d3d:wined3d_adapter_gl_init Failed to get a GL context for adapter 012FDE58.
013c:fixme:imm:ImeSetActiveContext (00020068, 1): stub
013c:fixme:imm:ImmReleaseContext (00020056, 00020068): stub
the GPU is a geforce GT 1030 and i use the Nvidia driver 515.86.1.
invisible kid
Level 5
Level 5
Posts: 368
Joined: Tue Dec 24, 2019 3:23 pm

Re: Ubuntu 22.04 / Wine 8: Could not initialize Direct3D

Post by invisible kid »

Fellow user here. It's not finding the vulkan library. The nvidia driver installer should install that. If the program is a 32 bit program you will need to also install the nvidia 32 bit drivers when it asks you. If it's 32 bit that also means you will have to activate multi-architecture if you haven't already.
meyer
Level 3
Level 3
Posts: 50
Joined: Sat Jul 15, 2017 2:38 am

Re: Ubuntu 22.04 / Wine 8: Could not initialize Direct3D

Post by meyer »

At the Moment i try it with a fresh ubuntu. The nvidia driver ist installed (nvidia-driver-515) but the repo can't find a i386 Version. I guess the Problem is that the game is 32 bit and the nvidia driver 64 bit. But there is no 32 bit driver.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Ubuntu 22.04 / Wine 8: Could not initialize Direct3D

Post by jkfloris »

Have you tried installing the missing files?

libvulkan.so.1

Code: Select all

sudo apt install libvulkan1:i386
libGL.so.1

Code: Select all

sudo apt install libgl1:i386
invisible kid
Level 5
Level 5
Posts: 368
Joined: Tue Dec 24, 2019 3:23 pm

Re: Ubuntu 22.04 / Wine 8: Could not initialize Direct3D

Post by invisible kid »

Oops, right, I was thinking of something else. That library isn't supplied by nvidia.
changes4better
Newbie
Newbie
Posts: 2
Joined: Sun Dec 25, 2022 12:53 am

Re: Ubuntu 22.04 / Wine 8: Could not initialize Direct3D

Post by changes4better »

sudo apt install libgl1:i386
changes4better
Newbie
Newbie
Posts: 2
Joined: Sun Dec 25, 2022 12:53 am

Re: Ubuntu 22.04 / Wine 8: Could not initialize Direct3D

Post by changes4better »

0054:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\atksgt": c0000142
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"atksgt" failed to start: 1114
0088:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\lirsgt": c0000142
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"lirsgt" failed to start: 1114
00d0:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00d0:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00d0:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00d0:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00c0:err:vulkan:wine_vk_init Failed to load libvulkan.so.1.
0024:err:richedit:ReadStyleSheet skipping optional destination
0024:err:richedit:ReadStyleSheet skipping optional destination
0024:fixme:imm:ImeSetActiveContext (0001007E, 1): stub
0024:fixme:imm:ImmReleaseContext (000100A4, 0001007E): stub
00c0:fixme:imm:ImeSetActiveContext (00010026, 0): stub
00c0:fixme:imm:ImmReleaseContext (00010020, 00010026): stub
13c:err:vulkan:wine_vk_init Failed to load libvulkan.so.1.
013c:err:wgl:init_opengl Failed to load libGL: libGL.so.1: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
013c:err:wgl:init_opengl OpenGL support is disabled.
013c:err:d3d:wined3d_caps_gl_ctx_create Failed to find a suitable pixel format.
013c:err:d3d:wined3d_adapter_gl_init Failed to get a GL context for adapter 012FDE58.
013c:fixme:imm:ImeSetActiveContext (00020068, 1): stub
013c:fixme:imm:ImmReleaseContext (00020056, 00020068): stub
meyer
Level 3
Level 3
Posts: 50
Joined: Sat Jul 15, 2017 2:38 am

Re: Ubuntu 22.04 / Wine 8: Could not initialize Direct3D

Post by meyer »

jkfloris wrote: Sat Dec 24, 2022 10:38 am Have you tried installing the missing files?
Yes, but i can't find the 32 birt versions in the repo. When i enable 32 bit
sudo dpkg --add-architecture i386
and update the repo i guess the files should be able to install but there are only the 64 bit versions without ":i386".
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Ubuntu 22.04 / Wine 8: Could not initialize Direct3D

Post by jkfloris »

What is the output of

Code: Select all

apt policy libgl1 libgl1:i386
# and
apt policy
meyer
Level 3
Level 3
Posts: 50
Joined: Sat Jul 15, 2017 2:38 am

Re: Ubuntu 22.04 / Wine 8: Could not initialize Direct3D

Post by meyer »

That is strange. Now i can install libvulkan1:i386, but there is an other error for libgl1:i386
sudo apt install libgl1:i386
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libglx-mesa0 : Breaks: libglx-mesa0:i386 (!= 22.0.5-0ubuntu0.1) but 22.0.1-1ubuntu2 is to be installed
libglx-mesa0:i386 : Depends: libglapi-mesa:i386 (= 22.0.1-1ubuntu2) but 22.0.5-0ubuntu0.1 is to be installed
Depends: libgl1-mesa-dri:i386 but it is not going to be installed
Breaks: libglx-mesa0 (!= 22.0.1-1ubuntu2) but 22.0.5-0ubuntu0.1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
apt policy libgl1 libgl1:i386
libgl1:
Installed: 1.4.0-1
Candidate: 1.4.0-1
Version table:
*** 1.4.0-1 500
500 http://de.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
100 /var/lib/dpkg/status
libgl1:i386:
Installed: (none)
Candidate: 1.4.0-1
Version table:
1.4.0-1 500
500 http://de.archive.ubuntu.com/ubuntu jammy/main i386 Packages
apt policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 https://ppa.launchpadcontent.net/tomtom ... usb/ubuntu jammy/main amd64 Packages
release v=22.04,o=LP-PPA-tomtomtom-woeusb,a=jammy,n=jammy,l=WoeUSB,c=main,b=amd64
origin ppa.launchpadcontent.net
500 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu jammy/main i386 Packages
release v=22.04,o=LP-PPA-mozillateam,a=jammy,n=jammy,l=Firefox ESR and Thunderbird stable builds,c=main,b=i386
origin ppa.launchpadcontent.net
500 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu jammy/main amd64 Packages
release v=22.04,o=LP-PPA-mozillateam,a=jammy,n=jammy,l=Firefox ESR and Thunderbird stable builds,c=main,b=amd64
origin ppa.launchpadcontent.net
500 https://mkvtoolnix.download/ubuntu jammy/main amd64 Packages
release o=mkvtoolnix.download,a=jammy,n=jammy,l=MKVToolNix APT repository,c=main,b=amd64
origin mkvtoolnix.download
500 https://ppa.launchpadcontent.net/heyarj ... eta/ubuntu jammy/main amd64 Packages
release v=22.04,o=LP-PPA-heyarje-makemkv-beta,a=jammy,n=jammy,l=makemkv-beta,c=main,b=amd64
origin ppa.launchpadcontent.net
500 http://dl.google.com/linux/earth/deb stable/main amd64 Packages
release v=1.0,o=Google LLC,a=stable,n=stable,l=Google,c=main,b=amd64
origin dl.google.com
500 https://dl.google.com/linux/chrome/deb stable/main amd64 Packages
release v=1.0,o=Google LLC,a=stable,n=stable,l=Google,c=main,b=amd64
origin dl.google.com
500 http://security.ubuntu.com/ubuntu jammy-security/multiverse i386 Packages
release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=multiverse,b=i386
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages
release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=multiverse,b=amd64
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu jammy-security/universe i386 Packages
release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=universe,b=i386
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages
release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=universe,b=amd64
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu jammy-security/restricted i386 Packages
release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=restricted,b=i386
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages
release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=restricted,b=amd64
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=main,b=i386
origin security.ubuntu.com
500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
release v=22.04,o=Ubuntu,a=jammy-security,n=jammy,l=Ubuntu,c=main,b=amd64
origin security.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu jammy/multiverse i386 Packages
release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=multiverse,b=i386
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages
release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=multiverse,b=amd64
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu jammy/universe i386 Packages
release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=universe,b=i386
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=universe,b=amd64
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu jammy/restricted i386 Packages
release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=restricted,b=i386
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages
release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=restricted,b=amd64
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu jammy/main i386 Packages
release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=main,b=i386
origin de.archive.ubuntu.com
500 http://de.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
release v=22.04,o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=main,b=amd64
origin de.archive.ubuntu.com
Pinned packages:
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Ubuntu 22.04 / Wine 8: Could not initialize Direct3D

Post by jkfloris »

libglx-mesa0 22.0.5-0ubuntu0.1 comes from the jammy-updates repository, but I don't see that repo in your apt policy

You can (re)enable the jammy-updates repository in
Software & UpdatesUpdates → Subscribed to: All updates
meyer
Level 3
Level 3
Posts: 50
Joined: Sat Jul 15, 2017 2:38 am

Re: Ubuntu 22.04 / Wine 8: Could not initialize Direct3D

Post by meyer »

Thats it.
Locked