Closed tobydjones closed 2 months ago
When I ran in Godot 4.2, I got the popup "Unable to initialise Vulkan video driver". At the bottom of that, it recommended rebooting if I'd updated by drivers. Well, I hadn't, but I rebooted anyway, and now everything works again (?) But that still leaves the problem that I had that if Vulkan can't be initialised, in 4.3, it generates the same error indefinitely.
I have this exact issue in 4.3 with RX 6400. Everything is fine until I set anti-aliasing to 8x and enlarge the window to 4K. The game is practically unplayable in 4.3 with higher settings. The game crashes when shadows are enabled and AA is changed from 4x to 2x.
It crashes the game after a while with these errors:
ERROR: vmaCreateImage failed with error -2.
at: (drivers/vulkan/rendering_device_driver_vulkan.cpp:1518)
ERROR: Condition "!texture.driver_id" is true. Returning: RID()
at: texture_create (servers/rendering/rendering_device.cpp:781)
ERROR: Attempted to name invalid ID: 0
at: set_resource_name (servers/rendering/rendering_device.cpp:5001)
ERROR: Condition "p_named_texture.texture.is_null()" is true.
at: update_sizes (servers/rendering/renderer_rd/storage_rd/render_scene_buffers_rd.cpp:84)
ERROR: vmaCreateImage failed with error -2.
at: (drivers/vulkan/rendering_device_driver_vulkan.cpp:1518)
ERROR: Condition "!texture.driver_id" is true. Returning: RID()
at: texture_create (servers/rendering/rendering_device.cpp:781)
ERROR: Attempted to name invalid ID: 0
at: set_resource_name (servers/rendering/rendering_device.cpp:5001)
ERROR: Condition "p_named_texture.texture.is_null()" is true.
at: update_sizes (servers/rendering/renderer_rd/storage_rd/render_scene_buffers_rd.cpp:84)
ERROR: All attachments unused.
at: (servers/rendering/rendering_device.cpp:2316)
ERROR: Condition "rid.is_null()" is true. Returning: rid
at: _allocate_from_data (servers/rendering/renderer_rd/framebuffer_cache_rd.h:171)
ERROR: vmaCreateImage failed with error -2.
at: (drivers/vulkan/rendering_device_driver_vulkan.cpp:1518)
ERROR: Condition "!texture.driver_id" is true. Returning: RID()
at: texture_create (servers/rendering/rendering_device.cpp:781)
ERROR: Attempted to name invalid ID: 0
at: set_resource_name (servers/rendering/rendering_device.cpp:5001)
ERROR: Condition "p_named_texture.texture.is_null()" is true.
at: update_sizes (servers/rendering/renderer_rd/storage_rd/render_scene_buffers_rd.cpp:84)
ERROR: Parameter "src_tex" is null.
at: texture_clear (servers/rendering/rendering_device.cpp:1855)
ERROR: Condition "named_texture.texture.is_null()" is true. Returning: RID()
at: get_texture_slice_view (servers/rendering/renderer_rd/storage_rd/render_scene_buffers_rd.cpp:440)
ERROR: Texture (binding: 0, index 0) is not a valid texture.
at: (servers/rendering/rendering_device.cpp:2875)
ERROR: Condition "rid.is_null()" is true. Returning: rid
at: _allocate_from_uniforms (servers/rendering/renderer_rd/uniform_set_cache_rd.h:130)
ERROR: Parameter "uniform_set" is null.
at: compute_list_bind_uniform_set (servers/rendering/rendering_device.cpp:4392)
I have this exact issue in 4.3 with RX 6400. Everything is fine until I set anti-aliasing to 8x and enlarge the window to 4K. The game is practically unplayable in 4.3 with higher settings. The game crashes when shadows are enabled and AA is changed from 4x to 2x.
It crashes the game after a while with these errors:
ERROR: vmaCreateImage failed with error -2. at: (drivers/vulkan/rendering_device_driver_vulkan.cpp:1518) ERROR: Condition "!texture.driver_id" is true. Returning: RID() at: texture_create (servers/rendering/rendering_device.cpp:781) ERROR: Attempted to name invalid ID: 0 at: set_resource_name (servers/rendering/rendering_device.cpp:5001) ERROR: Condition "p_named_texture.texture.is_null()" is true. at: update_sizes (servers/rendering/renderer_rd/storage_rd/render_scene_buffers_rd.cpp:84) ERROR: vmaCreateImage failed with error -2. at: (drivers/vulkan/rendering_device_driver_vulkan.cpp:1518) ERROR: Condition "!texture.driver_id" is true. Returning: RID() at: texture_create (servers/rendering/rendering_device.cpp:781) ERROR: Attempted to name invalid ID: 0 at: set_resource_name (servers/rendering/rendering_device.cpp:5001) ERROR: Condition "p_named_texture.texture.is_null()" is true. at: update_sizes (servers/rendering/renderer_rd/storage_rd/render_scene_buffers_rd.cpp:84) ERROR: All attachments unused. at: (servers/rendering/rendering_device.cpp:2316) ERROR: Condition "rid.is_null()" is true. Returning: rid at: _allocate_from_data (servers/rendering/renderer_rd/framebuffer_cache_rd.h:171) ERROR: vmaCreateImage failed with error -2. at: (drivers/vulkan/rendering_device_driver_vulkan.cpp:1518) ERROR: Condition "!texture.driver_id" is true. Returning: RID() at: texture_create (servers/rendering/rendering_device.cpp:781) ERROR: Attempted to name invalid ID: 0 at: set_resource_name (servers/rendering/rendering_device.cpp:5001) ERROR: Condition "p_named_texture.texture.is_null()" is true. at: update_sizes (servers/rendering/renderer_rd/storage_rd/render_scene_buffers_rd.cpp:84) ERROR: Parameter "src_tex" is null. at: texture_clear (servers/rendering/rendering_device.cpp:1855) ERROR: Condition "named_texture.texture.is_null()" is true. Returning: RID() at: get_texture_slice_view (servers/rendering/renderer_rd/storage_rd/render_scene_buffers_rd.cpp:440) ERROR: Texture (binding: 0, index 0) is not a valid texture. at: (servers/rendering/rendering_device.cpp:2875) ERROR: Condition "rid.is_null()" is true. Returning: rid at: _allocate_from_uniforms (servers/rendering/renderer_rd/uniform_set_cache_rd.h:130) ERROR: Parameter "uniform_set" is null. at: compute_list_bind_uniform_set (servers/rendering/rendering_device.cpp:4392)
I don't think this is the same issue. For me the editor wouldn't start, and I just had one error repeated indefinitely.
I have this exact issue in 4.3 with RX 6400. Everything is fine until I set anti-aliasing to 8x and enlarge the window to 4K. The game is practically unplayable in 4.3 with higher settings. The game crashes when shadows are enabled and AA is changed from 4x to 2x. It crashes the game after a while with these errors:
ERROR: vmaCreateImage failed with error -2. at: (drivers/vulkan/rendering_device_driver_vulkan.cpp:1518) ERROR: Condition "!texture.driver_id" is true. Returning: RID() at: texture_create (servers/rendering/rendering_device.cpp:781) ERROR: Attempted to name invalid ID: 0 at: set_resource_name (servers/rendering/rendering_device.cpp:5001) ERROR: Condition "p_named_texture.texture.is_null()" is true. at: update_sizes (servers/rendering/renderer_rd/storage_rd/render_scene_buffers_rd.cpp:84) ERROR: vmaCreateImage failed with error -2. at: (drivers/vulkan/rendering_device_driver_vulkan.cpp:1518) ERROR: Condition "!texture.driver_id" is true. Returning: RID() at: texture_create (servers/rendering/rendering_device.cpp:781) ERROR: Attempted to name invalid ID: 0 at: set_resource_name (servers/rendering/rendering_device.cpp:5001) ERROR: Condition "p_named_texture.texture.is_null()" is true. at: update_sizes (servers/rendering/renderer_rd/storage_rd/render_scene_buffers_rd.cpp:84) ERROR: All attachments unused. at: (servers/rendering/rendering_device.cpp:2316) ERROR: Condition "rid.is_null()" is true. Returning: rid at: _allocate_from_data (servers/rendering/renderer_rd/framebuffer_cache_rd.h:171) ERROR: vmaCreateImage failed with error -2. at: (drivers/vulkan/rendering_device_driver_vulkan.cpp:1518) ERROR: Condition "!texture.driver_id" is true. Returning: RID() at: texture_create (servers/rendering/rendering_device.cpp:781) ERROR: Attempted to name invalid ID: 0 at: set_resource_name (servers/rendering/rendering_device.cpp:5001) ERROR: Condition "p_named_texture.texture.is_null()" is true. at: update_sizes (servers/rendering/renderer_rd/storage_rd/render_scene_buffers_rd.cpp:84) ERROR: Parameter "src_tex" is null. at: texture_clear (servers/rendering/rendering_device.cpp:1855) ERROR: Condition "named_texture.texture.is_null()" is true. Returning: RID() at: get_texture_slice_view (servers/rendering/renderer_rd/storage_rd/render_scene_buffers_rd.cpp:440) ERROR: Texture (binding: 0, index 0) is not a valid texture. at: (servers/rendering/rendering_device.cpp:2875) ERROR: Condition "rid.is_null()" is true. Returning: rid at: _allocate_from_uniforms (servers/rendering/renderer_rd/uniform_set_cache_rd.h:130) ERROR: Parameter "uniform_set" is null. at: compute_list_bind_uniform_set (servers/rendering/rendering_device.cpp:4392)
I don't think this is the same issue. For me the editor wouldn't start, and I just had one error repeated indefinitely.
well, in that case this is a broader issue than just the editor. When I run the game (the executable, without the editor), it points to the exact same line as in your case:
ERROR: Condition "err != VK_SUCCESS" is true. Returning: ERR_CANT_CREATE
at: swap_chain_resize (drivers/vulkan/rendering_device_driver_vulkan.cpp:2718)
@tropical32 ERR_CANT_CREATE can happen in a lots of places due to lots of causes
Thanks for the report! Consolidating in https://github.com/godotengine/godot-proposals/issues/8006.
Haswell IGPs do not have Vulkan support, so you must use the Compatibility rendering method. The Web export always uses Compatibility anyway, so it's recommended to also use it on desktop so your project looks as close as possible to the web export while in the editor.
In the meantime, you can force an existing project to use the Compatibility rendering method by adding this at the bottom of its project.godot
file:
[rendering]
renderer/rendering_method="gl_compatibility"
renderer/rendering_method.mobile="gl_compatibility"
(If a rendering
section already exists in project.godot
, Godot will merge it automatically when the project is saved.)
Tested versions
In 4.1 and 4.2 I get an error popup, then the Godot engine stops responding In 4.3, no error popup, the engine doesn't stop responding, it just doesn't load (edit: the editor doesn't load, I just see a blank grey screen)
System information
Godot v4.3.stable - Windows 10.0.19045 - GLES3 (Compatibility) - AMD Radeon RX 6600 (Advanced Micro Devices, Inc.; 31.0.24033.1003) - Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (8 Threads)
Issue description
I tried to adapt someone's RTS demo to use wss, but somehow I made Godot stop working. When I try to load this project, the Godot engine doesn't load (edit: the editor doesn't load, I just see a blank grey screen). In the console I get this error:
Steps to reproduce
Unpack the MRP, start Godot 4.3 using console, and try to load project
Minimal reproduction project (MRP)
Godot-webrtc-demos-main (4.3) - supposed to have WebRTCMultiplayer but error.zip