godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
88.75k stars 20.12k forks source link

`ERR_CANT_CREATE` at `VulkanContext::swap_buffers` error at Godot startup #52112

Open ivalylo opened 3 years ago

ivalylo commented 3 years ago

Godot version

4.0.dev(ae3a4224271fa058fd8424c6142a2357bd7624b2)

System information

Windows 10, Vulkan, GTX 1080, Driver 471.68

Issue description

Sometimes at startup Godot freezes and Vulkan stops working. The following error is detected:

ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE at: VulkanContext::swap_buffers (drivers\vulkan\vulkan_context.cpp:1860)

Further investigation shows that Vulkan returns VK_ERROR_DEVICE_LOST, which is a symptom of resource corruption.

Steps to reproduce

Extract and run the attached project:

godot.windows.tools.64 --game --path C:\godot_swapchain

It will produce some script errors that can be ignored. Sometimes it will freeze the computer and show the ERR_CANT_CREATE (very random and unpredictable)

Minimal reproduction project

godot_swapchain.zip

Tooniis commented 3 years ago

Having this issue on Linux. Godot freezes at a black screen after choosing/creating a project and I get this:

ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE
   at: swap_buffers (drivers/vulkan/vulkan_context.cpp:1860)
ERROR: Condition "err" is true.
   at: flush (drivers/vulkan/vulkan_context.cpp:1721)
ERROR: Condition "err" is true.
   at: flush (drivers/vulkan/vulkan_context.cpp:1721)
ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE
   at: swap_buffers (drivers/vulkan/vulkan_context.cpp:1860)
ERROR: Condition "err" is true.
   at: flush (drivers/vulkan/vulkan_context.cpp:1721)
ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE
   at: swap_buffers (drivers/vulkan/vulkan_context.cpp:1860)

Also I got this in dmesg:

[   52.459208] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   52.459325] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   52.459353] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   53.517729] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   53.517810] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   53.517839] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   55.227470] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   55.227566] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   55.227605] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   55.322695] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   55.322784] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   55.322815] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   55.328115] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   55.328194] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   55.328221] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   57.975177] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   57.975252] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   57.975279] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   58.038817] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   58.039010] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   58.039046] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.507941] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.508026] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.508051] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.529598] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.529680] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.529706] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.543198] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.543268] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.543292] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.564238] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.564334] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.564366] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.577690] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.577783] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.577972] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.598329] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.598415] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.598441] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.605175] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.605248] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.605274] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.633072] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.633165] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.633191] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.639440] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.639518] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.639543] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.672713] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.672792] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.672817] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.677000] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.677113] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.677143] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.697234] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.697318] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.697348] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.741864] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.741940] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   75.741970] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   88.766875] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   88.766963] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   88.766992] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   92.647764] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   92.647835] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   92.647864] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   92.655280] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   92.655360] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   92.655388] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   93.680725] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   93.680800] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[   93.680826] i915 0000:00:02.0: cannot be used for peer-to-peer DMA as the client and provider (0000:01:00.0) do not share an upstream bridge or whitelisted host bridge
[  103.915458] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout, signaled seq=698, emitted seq=699
[  103.915656] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process godot.linuxbsd. pid 1790 thread godot.linuxbsd. pid 1790
[  103.915802] amdgpu 0000:01:00.0: amdgpu: GPU recovery disabled.

Running master @ 7ab78c4cad2823a30603a082ac98b92f91ac64a5 Intel HD Graphics 520 + AMD Radeon R5 M330 Arch Linux 5.13.12.arch1-1, Mesa 21.2.1-1

Zireael07 commented 2 years ago

Same problem here:

master @ de917008f Intel Kaby Lake Intel Manjaro

MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0

Vulkan API 1.2.191 - Using Vulkan Device #0: Intel - Intel(R) UHD Graphics 620 (WHL GT2)

MESA-INTEL: error: ../mesa-21.2.1/src/intel/vulkan/anv_device.c:3704: GPU hung on one of our command buffers (VK_ERROR_DEVICE_LOST) ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE at: swap_buffers (drivers/vulkan/vulkan_context.cpp:1861) ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE at: swap_buffers (drivers/vulkan/vulkan_context.cpp:1861) ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE at: swap_buffers (drivers/vulkan/vulkan_context.cpp:1861)

NB: Pleasantly surprised to discover Vulkan runs ;) but it lasted only a single run. I can do stuff in editor but I can't launch the test project.

you-win commented 2 years ago

I'm getting similar errors at the end the log for me. This really only happened when I started messing with the WorldEnvironment sky values in my project.

master 468b987aa38b21b55c1cd8a8d4c03b8e1b2a1373 Windows 10 AMD 5800x

Godot Engine v4.0.dev.custom_build.468b987aa - https://godotengine.org
WARNING: GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
    ReadDataFilesInRegistry: Registry lookup failed to get layer manifest files.
    Objects - 1
        Object[0] - VK_OBJECT_TYPE_INSTANCE, Handle 3017070808800
   at: VulkanContext::_debug_messenger_callback (drivers\vulkan\vulkan_context.cpp:154) - GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
    ReadDataFilesInRegistry: Registry lookup failed to get layer manifest files.
    Objects - 1
        Object[0] - VK_OBJECT_TYPE_INSTANCE, Handle 3017070808800
ERROR: GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
    Failed to open dynamic library "C:\ProgramData\obs-studio-hook\.\graphics-hook32.dll" with error 193
    Objects - 1
        Object[0] - VK_OBJECT_TYPE_INSTANCE, Handle 3017070808800
   at: VulkanContext::_debug_messenger_callback (drivers\vulkan\vulkan_context.cpp:157) - GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
    Failed to open dynamic library "C:\ProgramData\obs-studio-hook\.\graphics-hook32.dll" with error 193
    Objects - 1
        Object[0] - VK_OBJECT_TYPE_INSTANCE, Handle 3017070808800
Vulkan API 1.2.170 - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce RTX 3080
ERROR: GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
    Failed to open dynamic library "C:\ProgramData\obs-studio-hook\.\graphics-hook32.dll" with error 193
    Objects - 1
        Object[0] - VK_OBJECT_TYPE_INSTANCE, Handle 3017070808800
   at: VulkanContext::_debug_messenger_callback (drivers\vulkan\vulkan_context.cpp:157) - GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
    Failed to open dynamic library "C:\ProgramData\obs-studio-hook\.\graphics-hook32.dll" with error 193
    Objects - 1
        Object[0] - VK_OBJECT_TYPE_INSTANCE, Handle 3017070808800

Starting face tracker.
C:/Users/theaz/dev/vss/export/../../openseeface-gd/export/OpenSeeFaceFolder/OpenSeeFace/facetracker.exe
Listening for data at 127.0.0.1:11573
finish
Face tracker started.
ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE
   at: VulkanContext::swap_buffers (drivers\vulkan\vulkan_context.cpp:1861) - Condition "err" is true. Returning: ERR_CANT_CREATE
ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE
   at: VulkanContext::swap_buffers (drivers\vulkan\vulkan_context.cpp:1861) - Condition "err" is true. Returning: ERR_CANT_CREATE
ghost commented 2 years ago

I have this error on v4.0.alpha1.official [31a7ddbf8] but only when I have enabled overlay on Godot window (Steam or RivaTunerSS). Project Manager freezes after closing "Open Asset Library" prompt and I have to kill Godot process.

Console:

ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE
   at: swap_buffers (drivers/vulkan/vulkan_context.cpp:1956)

OS: Windows 11 21H2 GPU: AMD Radeon RX 6900XT Driver: 21.30.23.04-211216a-374983E Vulkan Driver: 2.0.198 Vulkan API: 1.2.188

Calinou commented 2 years ago

I have this error on v4.0.alpha1.official [31a7ddbf8] but only when I have enabled overlay on Godot window (Steam or RivaTunerSS). Project Manager freezes after closing "Open Asset Library" prompt and I have to kill Godot process.

Can you reproduce this if you start Godot with the --single-window command line argument? (Note that it doesn't carry over from the project manager to the editor, so you have to open a project from the command line to be able to edit a project.)

ghost commented 2 years ago

I created the project without the overlay and then ran Godot with the overlay, so the prompt did not appear and I was able to open the project without errors. But if I click on the item that opens the popup, then the overlay moves from the main window to the popup. overlay And if I click somewhere else the popup closes and I get the same error as before + some new ones

ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE
   at: _update_swap_chain (drivers/vulkan/vulkan_context.cpp:1584)
ERROR: Condition "err != OK" is true. Returning: ERR_CANT_CREATE
   at: _window_create (drivers/vulkan/vulkan_context.cpp:1317)
ERROR: Condition "!windows.has(p_window)" is true.
   at: window_resize (drivers/vulkan/vulkan_context.cpp:1335)
ERROR: Condition "!windows.has(p_window)" is true.
   at: window_resize (drivers/vulkan/vulkan_context.cpp:1335)
ERROR: Condition "!windows.has(p_window)" is true. Returning: -1
   at: window_get_height (drivers/vulkan/vulkan_context.cpp:1347)
ERROR: Condition "!windows.has(p_window)" is true. Returning: -1
   at: window_get_width (drivers/vulkan/vulkan_context.cpp:1342)
ERROR: Condition "!windows.has(p_window)" is true. Returning: nullptr
   at: window_get_render_pass (drivers/vulkan/vulkan_context.cpp:1352)
ERROR: Condition "!windows.has(p_window)" is true. Returning: nullptr
   at: window_get_framebuffer (drivers/vulkan/vulkan_context.cpp:1359)

Can you reproduce this if you start Godot with the --single-window command line argument? (Note that it doesn't carry over from the project manager to the editor, so you have to open a project from the command line to be able to edit a project.)

Nope, with --single-window flag I don't have these errors and popup works.

After closing Godot window I get these errors (also with --single-window), it may be related:

ERROR: Condition "!material" is true.
   at: material_set_shader (servers/rendering/renderer_rd/renderer_storage_rd.cpp:1570)
ERROR: Attempted to free invalid ID: 0
   at: _free_internal (drivers/vulkan/rendering_device_vulkan.cpp:8401)
ERROR: Attempted to free invalid ID: 0
   at: _free_internal (drivers/vulkan/rendering_device_vulkan.cpp:8401)
ERROR: Attempted to free invalid ID: 0
   at: _free_internal (drivers/vulkan/rendering_device_vulkan.cpp:8401)
ERROR: Attempted to free invalid ID: 0
   at: _free_internal (drivers/vulkan/rendering_device_vulkan.cpp:8401)
ERROR: Attempted to free invalid ID: 0
   at: _free_internal (drivers/vulkan/rendering_device_vulkan.cpp:8401)
ERROR: 1 shaders of type BokehDofRasterShaderRD were never freed
   at: ~ShaderRD (servers/rendering/renderer_rd/shader_rd.cpp:702)
Calinou commented 2 years ago

I'm not sure if we can fix this issue with third-party overlays, unless there is a way to signal third-party overlays that they should not overlay specific Vulkan windows.

adham-omran commented 2 years ago

I am getting this error on v4.0.alpha [672129083129033433d8667e8fb4d1fb2d2da03f] while attempting to run Liblast at ae4e0ac

Windows 10, Vulkan, GTX 1050 Ti, Driver 496.49

frtp2612 commented 1 year ago

I am getting the same errors whenever I try to use Triplanar UVs. Godot crashes as a result, as well as my graphics card, requiring a reboot of the system. The problem appears in all alphas and also in beta 1.

ERROR: Vulkan: Did not create swapchain successfully. at: (drivers/vulkan/vulkan_context.cpp:2056) ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2133) ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE at: _update_swap_chain (drivers/vulkan/vulkan_context.cpp:1746) ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE at: _update_swap_chain (drivers/vulkan/vulkan_context.cpp:1746) ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE at: _update_swap_chain (drivers/vulkan/vulkan_context.cpp:1746) ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE at: _update_swap_chain (drivers/vulkan/vulkan_context.cpp:1746)

Windows 10, Vulkan, RX 5700XT, latest drivers.

Hannyson commented 1 year ago

I have the same problem with beta 2, I launch my project inside Godot and the screen stays with the Godot screen with the logo,

ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE

in the terminal and

E 0:00:13:0723 swap_buffers: Condition "err" is true. Returning: ERR_CANT_CREATE <C++ Source> drivers/vulkan/vulkan_context.cpp:2133 @ swap_buffers()

in the debugger

MrUnzO commented 1 year ago

Same here with Beta 1 and Beta 2

Vulkan API 1.2.170 - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce RTX 3080 Ti

ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2133) ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2133) ERROR: Vulkan: Did not create swapchain successfully. at: (drivers/vulkan/vulkan_context.cpp:2056) ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2133) ERROR: Vulkan: Did not create swapchain successfully. at: (drivers/vulkan/vulkan_context.cpp:2056) ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2133) ERROR: Vulkan: Did not create swapchain successfully. at: (drivers/vulkan/vulkan_context.cpp:2056) ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2133) ERROR: Vulkan: Did not create swapchain successfully. at: (drivers/vulkan/vulkan_context.cpp:2056) ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2133) ERROR: Vulkan: Did not create swapchain successfully. at: (drivers/vulkan/vulkan_context.cpp:2056) ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2133) ERROR: Vulkan: Did not create swapchain successfully. at: (drivers/vulkan/vulkan_context.cpp:2056) ERROR: Condition "err" is true. Returning: ERR_CANT_CREATE at: swap_buffers (drivers/vulkan/vulkan_context.cpp:2133)

LennDG commented 1 year ago

Can confirm this issue for me as well. Turning off the overlay of MSI afterburner fixes this issue.

Domit011 commented 2 weeks ago

I'm getting the same type of issue when I try run a project, I'm getting this error: drivers/vulkan/rendering_device_driver_vulkan.cpp:2718 - Condition "err != VK_SUCCESS" is true. Returning: ERR_CANT_CREATE