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
Activity crashes with VkError(ERROR_LAYER_NOT_PRESENT)
Note: this is a Vulkan app written in Rust, using the ash bindings. It's entirely possible I'm doing something wrong. I have been able to get validation output, using the steps outlined in Vulkan validation layers on Android. I'm also able to capture traces from the spinning cube demo bundled with AGI.
Looking at the instance creation code, I'm not doing anything particularly funny, or different from the sample code here. I get the same error whether I ask for the VK_LAYER_KHRONOS_validation layer or not.
Stacktrace
04-09 20:32:12.047 31036 31062 D vulkan : searching for layers in '/data/user/0/rust.example.android'
04-09 20:32:12.047 31036 31061 I RustStdoutStderr: window = 0xb40000766d589020, 1080x2280
04-09 20:32:12.047 31036 31062 D vulkan : searching for layers in '/vendor/app/gpu_profiling_vulkan_layer/gpu_profiling_vulkan_layer.apk!/lib/arm64-v8a'
04-09 20:32:12.049 31036 31062 D vulkan : added global layer 'VkRenderStagesProducer' from library '/vendor/app/gpu_profiling_vulkan_layer/gpu_profiling_vulkan_layer.apk!/lib/arm64-v8a/libVkLayer_q3dtools_so.so'
04-09 20:32:12.049 31036 31062 D vulkan : searching for layers in '/data/app/~~u9OMoTMhBKnGy-2GL86-6g==/rust.example.android-08PnddxEwwV-EOhACNrUyw==/lib/arm64'
04-09 20:32:12.054 31007 31009 I cmd : oneway function results will be dropped but finished with status OK and parcel size 4
04-09 20:32:12.054 31036 31062 D vulkan : added global layer 'VK_LAYER_KHRONOS_validation' from library '/data/app/~~u9OMoTMhBKnGy-2GL86-6g==/rust.example.android-08PnddxEwwV-EOhACNrUyw==/lib/arm64/libVkLayer_khronos_validation.so'
04-09 20:32:12.055 1554 1579 I chatty : uid=1000(system) android.bg expire 1 line
04-09 20:32:12.056 31036 31062 D vulkan : searching for layers in '/data/app/~~u9OMoTMhBKnGy-2GL86-6g==/rust.example.android-08PnddxEwwV-EOhACNrUyw==/base.apk!/lib/arm64-v8a'
04-09 20:32:12.057 31036 31061 I RustStdoutStderr: layer: LayerProperties { layer_name: "VkRenderStagesProducer", spec_version: 4194304, implementation_version: 8192, description: "Render Stages Producer" }
04-09 20:32:12.057 31036 31061 I RustStdoutStderr: layer: LayerProperties { layer_name: "VK_LAYER_KHRONOS_validation", spec_version: 4194425, implementation_version: 1, description: "LunarG validation Layer" }
04-09 20:32:12.057 31036 31061 I RustStdoutStderr: # layers = 1
04-09 20:32:12.057 31036 31061 I RustStdoutStderr: thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: VkError(ERROR_LAYER_NOT_PRESENT)', piet-gpu\bin/android.rs:22:15
To reproduce, you don't call cargo-apk directly, but use cargo: so "cargo apk run --example android". It does also need to be in the piet-gpu subdirectory of the repo for that to work.
Environment information:
If tracing on Android:
Bug description
When creating a Vulkan instance when started from AGI, the
vkCreateInstance
call fails withVK_ERROR_LAYER_NOT_PRESENT
.Reproduction steps
Steps to reproduce the behavior:
cargo apk run --example android
.VkError(ERROR_LAYER_NOT_PRESENT)
Note: this is a Vulkan app written in Rust, using the ash bindings. It's entirely possible I'm doing something wrong. I have been able to get validation output, using the steps outlined in Vulkan validation layers on Android. I'm also able to capture traces from the spinning cube demo bundled with AGI.
Looking at the instance creation code, I'm not doing anything particularly funny, or different from the sample code here. I get the same error whether I ask for the
VK_LAYER_KHRONOS_validation
layer or not.Stacktrace
Additional debugging information
gapic.log
gapis.log
logcat-full2.txt
The text was updated successfully, but these errors were encountered: