Closed5

Unreal EngineでReceived return code -3 from call to vkCreateInstanceと表示される時

mugwort_rcmugwort_rc

Unreal Engineのテンプレートをビルドして起動した際、以下のメッセージが表示され、起動できないことがある。

Incompatible Vulkan driver found!
Cannot find a compatible Vulkan driver (ICD).
Please look at the Getting Started guide for additional information.
Received return code -3 from call to vkCreateInstance
mugwort_rcmugwort_rc

試行錯誤の過程で、vulkan-sdkをインストール後上記エラーは発生しなくなった。

この時に追加されたパッケージは以下。

以下のパッケージが新たにインストールされます:
  crashdiagnosticlayer dxc glslang-dev glslang-tools libglu1-mesa-dev
  libqt5opengl5-dev libyaml-cpp0.8 lunarg-gfxreconstruct lunarg-via
  lunarg-vkconfig lunarg-vulkan-layers qt5-qmake qt5-qmake-bin qtbase5-dev
  qtbase5-dev-tools shaderc slang spirv-cross spirv-cross-dev spirv-headers
  spirv-reflect spirv-tools vma volk vulkan-extensionlayer vulkan-headers
  vulkan-profiles vulkan-sdk vulkan-utility-libraries vulkan-validationlayers
  vulkancapsviewer
以下のパッケージはアップグレードされます:
  libvulkan-dev libvulkan1 libvulkan1:i386 vulkan-tools
  vulkan-utility-libraries-dev
mugwort_rcmugwort_rc

インストール前の状態のエラーログ(抜粋)。

...
[2024.10.31-11.12.45:787][  0]LogInit: Using SDL_WINDOW_VULKAN
[2024.10.31-11.12.45:787][  0]LogVulkanRHI: Vulkan PSO Precaching = 0, PipelineFileCache = 1
[2024.10.31-11.12.45:787][  0]LogVulkanRHI: Display: Built with Vulkan header version 1.3.250
[2024.10.31-11.12.45:787][  0]LogVulkanRHI: Starting Vulkan Profile check for VP_UE_Vulkan_SM6_RT:
[2024.10.31-11.12.45:794][  0]LogVulkanRHI:    - Checking device support for profile VP_UE_Vulkan_SM6_RT (deviceName=NVIDIA GeForce GTX 1050, driverName=NVIDIA, driverInfo=550.127.05). You may find the details of the capabilities of this device on https://vulkan.gpuinfo.org/
[2024.10.31-11.12.45:794][  0]LogVulkanRHI:    - Unsupported extension: VK_KHR_acceleration_structure
[2024.10.31-11.12.45:794][  0]LogVulkanRHI:    - Unsupported extension: VK_KHR_deferred_host_operations
[2024.10.31-11.12.45:794][  0]LogVulkanRHI:    - Unsupported extension: VK_KHR_ray_query
[2024.10.31-11.12.45:794][  0]LogVulkanRHI:    - Unsupported extension: VK_KHR_ray_tracing_pipeline
[2024.10.31-11.12.45:794][  0]LogVulkanRHI:    - Unsupported feature condition: VkPhysicalDeviceAccelerationStructureFeaturesKHR::accelerationStructure == VK_TRUE
[2024.10.31-11.12.45:794][  0]LogVulkanRHI:    - Unsupported feature condition: VkPhysicalDeviceAccelerationStructureFeaturesKHR::descriptorBindingAccelerationStructureUpdateAfterBind == VK_TRUE
[2024.10.31-11.12.45:794][  0]LogVulkanRHI:    - Unsupported feature condition: VkPhysicalDeviceRayTracingPipelineFeaturesKHR::rayTracingPipeline == VK_TRUE
[2024.10.31-11.12.45:794][  0]LogVulkanRHI:    - Unsupported feature condition: VkPhysicalDeviceRayTracingPipelineFeaturesKHR::rayTraversalPrimitiveCulling == VK_TRUE
[2024.10.31-11.12.45:794][  0]LogVulkanRHI:    - Unsupported feature condition: VkPhysicalDeviceRayQueryFeaturesKHR::rayQuery == VK_TRUE
[2024.10.31-11.12.45:794][  0]LogVulkanRHI: Vulkan Profile check complete.
[2024.10.31-11.12.45:794][  0]LogVulkanRHI: Display: Vulkan RayTracing disabled because of failed profile check.
[2024.10.31-11.12.45:794][  0]LogVulkanRHI: Using API Version 1.3.
[2024.10.31-11.12.45:794][  0]LogVulkanRHI: Display: Found 23 available instance extensions :
[2024.10.31-11.12.45:794][  0]LogVulkanRHI: Display:   - VK_EXT_acquire_drm_display
[2024.10.31-11.12.45:794][  0]LogVulkanRHI: Display:   - VK_EXT_acquire_xlib_display
[2024.10.31-11.12.45:794][  0]LogVulkanRHI: Display:   - VK_EXT_debug_report
[2024.10.31-11.12.45:794][  0]LogVulkanRHI: Display:   + VK_EXT_debug_utils
[2024.10.31-11.12.45:795][  0]LogVulkanRHI: Display:   - VK_EXT_direct_mode_display
[2024.10.31-11.12.45:795][  0]LogVulkanRHI: Display:   - VK_EXT_display_surface_counter
[2024.10.31-11.12.45:795][  0]LogVulkanRHI: Display:   - VK_EXT_surface_maintenance1
[2024.10.31-11.12.45:795][  0]LogVulkanRHI: Display:   + VK_EXT_swapchain_colorspace
[2024.10.31-11.12.45:795][  0]LogVulkanRHI: Display:   - VK_KHR_device_group_creation
[2024.10.31-11.12.45:795][  0]LogVulkanRHI: Display:   - VK_KHR_display
[2024.10.31-11.12.45:795][  0]LogVulkanRHI: Display:   - VK_KHR_external_fence_capabilities
[2024.10.31-11.12.45:795][  0]LogVulkanRHI: Display:   - VK_KHR_external_memory_capabilities
[2024.10.31-11.12.45:795][  0]LogVulkanRHI: Display:   - VK_KHR_external_semaphore_capabilities
[2024.10.31-11.12.45:795][  0]LogVulkanRHI: Display:   - VK_KHR_get_display_properties2
[2024.10.31-11.12.45:795][  0]LogVulkanRHI: Display:   - VK_KHR_get_physical_device_properties2
[2024.10.31-11.12.45:795][  0]LogVulkanRHI: Display:   - VK_KHR_get_surface_capabilities2
[2024.10.31-11.12.45:795][  0]LogVulkanRHI: Display:   - VK_KHR_portability_enumeration
[2024.10.31-11.12.45:795][  0]LogVulkanRHI: Display:   + VK_KHR_surface
[2024.10.31-11.12.45:795][  0]LogVulkanRHI: Display:   - VK_KHR_surface_protected_capabilities
[2024.10.31-11.12.45:795][  0]LogVulkanRHI: Display:   - VK_KHR_wayland_surface
[2024.10.31-11.12.45:795][  0]LogVulkanRHI: Display:   - VK_KHR_xcb_surface
[2024.10.31-11.12.45:795][  0]LogVulkanRHI: Display:   + VK_KHR_xlib_surface
[2024.10.31-11.12.45:795][  0]LogVulkanRHI: Display:   - VK_LUNARG_direct_driver_loading
[2024.10.31-11.12.45:808][  0]LogVulkanRHI: Display: Found 8 available instance layers :
[2024.10.31-11.12.45:808][  0]LogVulkanRHI: Display:   * VK_LAYER_KHRONOS_profiles
[2024.10.31-11.12.45:808][  0]LogVulkanRHI: Display:   * VK_LAYER_KHRONOS_synchronization2
[2024.10.31-11.12.45:808][  0]LogVulkanRHI: Display:   * VK_LAYER_KHRONOS_validation
[2024.10.31-11.12.45:808][  0]LogVulkanRHI: Display:   * VK_LAYER_LUNARG_api_dump
[2024.10.31-11.12.45:808][  0]LogVulkanRHI: Display:   * VK_LAYER_LUNARG_gfxreconstruct
[2024.10.31-11.12.45:808][  0]LogVulkanRHI: Display:   * VK_LAYER_MESA_device_select
[2024.10.31-11.12.45:808][  0]LogVulkanRHI: Display:   * VK_LAYER_NV_optimus
[2024.10.31-11.12.45:808][  0]LogVulkanRHI: Display:   * VK_LAYER_NV_optimus
[2024.10.31-11.12.48:028][  0]LogCore: FUnixPlatformMisc::RequestExit(bForce=true, ReturnCode=1, CallSite=<NoCallSiteInfo>)
[2024.10.31-11.12.48:028][  0]LogCore: FUnixPlatformMisc::RequestExit(1, <NoCallSiteInfo>)
mugwort_rcmugwort_rc

vulkan-sdkインストール後のログ(まだエラーになっているが進展した)。

[2024.10.31-11.20.01:760][  0]LogInit: Using SDL_WINDOW_VULKAN
[2024.10.31-11.20.01:760][  0]LogVulkanRHI: Vulkan PSO Precaching = 0, PipelineFileCache = 1
[2024.10.31-11.20.01:760][  0]LogVulkanRHI: Display: Built with Vulkan header version 1.3.250
[2024.10.31-11.20.01:760][  0]LogVulkanRHI: Starting Vulkan Profile check for VP_UE_Vulkan_SM6_RT:
[2024.10.31-11.20.01:766][  0]LogVulkanRHI:    - Checking device support for profile VP_UE_Vulkan_SM6_RT (deviceName=NVIDIA GeForce GTX 1050, driverName=NVIDIA, driverInfo=550.127.05). You may find the details of the capabilities of this device on https://vulkan.gpuinfo.org/
[2024.10.31-11.20.01:766][  0]LogVulkanRHI:    - Unsupported extension: VK_KHR_acceleration_structure
[2024.10.31-11.20.01:766][  0]LogVulkanRHI:    - Unsupported extension: VK_KHR_deferred_host_operations
[2024.10.31-11.20.01:766][  0]LogVulkanRHI:    - Unsupported extension: VK_KHR_ray_query
[2024.10.31-11.20.01:766][  0]LogVulkanRHI:    - Unsupported extension: VK_KHR_ray_tracing_pipeline
[2024.10.31-11.20.01:766][  0]LogVulkanRHI:    - Unsupported feature condition: VkPhysicalDeviceAccelerationStructureFeaturesKHR::accelerationStructure == VK_TRUE
[2024.10.31-11.20.01:766][  0]LogVulkanRHI:    - Unsupported feature condition: VkPhysicalDeviceAccelerationStructureFeaturesKHR::descriptorBindingAccelerationStructureUpdateAfterBind == VK_TRUE
[2024.10.31-11.20.01:766][  0]LogVulkanRHI:    - Unsupported feature condition: VkPhysicalDeviceRayTracingPipelineFeaturesKHR::rayTracingPipeline == VK_TRUE
[2024.10.31-11.20.01:766][  0]LogVulkanRHI:    - Unsupported feature condition: VkPhysicalDeviceRayTracingPipelineFeaturesKHR::rayTraversalPrimitiveCulling == VK_TRUE
[2024.10.31-11.20.01:767][  0]LogVulkanRHI:    - Unsupported feature condition: VkPhysicalDeviceRayQueryFeaturesKHR::rayQuery == VK_TRUE
[2024.10.31-11.20.01:767][  0]LogVulkanRHI: Vulkan Profile check complete.
[2024.10.31-11.20.01:767][  0]LogVulkanRHI: Display: Vulkan RayTracing disabled because of failed profile check.
[2024.10.31-11.20.01:767][  0]LogVulkanRHI: Using API Version 1.3.
[2024.10.31-11.20.01:767][  0]LogVulkanRHI: Display: Found 23 available instance extensions :
[2024.10.31-11.20.01:767][  0]LogVulkanRHI: Display:   - VK_EXT_acquire_drm_display
[2024.10.31-11.20.01:767][  0]LogVulkanRHI: Display:   - VK_EXT_acquire_xlib_display
[2024.10.31-11.20.01:767][  0]LogVulkanRHI: Display:   - VK_EXT_debug_report
[2024.10.31-11.20.01:767][  0]LogVulkanRHI: Display:   + VK_EXT_debug_utils
[2024.10.31-11.20.01:767][  0]LogVulkanRHI: Display:   - VK_EXT_direct_mode_display
[2024.10.31-11.20.01:767][  0]LogVulkanRHI: Display:   - VK_EXT_display_surface_counter
[2024.10.31-11.20.01:767][  0]LogVulkanRHI: Display:   - VK_EXT_surface_maintenance1
[2024.10.31-11.20.01:767][  0]LogVulkanRHI: Display:   + VK_EXT_swapchain_colorspace
[2024.10.31-11.20.01:767][  0]LogVulkanRHI: Display:   - VK_KHR_device_group_creation
[2024.10.31-11.20.01:767][  0]LogVulkanRHI: Display:   - VK_KHR_display
[2024.10.31-11.20.01:767][  0]LogVulkanRHI: Display:   - VK_KHR_external_fence_capabilities
[2024.10.31-11.20.01:767][  0]LogVulkanRHI: Display:   - VK_KHR_external_memory_capabilities
[2024.10.31-11.20.01:768][  0]LogVulkanRHI: Display:   - VK_KHR_external_semaphore_capabilities
[2024.10.31-11.20.01:768][  0]LogVulkanRHI: Display:   - VK_KHR_get_display_properties2
[2024.10.31-11.20.01:768][  0]LogVulkanRHI: Display:   - VK_KHR_get_physical_device_properties2
[2024.10.31-11.20.01:768][  0]LogVulkanRHI: Display:   - VK_KHR_get_surface_capabilities2
[2024.10.31-11.20.01:768][  0]LogVulkanRHI: Display:   - VK_KHR_portability_enumeration
[2024.10.31-11.20.01:768][  0]LogVulkanRHI: Display:   + VK_KHR_surface
[2024.10.31-11.20.01:768][  0]LogVulkanRHI: Display:   - VK_KHR_surface_protected_capabilities
[2024.10.31-11.20.01:768][  0]LogVulkanRHI: Display:   - VK_KHR_wayland_surface
[2024.10.31-11.20.01:768][  0]LogVulkanRHI: Display:   - VK_KHR_xcb_surface
[2024.10.31-11.20.01:768][  0]LogVulkanRHI: Display:   + VK_KHR_xlib_surface
[2024.10.31-11.20.01:768][  0]LogVulkanRHI: Display:   - VK_LUNARG_direct_driver_loading
[2024.10.31-11.20.01:780][  0]LogVulkanRHI: Display: Found 8 available instance layers :
[2024.10.31-11.20.01:780][  0]LogVulkanRHI: Display:   * VK_LAYER_KHRONOS_profiles
[2024.10.31-11.20.01:780][  0]LogVulkanRHI: Display:   * VK_LAYER_KHRONOS_synchronization2
[2024.10.31-11.20.01:780][  0]LogVulkanRHI: Display:   * VK_LAYER_KHRONOS_validation
[2024.10.31-11.20.01:780][  0]LogVulkanRHI: Display:   * VK_LAYER_LUNARG_api_dump
[2024.10.31-11.20.01:780][  0]LogVulkanRHI: Display:   * VK_LAYER_LUNARG_gfxreconstruct
[2024.10.31-11.20.01:781][  0]LogVulkanRHI: Display:   * VK_LAYER_MESA_device_select
[2024.10.31-11.20.01:781][  0]LogVulkanRHI: Display:   * VK_LAYER_NV_optimus
[2024.10.31-11.20.01:781][  0]LogVulkanRHI: Display:   * VK_LAYER_NV_optimus
[2024.10.31-11.20.01:791][  0]LogRHI: Warning: Failed to find entry point for vkCreateAccelerationStructureKHR
[2024.10.31-11.20.01:791][  0]LogRHI: Warning: Failed to find entry point for vkDestroyAccelerationStructureKHR
[2024.10.31-11.20.01:791][  0]LogRHI: Warning: Failed to find entry point for vkCmdBuildAccelerationStructuresKHR
[2024.10.31-11.20.01:791][  0]LogRHI: Warning: Failed to find entry point for vkGetAccelerationStructureBuildSizesKHR
[2024.10.31-11.20.01:791][  0]LogRHI: Warning: Failed to find entry point for vkGetAccelerationStructureDeviceAddressKHR
[2024.10.31-11.20.01:791][  0]LogRHI: Warning: Failed to find entry point for vkCmdTraceRaysKHR
[2024.10.31-11.20.01:791][  0]LogRHI: Warning: Failed to find entry point for vkCmdTraceRaysIndirectKHR
[2024.10.31-11.20.01:791][  0]LogRHI: Warning: Failed to find entry point for vkCmdTraceRaysIndirect2KHR
[2024.10.31-11.20.01:791][  0]LogRHI: Warning: Failed to find entry point for vkCreateRayTracingPipelinesKHR
[2024.10.31-11.20.01:791][  0]LogRHI: Warning: Failed to find entry point for vkGetRayTracingShaderGroupHandlesKHR
[2024.10.31-11.20.01:791][  0]LogRHI: Warning: Failed to find entry point for vkCmdWriteAccelerationStructuresPropertiesKHR
[2024.10.31-11.20.01:791][  0]LogRHI: Warning: Failed to find entry point for vkCmdCopyAccelerationStructureKHR
[2024.10.31-11.20.01:791][  0]LogVulkanRHI: Warning: Vulkan RHI ray tracing is enabled, but failed to load instance functions.
[2024.10.31-11.20.01:791][  0]LogVulkanRHI: Creating Vulkan Device using VkPhysicalDevice 0x21dc1b50.
[2024.10.31-11.20.01:792][  0]LogVulkanRHI: Display: - DeviceName: NVIDIA GeForce GTX 1050
[2024.10.31-11.20.01:792][  0]LogVulkanRHI: Display: - API=1.3.277 (0x403115) Driver=0x899fc140 VendorId=0x10de
[2024.10.31-11.20.01:792][  0]LogVulkanRHI: Display: - DeviceID=0x1c81 Type=VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
[2024.10.31-11.20.01:792][  0]LogVulkanRHI: Display: - Max Descriptor Sets Bound 32, Timestamps 1
[2024.10.31-11.20.01:792][  0]LogVulkanRHI:      API Version: 1.3.277
[2024.10.31-11.20.01:792][  0]LogRHI: RHI Adapter Info:
[2024.10.31-11.20.01:792][  0]LogRHI:             Name: NVIDIA GeForce GTX 1050
[2024.10.31-11.20.01:792][  0]LogRHI:   Driver Version: 550.127 (internal:550.127, unified:)
[2024.10.31-11.20.01:792][  0]LogRHI:      Driver Date: 01-01-01
mugwort_rcmugwort_rc

「2024.10.31-11.20.01:791」以降でvulkanのインスタンスが作れているっぽい挙動。

おそらくvulkan-sdkの関連パッケージのいずれかがVulkanインスタンス作成に必要だったのではないかと推測。

このスクラップは27日前にクローズされました