Validation crash at CreateInstance when running with libGpuLayers layer
@solidpixel đang làm issue này rồi.
Từ ngày 3/3/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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.
- Ngôn ngữ chính
- C++
- Star
- 40
- Fork
- 12
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ARM-software/libGPULayers
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
ARM-software/libGPULayers#184 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
ARM-software/libGPULayers#173 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
ARM-software/libGPULayers#170 ·
-
enhancement
ARM-software/libGPULayers#167 · 2 bình luận · 1 người được giao ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
ARM-software/libGPULayers#154 ·
Tất cả issue của ARM-software/libGPULayers
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
google/libultrahdr#485 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
godotengine/godot#123776 ·
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 60/100
-
good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
ros2/common_interfaces#344 ·