protonscr

Failing to run KH 1.5 + 2.5 with version 2.3.0

vkd3dclosed
HansKristian-Work/vkd3d-proton#643 · opened 2021-04-24 by arcogabbo · updated 2025-01-15 · 17 comments · github
Aarcogabbo 2021-04-24 github

Installed the latest release and whenever i run the game i get this output:

001b:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\NDIS": 00000001
0035:err:ole:CoGetContextToken apartment not initialised
51:info:vkd3d_get_vk_version: vkd3d-proton - applicationVersion: 2.3.0.
51:info:vkd3d_instance_init: vkd3d-proton - build: 26584b4d7cee8990.
51:err:vkd3d_load_vk_instance_procs: Could not get instance proc addr for 'vkGetPhysicalDeviceFragmentShadingRatesKHR'.
51:err:vkd3d_instance_init: Failed to load instance procs, hr 0x80004005.
0031:err:ntdll:RtlpWaitForCriticalSection section 0x6427eeb2778 "?" wait timed out in thread 0031, blocked by 0000, retrying (60 sec)
DDadSchoorse 2021-04-24 github

Can you provide the output of vulkaninfo? (most distros have a vulkan-tools package for that)
And what wine version are you using?

Aarcogabbo 2021-04-24 github
DDadSchoorse 2021-04-24 github

And what wine version are you using?

Aarcogabbo 2021-04-24 github

Well, 5.0. I guess the problem is the version, in fact lutris is using 6.4 and the game boots but i get a page fault on read access.
This are the info of the page fault: https://ghostbin.co/paste/9d5q62s

DDadSchoorse 2021-04-24 github

I think #644 should fix the original issue, no idea about the segfault. A vkd3d-proton log might help.

DDadSchoorse 2021-04-24 github

actually, in the page fault info there's

Version: Windows Server 2003

you should set the windows version in the prefix to windows 10

Aarcogabbo 2021-04-24 github

Sadly, the same page fault occurs setting Windows version to 10

Rrobzombie91 2021-04-24 github

this is the bug i get repeatedly

340:fixme:d3d12_command_list_update_current_framebuffer: Invalid RTV for attachment 0.
340:fixme:d3d12_command_list_ExecuteBundle: iface 00000000057492d0, command_list 0000000005aaa2d0 stub!
344:fixme:d3d12_swapchain_Present1: Ignored present parameters 000000000ed7fba8.

DDadSchoorse 2021-04-24 github

@robzombie91 you are not using 2.3, d3d12_command_list_ExecuteBundle was implemented recently.

Mmisyltoad maintainer 2021-04-24 github

This should be fixed in latest master.

Mmisyltoad maintainer 2021-04-24 github

Also, you probably want to update your wine at some point. 5.0 is pretty old.

Aarcogabbo 2021-04-24 github

Yeah i installed an updated version with lutris but i always encounter a page fault, i saw somewhere wine 6.7 Is releasing soon, i'll try it and see.

EDIT 1: Nothing to do about It, i'm getting page fault even on wine 6.7, the graphics work so it's not a vkd3d problem.

DDistantThunder 2021-06-14 github

I went a bit further trying to run this game and fell upon a most strange happening.

First on 2.3.0, I'm still getting lots of :

MANGOHUD: recreating font image
328:fixme:d3d12_swapchain_Present1: Ignored present parameters 000000000fbafb58.
332:fixme:d3d12_swapchain_Present1: Ignored present parameters 000000000fcbfb78.
332:fixme:d3d12_swapchain_Present1: Ignored present parameters 000000000fcbfb78.
332:fixme:d3d12_swapchain_Present1: Ignored present parameters 000000000fcbfb78.

Messages in the logs.

Then, it's as if while the Game menu is running in D3D12, the cutscenes and movies switch back to D3D11:

image

When I'm about to begin a new game, the screen becomes black and the crashes soon after as (I suppose) the Opening cutscene is about to start playing:

336:fixme:d3d12_swapchain_Present1: Ignored present parameters 000000000fbafc88.
info:  Game: KINGDOM HEARTS FINAL MIX.exe
info:  DXVK: v1.8.1
info:  Built-in extension providers:
info:    Win32 WSI
info:    OpenVR
info:    OpenXR
info:  OpenVR: could not open registry key, status 2
warn:  OpenVR: Failed to locate module
info:  Enabled instance extensions:
info:    VK_KHR_get_surface_capabilities2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
[...]

Eventually ending like this:

info:  DXVK: Read 0 valid state cache entries
info:  DXVK: Using 10 compiler threads
warn:  DXGI: VK_FORMAT_D24_UNORM_S8_UINT -> VK_FORMAT_D32_SFLOAT_S8_UINT
err:   D3D11: Cannot create texture:
err:     Format:  103
err:     Extent:  1920x1080x1
err:     Samples: 1
err:     Layers:  1
err:     Levels:  1
err:     Usage:   0
err:     Flags:   0
err:   D3D11: Cannot create texture:
err:     Format:  103
err:     Extent:  1920x1080x1
err:     Samples: 1
err:     Layers:  1
err:     Levels:  1
err:     Usage:   0
err:     Flags:   0
winegstreamer: warning: videoconvert1: not negotiated
winegstreamer: warning: videoconvert1: ../src-gstreamer/libs/gst/base/gstbasetransform.c(1431): gst_base_transform_reconfigure_unlocked (): /GstBin:bin0/GstVideoConvert:videoconvert1:
not negotiated
wine: Unhandled division by zero at address 00007F1DD5B3022E (thread 0218), starting debugger...
Unhandled exception: divide by zero in 64-bit code (0x00007f1dd5b3022e).
Register dump:
 rip:00007f1dd5b3022e rsp:00000000389afc80 rbp:00000000389afdf8 eflags:00010246 (  R- --  I  Z- -P- )
 rax:0000000000002000 rbx:0000000012843650 rcx:0000000000000000 rdx:0000000000000000
 rsi:0000000012b8ad90 rdi:0000000000000000  r8:0000000000002000  r9:0000000000000000 r10:0000000000000000
 r11:0000000000000000 r12:0000000000000000 r13:0000000000000000 r14:0000000000000000 r15:0000000000000000
Stack dump:
0x00000000389afc80:  0000000000000000 0000000000000000
0x00000000389afc90:  00000000389afde0 00000000389afdf8
0x00000000389afca0:  00000000389afdb0 0000000000000000
0x00000000389afcb0:  0000000012843350 0000000000000000
0x00000000389afcc0:  0000000000000000 00007f1dd5b68cf8
0x00000000389afcd0:  0000000000000000 0000000000000000
0x00000000389afce0:  0000000000000000 0000000000000000
0x00000000389afcf0:  0000000000000000 0000000000000000
0x00000000389afd00:  0000000000000000 0000000000000000
0x00000000389afd10:  0000000000000000 0000000000000000
0x00000000389afd20:  0000000000000000 0000000000000000
0x00000000389afd30:  0000000000000000 0000000000000000
Backtrace:
=>0 0x00007f1dd5b3022e (0x00000000389afdf8)
0x00007f1dd5b3022e: divl	%r11d,%eax
Modules:

Logs attached, I can't tell wether its a Media Foundation issue or if VKD3D & DXVK are supposed to work some black magic together.

khlogs.log

DDistantThunder 2021-06-14 github

If you (re)move the video files, making them unavailable to the game:

image

You can go ingame, and indeed it's D3D12 again.

BBlisto91 2023-02-14 github

@arcogabbo @DistantThunder Friendly ping. Does this work now? I understand from above this might not have been a vkd3d-proton issue?

BBlisto91 2025-01-14 github

@arcogabbo @DistantThunder Another friendly ping

KKurumi78 2025-01-14 github

It was fixed in VKD3D about 6 months ago. This can be closed.

Launch options

Error codes