[den@den-pc Debug]$ ./amber ~/Downloads/return-in-loop-in-function.amber > debug.txt [ERROR] validation layer (Validation): [ VUID-vkDestroyBuffer-buffer-00922 ] Object: 0xf (Type = 9) | Cannot free buffer 0xf that is in use by a command buffer. The Vulkan spec states: All submitted commands that refer to buffer, either directly or via a VkBufferView, must have completed execution (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkDestroyBuffer-buffer-00922) [ERROR] validation layer (Validation): [ VUID-vkDestroyRenderPass-renderPass-00873 ] Object: 0x6 (Type = 18) | Cannot call vkDestroyRenderPass on RenderPass 0x6 that is currently in use by a command buffer. The Vulkan spec states: All submitted commands that refer to renderPass must have completed execution (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkDestroyRenderPass-renderPass-00873) [ERROR] validation layer (Validation): [ VUID-vkDestroyFramebuffer-framebuffer-00892 ] Object: 0xc (Type = 24) | Cannot call vkDestroyFramebuffer on Framebuffer 0xc that is currently in use by a command buffer. The Vulkan spec states: All submitted commands that refer to framebuffer must have completed execution (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkDestroyFramebuffer-framebuffer-00892) [ERROR] validation layer (Validation): [ VUID-vkDestroyImageView-imageView-01026 ] Object: 0x9 (Type = 14) | Cannot call vkDestroyImageView on ImageView 0x9 that is currently in use by a command buffer. The Vulkan spec states: All submitted commands that refer to imageView must have completed execution (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkDestroyImageView-imageView-01026) [ERROR] validation layer (Validation): [ VUID-vkDestroyImage-image-01000 ] Object: 0x7 (Type = 10) | Cannot call vkDestroyImage on Image 0x7 that is currently in use by a command buffer. The Vulkan spec states: All submitted commands that refer to image, either directly or via a VkImageView, must have completed execution (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkDestroyImage-image-01000) [ERROR] validation layer (Validation): [ VUID-vkDestroyBuffer-buffer-00922 ] Object: 0xa (Type = 9) | Cannot free buffer 0xa that is in use by a command buffer. The Vulkan spec states: All submitted commands that refer to buffer, either directly or via a VkBufferView, must have completed execution (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkDestroyBuffer-buffer-00922) [ERROR] validation layer (Validation): [ VUID-vkDestroyFence-fence-01120 ] Object: 0x5 (Type = 7) | Fence 0x5 is in use. The Vulkan spec states: All queue submission commands that refer to fence must have completed execution (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkDestroyFence-fence-01120) [ERROR] validation layer (Validation): [ VUID-vkFreeCommandBuffers-pCommandBuffers-00047 ] Object: 0x55b159c9b3f0 (Type = 6) | Attempt to free command buffer (0x55b159c9b3f0) which is in use. The Vulkan spec states: All elements of pCommandBuffers must not be in the pending state (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkFreeCommandBuffers-pCommandBuffers-00047) /home/den/Downloads/return-in-loop-in-function.amber: Vulkan::Calling vkWaitForFences Timeout [ERROR] validation layer (Validation): [ VUID-vkDestroyDevice-device-00378 ] Object: 0xd (Type = 17) | OBJ ERROR : For device 0x55b159c8aa20, PipelineLayout object 0xd has not been destroyed. The Vulkan spec states: All child objects created on device must have been destroyed prior to destroying device (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkDestroyDevice-device-00378) [ERROR] validation layer (Validation): [ VUID-vkDestroyDevice-device-00378 ] Object: 0xe (Type = 19) | OBJ ERROR : For device 0x55b159c8aa20, Pipeline object 0xe has not been destroyed. The Vulkan spec states: All child objects created on device must have been destroyed prior to destroying device (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkDestroyDevice-device-00378)