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

Vulkan memory alloc makes godot 4 fail to start on hybrid GPU setup (AMD integrated/NVIDIA dedicated) #57396

Closed
svelezsaffon opened this issue Jan 29, 2022 · 8 comments

Comments

@svelezsaffon
Copy link

svelezsaffon commented Jan 29, 2022

Godot version

4.0-alpha1

System information

Microsoft Windows 11 Home x64-based PC Processor AMD Ryzen 9 4900HS with Radeon Graphics, 3000 Mhz, 8 Core(s), 16 Logical Processor(s) Installed Physical Memory (RAM) 16.0 GB NVIDIA GeForce RTX 2060 with Max-Q Design

Issue description

When starting 4.0-alpha1.exe file, the following window appears.

image

Steps to reproduce

  1. Download godot 4 alpha 1, from https://downloads.tuxfamily.org/godotengine/4.0/alpha1/
  2. Unpack the .zip file
  3. Double click the .exe file

Minimal reproduction project

No minimal reproduction project since the issue happens when starting godot.
No response

@svelezsaffon svelezsaffon changed the title Vulkan memory check makes godot 4 fail to start Vulkan memory alloc makes godot 4 fail to start Jan 29, 2022
@Chaosus Chaosus added this to the 4.0 milestone Jan 29, 2022
@Calinou
Copy link
Member

Calinou commented Jan 29, 2022

@svelezsaffon Did you force Godot to run on your dedicated GPU? Try right-clicking the Godot executable and use the Run with graphics processor option to try both GPUs available.

@Calinou Calinou changed the title Vulkan memory alloc makes godot 4 fail to start Vulkan memory alloc makes godot 4 fail to start on hybrid GPU setup (AMD integrated/NVIDIA dedicated) Jan 29, 2022
@svelezsaffon
Copy link
Author

svelezsaffon commented Jan 29, 2022

@Calinou thanks for your response, apologies for not giving more info about that. But I am not sure how to force it on dedicated GPU, unless my computer is forcing it without me knowing. I am also not seeing the option you mention.

Let me try dig a bit more

image

@svelezsaffon
Copy link
Author

svelezsaffon commented Jan 29, 2022

@Calinou after digging a bit more, I changed the NVidia settings to autos elect and use both GPUs, and issue persisted

image

Then I tried to force use it NVIDIA gpus, and the issue persisted.
image

Then I tried to use the integrated GPU and the issue persisted.
image

@svelezsaffon
Copy link
Author

svelezsaffon commented Jan 29, 2022

If I ran the .cmd file that comes inside the .zip file, the following error is displayed on the console

Godot Engine v4.0.alpha1.official.31a7ddbf8 - 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 224900496
     at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:154)
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 224900496
   at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:157)
ERROR: GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
        setupLoaderTrampPhysDevs:  Failed during dispatch call of 'vkEnumeratePhysicalDevices' to lower layers or loader to get count.
        Objects - 1
                Object[0] - VK_OBJECT_TYPE_INSTANCE, Handle 224900496
   at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:157)
ERROR: vkEnumeratePhysicalDevices reported zero accessible devices.

Do you have a compatible Vulkan installable client driver (ICD) installed?
vkEnumeratePhysicalDevices Failure
   at: (drivers/vulkan/vulkan_context.cpp:780)
ERROR: Condition "err != OK" is true. Returning: ERR_CANT_CREATE
   at: _window_create (drivers/vulkan/vulkan_context.cpp:1300)

@Calinou
Copy link
Member

Calinou commented Jan 29, 2022

If I ran the .cmd file that comes inside the .zip file, the following error is displayed on the console

The OBS messages can be ignored as per #56198, but it seems that Godot fails to find any GPU that supports Vulkan on your system. Are your graphics drivers fully up-to-date from AMD and NVIDIA (not your laptop OEM or Windows Update)?

@svelezsaffon
Copy link
Author

@Calinou NVIDIA GPU is on the latest driver
image

@svelezsaffon
Copy link
Author

@Calinou I just updated AMD graphics drivers and godot 4 ran perfectly.

image

@svelezsaffon
Copy link
Author

@Calinou i forgot to thank you for taking the time on this!

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

3 participants