Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Validation crash at CreateInstance when running with libGpuLayers layer

Đang mở
#166 7 bình luận 0 reaction 1 người được giao Xem trên GitHub

@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:

  1. Clone Vulkan-Samples project. Configure for Android, build and run the hello_triangle sample. Make sure validation layers are enabled (default, but you can verify on logcat). Make sure the hello_triangle sample runs correctly.
  2. Clone libGpuLayers and build the layer_example using the shell script.
  3. Run the injection script: lgl_android_install.py --layer layer_example
  4. Launch the app and open the hello_triangle project.

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ARM-software/libGPULayers

Tất cả issue của ARM-software/libGPULayers

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.