Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game freezing and unresponsive; Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST #95092

Closed
SimonCle opened this issue Aug 3, 2024 · 1 comment

Comments

@SimonCle
Copy link

SimonCle commented Aug 3, 2024

Tested versions

  • Reproducible in v4.3.rc2.official [3978628], v4.2.2.stable.official [15073af]

System information

Godot v4.3.rc2 - Windows 10.0.22631 - Vulkan (Forward+) - integrated Intel(R) Iris(R) Plus Graphics (Intel Corporation; 30.0.100.9864) - Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz (8 Threads)

Issue description

When opening the game (using f5), after running for a while, the game freezes, and the error below are printed in the console.
The game does not seem to ever unfreeze, and becomes unresponsive. I've managed to make a small project that reproduces this fairly consistently for me, but the errors appear randomly in my actual project (sometimes, it does not show up at all).

I'm new to reporting stuff like this, so if something is missing, please let me know.

Errors in the console:

ERROR: Condition "err != VK_SUCCESS" is true. Returning: FAILED
   at: command_queue_execute_and_present (drivers/vulkan/rendering_device_driver_vulkan.cpp:2266)
ERROR: Condition "err != VK_SUCCESS" is true. Returning: FAILED
   at: command_queue_execute_and_present (drivers/vulkan/rendering_device_driver_vulkan.cpp:2266)
ERROR: VALIDATION - Message Id Number: -1391585802 | Message Id Name: VUID-vkAcquireNextImageKHR-surface-07783
        Validation Error: [ VUID-vkAcquireNextImageKHR-surface-07783 ] Object 0: handle = 0x297789000000061f, type = VK)
        Objects - 1
                Object[0] - VK_OBJECT_TYPE_SWAPCHAIN_KHR, Handle 2988007510876620319
   at: _debug_messenger_callback (drivers/vulkan/rendering_context_driver_vulkan.cpp:308)
ERROR: VALIDATION - Message Id Number: 1901485743 | Message Id Name: VUID-vkQueueSubmit-pCommandBuffers-00065
        Validation Error: [ VUID-vkQueueSubmit-pCommandBuffers-00065 ] Object 0: handle = 0xfbe5720000000637, type = VK)
        Objects - 3
                Object[0] - VK_OBJECT_TYPE_SEMAPHORE, Handle -295704856197331401
                Object[1] - VK_OBJECT_TYPE_QUEUE, Handle 2451586541048
                Object[2] - VK_OBJECT_TYPE_QUEUE, Handle 2451586541048
   at: _debug_messenger_callback (drivers/vulkan/rendering_context_driver_vulkan.cpp:308)
ERROR: Condition "err != VK_SUCCESS" is true. Returning: FAILED
   at: command_queue_execute_and_present (drivers/vulkan/rendering_device_driver_vulkan.cpp:2266)
ERROR: VALIDATION - Message Id Number: -1391585802 | Message Id Name: VUID-vkAcquireNextImageKHR-surface-07783
        Validation Error: [ VUID-vkAcquireNextImageKHR-surface-07783 ] Object 0: handle = 0x297789000000061f, type = VK)
        Objects - 1
                Object[0] - VK_OBJECT_TYPE_SWAPCHAIN_KHR, Handle 2988007510876620319
   at: _debug_messenger_callback (drivers/vulkan/rendering_context_driver_vulkan.cpp:308)

Info from the console, (in case that's useful):

Godot Engine v4.3.rc2.official.3978628c6 - https://godotengine.org
OpenGL API 3.3.0 - Build 30.0.100.9864 - Compatibility - Using Device: Intel - Intel(R) Iris(R) Plus Graphics
Godot Engine v4.3.rc2.official.3978628c6 - https://godotengine.org
Vulkan 1.2.187 - Forward+ - Using Device #0: Intel - Intel(R) Iris(R) Plus Graphics

Devices:
  #0: Intel Intel(R) Iris(R) Plus Graphics - Supported, Integrated
- Vulkan Variable Rate Shading supported:
  Pipeline fragment shading rate
- Vulkan multiview supported:
  max view count: 16
  max instances: 268435454
- Vulkan subgroup:
  size: 32
  min size: 8
  max size: 32
  stages: STAGE_VERTEX, STAGE_TESSELLATION_CONTROL, STAGE_TESSELLATION_EVALUATION, STAGE_GEOMETRY, STAGE_FRAGMENT, STAGE
  supported ops: FEATURE_BASIC, FEATURE_VOTE, FEATURE_ARITHMETIC, FEATURE_BALLOT, FEATURE_SHUFFLE, FEATURE_SHUFFLE_RELAD
  quad operations in all stages
Vulkan 1.2.187 - Forward+ - Using Device #0: Intel - Intel(R) Iris(R) Plus Graphics

Steps to reproduce

Simply open the project using f5 and let it run for a while. If the error does not show up, I've been able to force it by moving the window a couple of times.

Minimal reproduction project (MRP)

VulkanError_MinRepo.zip

@SimonCle SimonCle changed the title Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST Game freezing and unresponsive; Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST Aug 3, 2024
@Calinou
Copy link
Member

Calinou commented Aug 3, 2024

Thanks for the report! Consolidating in #71929.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants