Final Fantasy XVI freezes and never recover

While I play, during cutscenes or when an overlay element is displayed (during combat, entering a new zone, …), my game sometimes freezes and never recover, I have to close the game manually. It seems to occur very frequently in specific custscenes (at the end of Louder than Words for example) or specific areas (when fighting minotaurs in The Hunter and the Hunted for example) while other places are much less concerned.

Logs

My proton log is filled with

627.308:0124:0128:warn:vkd3d-proton:d3d12_command_list_QueryInterface: {5b2662fb-eb28-4aec-819e-1c1b4de060f6} not implemented, returning E_NOINTERFACE.

generally followed after a few lines by

627.316:0124:0424:warn:vkd3d-proton:vkd3d_native_sync_handle_release: Failed to release semaphore (#12a).
627.316:0124:0424:warn:vkd3d-proton:dxgi_vk_swap_chain_wait_worker: Failed to increment swapchain semaphore. Did application forget to acquire?

The last lines are as follow

638.499:0124:01ec:err:vkd3d-proton:d3d12_command_queue_execute: Failed to submit queue(s), vr -4.
638.499:0124:01ec:warn:vkd3d-proton:d3d12_device_mark_as_removed: Device 0000000013250080 is lost (reason 0x887a0005, "VK_ERROR_DEVICE_LOST").
638.499:0124:01ec:err:vkd3d-proton:d3d12_command_queue_execute: Failed to submit queue(s), vr -4.
638.499:0124:01ec:warn:vkd3d-proton:d3d12_device_mark_as_removed: Device 0000000013250080 is lost (reason 0x887a0005, "VK_ERROR_DEVICE_LOST").
638.499:0124:01ec:err:vkd3d-proton:d3d12_command_queue_flush_waiters: Failed to submit semaphore waits, vr -4.
638.499:0124:01ec:err:vkd3d-proton:d3d12_command_queue_execute: Failed to submit queue(s), vr -4.
638.499:0124:01ec:warn:vkd3d-proton:d3d12_device_mark_as_removed: Device 0000000013250080 is lost (reason 0x887a0005, "VK_ERROR_DEVICE_LOST").
638.499:0124:01ec:err:vkd3d-proton:d3d12_command_queue_execute: Failed to submit queue(s), vr -4.
638.499:0124:01ec:warn:vkd3d-proton:d3d12_device_mark_as_removed: Device 0000000013250080 is lost (reason 0x887a0005, "VK_ERROR_DEVICE_LOST").

System information

  • GPU: Nvidia RTX 3070 Ti
  • Driver: 570.86.16
  • Wine version: Proton experimental (bleeding edge)

Have you found a solution for this?
Similar situation on dx12 games, a “last frame” is delivered and the game continues onward with a frozen frame.

I’ve had a hit or miss situation with:

VKD3D_DISABLE_EXTENSIONS=VK_KHR_present_id,VK_KHR_present_wait
MESA_VK_WSI_PRESENT_MODE=immediate
vk_xwayland_wait_ready=false

Where on a fresh boot or some special timing the game will run perfectly fine but I can’t reproduce it again/rarely.

My setup:
565.77 kernel 6.6.85 nixos with Sway
2xDP monitor 1x hdmi 4.1

EDIT: Was reading other threads and checked my vram usage and that seems to be the root cause.