VK_SUCCESS is the Vulkan result code for a successful operation. VK_SUBOPTIMAL_KHR is (IIRC) the Khronos extension result saying “it’s not what you asked for, but it will kind of do”.
Your error says it didn’t get either of those, but instead got VK_ERROR_OUT_OF_HOST_MEMORY, which says (IIRC) that you ran out of available system ram (that is, not GPU RAM) during some Vulkan operation.
I have some vague memory of some buggy Intel iGPU Vulkan drivers generating this error. Is there anything in the output that says what GPU your system is trying to use? I didn’t think the F series CPUs had iGPUs, but…
How much system RAM do you have? Are your vulkan drivers up to date?
Anyway, there’s some confusion about my posts being deleted because of an accidental link to a translator. I’ve registered a new account, I’ll duplicate the original post and post a reply.
I've got a problem. I wrote the code, it works correctly for renderer ‘gl_compatibility’ but as soon as I switch the renderer to ‘forward_plus’ I get this error:
E 0:00:00:00:11:820 command_queue_execute_and_present: QueuePresentKHR failed with error: VK_ERROR_OUT_OF_HOST_MEMORY <C++ Error> Condition ‘err != VK_SUCCESS && err != VK_SUBOPOPOPTIMAL_KHR’ is true. Returning: FAILED <C++ Source> drivers/vulkan/rendering_device_driver_vulkan.cpp:2742 @ command_queue_execute_and_present()
What can I do about it?
Here are the configurations of my PC: Intel Core i5 9600KF 3.70GHz NVIDIA GeForce GTX 1060 6 GB Windows 10 Pro 22H2
Sorry for not replying for a long time, was not at the PC. I have 48 GB of RAM. When using ‘gl_compatibility’ the whole scene takes up about 6 GB of memory in RAM. When Godot loads it gives this message about the GPU used ‘Vulkan 1.4.303 - Forward+ - Using Device #0: NVIDIA - NVIDIA GeForce GTX 1060 6GB’
There were some specific (recent) nvidia drivers that caused problems for Godot for a while (though I thought they were mostly visual?), have you updated to the latest drivers?
Which versions of Godot have you tried?
The call that is failing internally appears to be:
That does list VK_ERROR_OUT_OF_HOST_MEMORY as a possible error value.
Your best bet may be to report this to the Godot bug tracker.
I have only used this version of Godot Engine v4.4.1.1.stable.steam.49a5bc7b6 and I have the latest NVIDEA drivers. I will give my code to a friend and see if it works for him. And if I get any results, I’ll post it here.