Validation crash at CreateInstance when running with libGpuLayers layer
@solidpixel ya está trabajando en esto.
Desde el 3/3/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
When the Khronos validation layer is enabled, layers generated by libGpuLayers crash. I first got this with a custom layer, but layer_example also reproduces it:
Repro instructions:
- Clone Vulkan-Samples project. Configure for Android, build and run the
hello_trianglesample. Make sure validation layers are enabled (default, but you can verify on logcat). Make sure thehello_trianglesample runs correctly. - Clone
libGpuLayersand build thelayer_exampleusing the shell script. - Run the injection script:
lgl_android_install.py --layer layer_example - Launch the app and open the
hello_triangleproject.
Expected result:
- Layer works without errors.
Actual result:
- Layer (and the app) crashes.
Debugging:
If, instead of step (4) above, you launch the Vulkan-Samples app from Android Studio with the C++ debugger attached, it gives you the full stack trace:
(lldb) bt
* thread #27, name = 'Thread-2', stop reason = breakpoint 4.1
* frame #0: 0x0000006d2270c8b0 libart.so`art_sigsegv_fault
frame #1: 0x0000006d2270c200 libart.so`art::FaultManager::HandleSigsegvFault(int, siginfo*, void*) - 18446743604980301311
frame #2: 0x0000006fccbf4a34 libsigchain.so`art::SignalChain::Handler(int, siginfo*, void*) + 372
frame #3: 0x0000006fef641860 [vdso]`__kernel_rt_sigreturn
frame #4: 0x0000006bfd58a534 libVkLayer_khronos_validation.so`___lldb_unnamed_symbol2918 + 44
frame #5: 0x0000006bfd580650 libVkLayer_khronos_validation.so`___lldb_unnamed_symbol2857 + 248
frame #6: 0x0000006c8c6b7db8 libVkLayerExample.so`___lldb_unnamed_symbol1057 + 152
frame #7: 0x0000006fed1216dc libvulkan.so`vulkan::api::CreateInstance(VkInstanceCreateInfo const*, VkAllocationCallbacks const*, VkInstance_T**) - 18446743592990796067
frame #8: 0x0000006c88585570 libvulkan_samples.so`HelloTriangle::init_instance(this=0xb400006f266f2690) at hello_triangle.cpp:218:2
frame #9: 0x0000006c8858b438 libvulkan_samples.so`HelloTriangle::prepare(this=0xb400006f266f2690, options=0x0000006bffffad00) at hello_triangle.cpp:1089:2
frame #10: 0x0000006c8801b62c libvulkan_samples.so`vkb::Platform::start_app(this=0x0000006bffffb0b0) at platform.cpp:480:19
frame #11: 0x0000006c8801ae14 libvulkan_samples.so`vkb::Platform::main_loop_frame(this=0x0000006bffffb0b0) at platform.cpp:198:9
frame #12: 0x0000006c8801bf3c libvulkan_samples.so`vkb::Platform::main_loop(this=0x0000006bffffb0b0) at platform.cpp:255:15
frame #13: 0x0000006c8800fa14 libvulkan_samples.so`platform_main(context=0xb400006d766f1ea0) at main.cpp:67:19
frame #14: 0x0000006c8800f928 libvulkan_samples.so`android_main(state=0xb400006eb66e1950) at main.cpp:43:1
frame #15: 0x0000006c88bbfae4 libvulkan_samples.so`android_app_entry(param=0xb400006eb66e1950) at android_native_app_glue.c:236:5
frame #16: 0x0000006fe2f52c90 libc.so`__pthread_start(void*) (.__uniq.67847048707805468364044055584648682506) + 240
frame #17: 0x0000006fe2f449c4 libc.so`__start_thread + 68
Setup:
- Android Device: Various devices, including a Pixel 7a that has an ARM-Mali GPU.
- libGpuLayers from Feb 23 at 2413332
- Vulkan-Samples from Feb 23 at cd6db31
I checked if this is another example of multiple-layers interaction mentioned in #157 by going back to Jan'25 and re-doing the steps above. I still got the validation layer crash with layer_example.
- Lenguaje dominante
- C++
- Estrellas
- 40
- Forks
- 12
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ARM-software/libGPULayers
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
ARM-software/libGPULayers#184 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
ARM-software/libGPULayers#173 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
ARM-software/libGPULayers#170 ·
-
enhancement
ARM-software/libGPULayers#167 · 2 comentarios · 1 asignado ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
ARM-software/libGPULayers#154 ·
Todos los issues de ARM-software/libGPULayers
Issues similares
-
ai_reviewed
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ydb-platform/ydb#53869 · 3 comentarios ·
-
bug cert blocker needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
project-chip/connectedhomeip#74373 ·
-
[request] tracy/0.14.1 Abiertoupstream update
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
conan-io/conan-center-index#31035 ·
-
Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
documentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
vllm-project/vllm-ascend#17329 ·