Skip to content

[Android] Vulkan Initialization Fails on Android 9 Devices #2416

@zyjzxc

Description

@zyjzxc

Unity version

2022.3.62

Unity editor platform

Windows

AVPro Video edition

Trial

AVPro Video version

3.3.4

Device hardware

Samsung Galaxy S8

Which Android OS version are you using?

9

Unity Graphics API

Vulkan

Video API

MediaPlayer

Texture format

BGRA

Audio output

System Direct

Any other Media Player component configuration required to reproduce the issue.

No response

Which output component(s) are you using?

No response

Any other component configuration required to reproduce the issue.

No response

The issue

I want to use Vulkan on Android devices. The latest version 3.3.4 seems to cause Vulkan initialization failure because Android lacks the VK_EXT_queue_family_foreign extension. Will Vulkan no longer be supported on Android 9 devices in future updates?

Media information

No response

Logcat output

12-23 22:01:30.056  2218  2430 D NetworkController.MobileSignalController(0/-2): onSignalStrengthsChanged signalStrength=SignalStrength: 99 99 -120 -160 -120 -160 -1 19 -99 -8 74 2147483647 0 2147483647 99 255 2147483647 0x4000 P gsm|lte use_rsrp_and_rssnr_for_lte_level  [-128, -118, -108, -98] [-115, -105, -95, -85] level=4
12-23 22:01:30.056  2218  2430 D NetworkController.MobileSignalController(0/-2): getMobileIconGroup(): 0
12-23 22:01:30.056  2218  2430 D NetworkController.MobileSignalController(0/-2): updateCMCCSimplifiedMobileIconGroup(): 0
12-23 22:01:30.056  2218  2430 D NetworkController.MobileSignalController(0/-2): updateSimplifiedMobileIconGroup(): 0
12-23 22:01:30.060 20410 20829 D Unity   : [Vulkan init] extensions: count=10
12-23 22:01:30.060 20410 20829 D Unity   : [Vulkan init] extensions: name=VK_EXT_debug_report [enabled=1, external=0]
12-23 22:01:30.060 20410 20829 D Unity   : [Vulkan init] extensions: name=VK_EXT_swapchain_colorspace [enabled=1, external=0]
12-23 22:01:30.060 20410 20829 D Unity   : [Vulkan init] extensions: name=VK_KHR_android_surface [enabled=1, external=0]
12-23 22:01:30.060 20410 20829 D Unity   : [Vulkan init] extensions: name=VK_KHR_device_group_creation [enabled=0, external=0]
12-23 22:01:30.060 20410 20829 D Unity   : [Vulkan init] extensions: name=VK_KHR_external_fence_capabilities [enabled=1, external=0]
12-23 22:01:30.060 20410 20829 D Unity   : [Vulkan init] extensions: name=VK_KHR_external_memory_capabilities [enabled=1, external=0]
12-23 22:01:30.060 20410 20829 D Unity   : [Vulkan init] extensions: name=VK_KHR_external_semaphore_capabilities [enabled=1, external=0]
12-23 22:01:30.061 20410 20829 D Unity   : [Vulkan init] extensions: name=VK_KHR_get_physical_device_properties2 [enabled=1, external=0]
12-23 22:01:30.061 20410 20829 D Unity   : [Vulkan init] extensions: name=VK_KHR_get_surface_capabilities2 [enabled=0, external=0]
12-23 22:01:30.061 20410 20829 D Unity   : [Vulkan init] extensions: name=VK_KHR_surface [enabled=1, external=0]
12-23 22:01:30.061 20410 20829 I AVProVideo: 馃挰锔?(VulkanAPI.cpp:261) vk::CreateInstanceHook - vulkan version: 1.1.0
12-23 22:01:30.061 20410 20829 W AVProVideo: 鈿狅笍 (VulkanAPI.cpp:347) vk::CreateInstanceHook - desired extension 'VK_EXT_debug_utils' is not available
12-23 22:01:30.063 20410 20829 D vndksupport: Loading /vendor/lib64/hw/gralloc.msm8998.so from current namespace instead of sphal namespace.
12-23 22:01:30.065 20410 20829 I Adreno  : QUALCOMM build          : b8d3e67, Id336c887b9
12-23 22:01:30.065 20410 20829 I Adreno  : Build Date              : 09/23/19
12-23 22:01:30.065 20410 20829 I Adreno  : Shader Compiler Version : EV031.25.03.01
12-23 22:01:30.065 20410 20829 I Adreno  : Local Branch            : 
12-23 22:01:30.065 20410 20829 I Adreno  : Remote Branch           : refs/tags/AU_LINUX_ANDROID_LA.UM.7.4.R1.09.00.00.453.036
12-23 22:01:30.065 20410 20829 I Adreno  : Remote Branch           : NONE
12-23 22:01:30.065 20410 20829 I Adreno  : Reconstruct Branch      : NOTHING
12-23 22:01:30.065 20410 20829 I Adreno  : Build Config                     : S L 6.0.7 AArch64
12-23 22:01:30.066 20410 20829 D vndksupport: Loading /vendor/lib64/hw/gralloc.msm8998.so from current namespace instead of sphal namespace.
12-23 22:01:30.069 20410 20829 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
12-23 22:01:30.069 20410 20829 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
12-23 22:01:30.069 20410 20829 E AVProVideo: 鉂?(VulkanAPI.cpp:191) vk::IsPhysicalDeviceSuitable - required extension 'VK_EXT_queue_family_foreign' is not available
12-23 22:01:30.069 20410 20829 E AVProVideo: 鉂?(VulkanAPI.cpp:198) vk::IsPhysicalDeviceSuitable - not all required extensions are available, unable to create device
12-23 22:01:30.069 20410 20829 D Unity   : Vulkan detection: 0
12-23 22:01:30.069 20410 20829 I Adreno  : QUALCOMM build                   : b8d3e67, Id336c887b9
12-23 22:01:30.069 20410 20829 I Adreno  : Build Date                       : 09/23/19
12-23 22:01:30.069 20410 20829 I Adreno  : OpenGL ES Shader Compiler Version: EV031.25.03.01
12-23 22:01:30.069 20410 20829 I Adreno  : Local Branch                     : 
12-23 22:01:30.069 20410 20829 I Adreno  : Remote Branch                    : refs/tags/AU_LINUX_ANDROID_LA.UM.7.4.R1.09.00.00.453.036
12-23 22:01:30.069 20410 20829 I Adreno  : Remote Branch                    : NONE
12-23 22:01:30.069 20410 20829 I Adreno  : Reconstruct Branch               : NOTHING
12-23 22:01:30.069 20410 20829 I Adreno  : Build Config                     : S L 6.0.7 AArch64

Metadata

Metadata

Assignees

Labels

triageNeeds triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions