You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the AGI tool, the following validation errors occur, causing a crash.
Logcat
[E] [Validation] Code 0 : [ VUID-VkImportAndroidHardwareBufferInfoANDROID-buffer-01881 ] Object: 0x7e4590d630 (Type = 3) | vkAllocateMemory: The AHardwareBuffer_Desc's format ( 35 ) and/or usage ( 0x1000100 ) are not compatible with Vulkan. The Vulkan spec states: If buffer is not NULL, it must be a valid Android hardware buffer object with AHardwareBuffer_Desc::format and AHardwareBuffer_Desc::usage compatible with Vulkan as described in Android Hardware Buffers. (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-VkImportAndroidHardwareBufferInfoANDROID-buffer-01881)
[E] [Validation] Code 0 : [ UNASSIGNED-CoreValidation-vkBindImageMemory-invalid-requirements ] Object: 0x59 (Type = 10) | vkBindImageMemory2() pBindInfos[0]: Must not call vkGetImageMemoryRequirements on VkImage 0x59[] that will be bound to an external Android hardware buffer.
[E] [Validation] Code 0 : [ VUID-VkImageViewCreateInfo-None-02273 ] Object: 0x59 (Type = 10) | vkCreateImageView(): pCreateInfo->format VK_FORMAT_UNDEFINED with tiling VK_IMAGE_TILING_OPTIMAL has no supported format features on this physical device. The Vulkan spec states: The format features of the resultant image view must contain at least one bit. (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-VkImageViewCreateInfo-None-02273)
libc A Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 22845 (pool-5-thread-1), pid 21980
Environment information:
If tracing on Android:
Bug description
Capture was successful, but Replay failed.
I Made eG8B8R82Plane420Unorm image from memory buffer
similar like this code blocks
https://github.com/zaps166/QmVk/blob/1d7bdad222f33bdd4e3ee7b15bb63ffcfa1d280f/Image.cpp#L570-L581
and then add barrier command to commandBuffer
occurred this problem
When I change yuvimage to normal image then no problem
My program don't have any validation error
Reproduction steps
Steps to reproduce the behavior:
Stacktrace
Please paste a stacktrace here if it's available.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional debugging information
adb logcat -d > logcat-full.txt
) that contains logs since AGI was started.gapic.log
gapis.log
YUV from AHardware buffer also have problems
I checked VK_ANDROID_external_memory_android_hardware_buffer is not supported
Process step
Recommend Similar program for reproduction
The text was updated successfully, but these errors were encountered: