Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix linux 32 bit unknown function error handling #1036

Merged
merged 1 commit into from
Oct 25, 2022

Conversation

charles-lunarg
Copy link
Collaborator

The issue was that passing a string to loader_log wouldn't work, likely due to relocation issues. Workaround is to create a bespoke function that contained the format string embedded in it.

Also rename the error to note that its a function which isn't supported, not an extension.

@sl1pkn07 - can you confirm this solves your issue? From what I can tell, the 32 bit unknown function handling worked except in the error handling path. This resolves that last issue.

Fixes #877

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 1556 running.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 1556 passed.

@sl1pkn07
Copy link

Hi

no, now get a fail build the ASM code

https://gist.github.com/sl1pkn07/6923bf64f1cdf663c7258f36f77907b2

PS: the environmet ASFLAGS is gone. no one refenced in the loader/CMakeLists.txt, but is still in the BUILD.md

greetints

@charles-lunarg
Copy link
Collaborator Author

charles-lunarg commented Oct 19, 2022

unknown_ext_chain_gas_x86.S:135: Error: too many memory references for `mov'

Line 135: PhysDevExtTramp 0, the PhysDevExtTramp macro was unchanged in this PR. This is mighty confusing. Was it broken before this PR?

no one refenced in the loader/CMakeLists.txt, but is still in the BUILD.md

Should it be? My understanding from those docs is that ASFLAGS is something the user must configure to set 32 bit builds. The CMakelists doesn't need to know about the flags for 32 bit builds to work.

@sl1pkn07
Copy link

Hi

ASFLAGS is was used by this commit c34b5ae

i'm not sure since when, but now that part of code is gone. I have not worried about it before because working, but now fails. (seems now have/use other method to get the work)

also is referenced on this #225 when I have a ASM build issues. but now, with the flag gone, i'm lost for get what happen now

for reference. my last sucess build dated on 5 sep, so is this commit fdfdef6

i'm goin tomorrow do more test

greetings

@sl1pkn07
Copy link

seems clang is more descriptive

<instantiation>:4:9: error: register %rax is only available in 64-bit mode
    mov rax, [rdi]
        ^~~
/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/loader/unknown_ext_chain_gas_x86.S:135:5: note: while in macro instantiation
    PhysDevExtTramp 0
    ^

@charles-lunarg
Copy link
Collaborator Author

That error looks like it the 64 bit code is trying to be used in 32 bit mode?

@sl1pkn07
Copy link

seems yes.

as note, i'm trying, all time, build 32bits code on 64bits machine.

so seems the asm code detect the 32bit compillation as 64 bits code

@charles-lunarg
Copy link
Collaborator Author

Using your build code, I was able to build 32 bit in 64 bit OS, and I 'know' it was using the 32 bit asm code because that was where the compiler error was. What you just posted indicates the error happening in the 64 bit code, which shouldn't happen.

Is X86_64 not being defined? I assume the compiler is setting that when it runs the assembler.

@sl1pkn07
Copy link

cd /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build32/loader && /usr/bin/python3 /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/scripts/parse_asm_values.py /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build32/loader/gen_defines.asm /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build32/loader/CMakeFiles/asm_offset.dir/asm_offset.s GAS Clang x86_64

mmmmm

@sl1pkn07
Copy link

@charles-lunarg
Copy link
Collaborator Author

charles-lunarg commented Oct 20, 2022

That code should be running on windows, not linux. However further down is the corresponding command that uses very similar syntax.

add_custom_command(TARGET asm_offset POST_BUILD

"GAS" "${CMAKE_CXX_COMPILER_ID}" "${CMAKE_SYSTEM_PROCESSOR}" what is the value of ${CMAKE_SYSTEM_PROCESSOR}? if its x86_64, then that is the culprit.

@sl1pkn07
Copy link

message(WARNING ${CMAKE_SYSTEM_PROCESSOR})
  x86_64

@charles-lunarg
Copy link
Collaborator Author

That would be it, now to figure out 'how to make it not be that'. I'm not at my linux box atm so I can't check what I get when I do the 32 bit build.

@sl1pkn07
Copy link

sl1pkn07 commented Oct 20, 2022

in my "sed" things, I've change ${_target_arch} from x64 to x86. i thing can do a local patch for manage it changing ${CMAKE_SYSTEM_PROCESSOR} to ${_target_arch} in that custom command

i will try this

@sl1pkn07
Copy link

sl1pkn07 commented Oct 20, 2022

something similar like this

diff --git a/loader/CMakeLists.txt b/loader/CMakeLists.txt
index 0be1c5df4..a7a1f168f 100644
--- a/loader/CMakeLists.txt
+++ b/loader/CMakeLists.txt
@@ -228,15 +228,28 @@ else() # i.e.: Linux
 
         find_package(PythonInterp REQUIRED)
         # Run parse_asm_values.py on asm_offset's assembly file to generate the gen_defines.asm, which the asm code depends on
+        if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
+            # If build on 64bits host
+            set(_target_asm ${CMAKE_SYSTEM_PROCESSOR})
+        else()
+            # Cross if build 32bits on 64bits host
+            if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "amd64")
+                set(_target_asm x86)
+            endif()
+            # If build on 32bits host
+            if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "^i.86$")
+                set(_target_asm ${CMAKE_SYSTEM_PROCESSOR})
+            endif()
+        endif()
         add_custom_command(TARGET asm_offset POST_BUILD
             COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/scripts/parse_asm_values.py "$<TARGET_FILE_DIR:asm_offset>/gen_defines.asm"
-                "${ASM_OFFSET_INTERMEDIATE_LOCATION}" "GAS" "${CMAKE_CXX_COMPILER_ID}" "${CMAKE_SYSTEM_PROCESSOR}"
+                "${ASM_OFFSET_INTERMEDIATE_LOCATION}" "GAS" "${CMAKE_CXX_COMPILER_ID}" "${_target_asm}"
             BYPRODUCTS gen_defines.asm
             )
         add_custom_target(loader_asm_gen_files DEPENDS gen_defines.asm)
     else()
         if(USE_GAS)
-            message(WARNING "Could not find working ${CMAKE_SYSTEM_PROCESSOR} GAS assembler\n${ASM_FAILURE_MSG}")
+            message(WARNING "Could not find working ${_target_asm} GAS assembler\n${ASM_FAILURE_MSG}")
         else()
             message(WARNING "Assembly sources have been disabled\n${ASM_FAILURE_MSG}")
         endif()

@sl1pkn07
Copy link

sl1pkn07 commented Oct 21, 2022

tested with the patch posted avobe

remain 32bits test passed except 406

406/427 Testing: UnknownFunctionDeathTests.PhysicalDeviceFunctionErrorPath
406/427 Test: UnknownFunctionDeathTests.PhysicalDeviceFunctionErrorPath
Command: "/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build32/tests/test_regression" "--gtest_filter=UnknownFunctionDeathTests.PhysicalDeviceFunctionErrorPath" "--gtest_also_run_disabled_tests"
Directory: /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build32/tests
"UnknownFunctionDeathTests.PhysicalDeviceFunctionErrorPath" start time: Oct 21 18:42 CEST
Output:
----------------------------------------------------------
Note: Google Test filter = UnknownFunctionDeathTests.PhysicalDeviceFunctionErrorPath
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from UnknownFunctionDeathTests
[ RUN      ] UnknownFunctionDeathTests.PhysicalDeviceFunctionErrorPath
INFO:             Vulkan Loader Version 1.3.231
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found no files
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:                 /etc/vulkan/icd.d/test_icd_1.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build32/tests/framework/icd_manifests/libtest_icd_version_2_export_icd_gpdpa_0.so
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_1.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build32/tests/framework/icd_manifests/libtest_icd_version_2_export_icd_gpdpa_1.so
DEBUG:            Build ICD instance extension list
LAYER:            vkCreateInstance layer callstack setup to:
LAYER:               <Application>
LAYER:                 ||
LAYER:               <Loader>
LAYER:                 ||
LAYER:               <Drivers>

DEBUG:            Build ICD instance extension list
DEBUG:            Build ICD instance extension list
DEBUG:            loader_phys_dev_ext_gpa: Adding unknown physical function vkNotIntRealFuncTEST_0 to internal store at index 0
DEBUG:            loader_phys_dev_ext_gpa: Driver /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build32/tests/framework/icd_manifests/libtest_icd_version_2_export_icd_gpdpa_0.so returned ptr 0xf7af3fd9 for vkNotIntRealFuncTEST_0
/usr/src/debug/Vulkan-Loader/tests/loader_unknown_ext_tests.cpp:448: Failure
Death test: returned_func_i(phys_dev_to_use, 0)
    Result: died but not with expected error.
  Expected: contains regular expression "Function vkNotIntRealFuncTEST_0 not supported for this physical device"
Actual msg:
[  DEATH   ] 
[  FAILED  ] UnknownFunctionDeathTests.PhysicalDeviceFunctionErrorPath (120 ms)
[----------] 1 test from UnknownFunctionDeathTests (120 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (121 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] UnknownFunctionDeathTests.PhysicalDeviceFunctionErrorPath

 1 FAILED TEST
<end of output>
Test time =   0.13 sec
----------------------------------------------------------
Test Failed.
"UnknownFunctionDeathTests.PhysicalDeviceFunctionErrorPath" end time: Oct 21 18:42 CEST
"UnknownFunctionDeathTests.PhysicalDeviceFunctionErrorPath" time elapsed: 00:00:00

as note.the test 11 fails, in 64 and 32 bits (both have the same output)

11/427 Testing: Allocation.EnumeratePhysicalDevicesIntentionalAllocFail~
11/427 Test: Allocation.EnumeratePhysicalDevicesIntentionalAllocFail
Command: "/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/test_regression" "--gtest_filter=Allocation.EnumeratePhysicalDevicesIntentionalAllocFail" "--gtest_also_run_disabled_tests"
Directory: /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests
"Allocation.EnumeratePhysicalDevicesIntentionalAllocFail" start time: Oct 21 18:16 CEST
Output:
----------------------------------------------------------
Note: Google Test filter = Allocation.EnumeratePhysicalDevicesIntentionalAllocFail
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from Allocation
[ RUN      ] Allocation.EnumeratePhysicalDevicesIntentionalAllocFail
INFO:             Vulkan Loader Version 1.3.231
ERROR:            read_data_files_in_search_paths: Failed to allocate space for search path of length 147
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
ERROR:            check_and_adjust_data_file_list: Failed to allocate space for manifest file name list
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
ERROR:            check_and_adjust_data_file_list: Failed to allocate space for manifest file name list
LAYER:               Found no files
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
ERROR:            add_manifest_file: Failed to allocate space for manifest file 0 list
LAYER:               Found no files
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to allocate space for JSON file /etc/vulkan/implicit_layer.d/test_layer.json buffer of length 400
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/implicit_layer.d/test_layer.json, this is usually because something ran out of memory.
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
ERROR:            read_data_files_in_search_paths: Failed to allocate space for search path of length 147
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Problem accessing layer value name in manifest JSON file, skipping this layer
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Problem accessing layer value type in manifest JSON file, skipping this layer
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Problem accessing layer value api_version in manifest JSON file, skipping this layer
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Problem accessing layer value implementation_version in manifest JSON file, skipping this layer
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Problem accessing layer value description in manifest JSON file, skipping this layer
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
ERROR:            loader_get_next_layer_property_slot: Out of memory can not add any layer properties to list
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Problem accessing layer value library_path in manifest JSON file, skipping this layer
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
ERROR:            read_data_files_in_search_paths: Failed to allocate space for search path of length 147
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
ERROR:            loader_scanned_icd_init: Realloc failed for layer list when attempting to add new layer
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
ERROR:            read_data_files_in_search_paths: Failed to allocate space for search path of length 92
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
ERROR:            check_and_adjust_data_file_list: Failed to allocate space for manifest file name list
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
ERROR:            check_and_adjust_data_file_list: Failed to allocate space for manifest file name list
DRIVER:              Found no files
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
ERROR:            add_manifest_file: Failed to allocate space for manifest file 0 list
DRIVER:              Found no files
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
ERROR:            loader_get_json: Failed to allocate space for JSON file /etc/vulkan/icd.d/test_icd_0.json buffer of length 269
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/icd.d/test_icd_0.json, this is usually because something ran out of memory.
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/icd.d/test_icd_0.json, this is usually because something ran out of memory.
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/icd.d/test_icd_0.json, this is usually because something ran out of memory.
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/icd.d/test_icd_0.json, this is usually because something ran out of memory.
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/icd.d/test_icd_0.json, this is usually because something ran out of memory.
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/icd.d/test_icd_0.json, this is usually because something ran out of memory.
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/icd.d/test_icd_0.json, this is usually because something ran out of memory.
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/icd.d/test_icd_0.json, this is usually because something ran out of memory.
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/icd.d/test_icd_0.json, this is usually because something ran out of memory.
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/icd.d/test_icd_0.json, this is usually because something ran out of memory.
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/icd.d/test_icd_0.json, this is usually because something ran out of memory.
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/icd.d/test_icd_0.json, this is usually because something ran out of memory.
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/icd.d/test_icd_0.json, this is usually because something ran out of memory.
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
ERROR:            loader_get_json: Failed to parse JSON file /etc/vulkan/icd.d/test_icd_0.json, this is usually because something ran out of memory.
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
WARNING | DRIVER: loader_parse_icd_manifest: Failed retrieving ICD JSON /etc/vulkan/icd.d/test_icd_0.json 'file_format_version' field. Skipping ICD JSON
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
WARNING | DRIVER: loader_parse_icd_manifest: Failed retrieving ICD JSON /etc/vulkan/icd.d/test_icd_0.json 'library_path' field. Skipping ICD JSON.
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
WARNING | DRIVER: loader_parse_icd_manifest: Failed retrieving ICD JSON /etc/vulkan/icd.d/test_icd_0.json 'api_version' field. Skipping ICD JSON.
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
ERROR:            loader_scanned_icd_add: Out of memory can't add ICD /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
ERROR:            loader_init_generic_list: Failed to allocate space for generic list
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
ERROR:            loader_init_generic_list: Failed to allocate space for generic list
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
ERROR:            vkCreateInstance:  Failed to allocate Loader's full Instance dispatch table.
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
ERROR:            loader_enable_instance_layers: Failed to initialize application version of the layer list
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
ERROR:            loader_enable_instance_layers: Failed to initialize expanded version of the layer list
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
DEBUG | LAYER:    Loading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
INFO | LAYER:     Insert instance layer VkLayerImplicit0 (/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so)
LAYER:            vkCreateInstance layer callstack setup to:
LAYER:               <Application>
LAYER:                 ||
LAYER:               <Loader>
LAYER:                 ||
LAYER:               VkLayerImplicit0
LAYER:                       Type: Implicit
LAYER:                           Disable Env Var:  DISABLE_ENV
LAYER:                       Manifest: /etc/vulkan/implicit_layer.d/test_layer.json
LAYER:                       Library:  /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:                 ||
LAYER:               <Drivers>

ERROR:            terminator_CreateInstance: Failed to add ICD 0 to ICD trampoline list.
DEBUG | LAYER:    Unloading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
DEBUG | LAYER:    Loading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
INFO | LAYER:     Insert instance layer VkLayerImplicit0 (/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so)
LAYER:            vkCreateInstance layer callstack setup to:
LAYER:               <Application>
LAYER:                 ||
LAYER:               <Loader>
LAYER:                 ||
LAYER:               VkLayerImplicit0
LAYER:                       Type: Implicit
LAYER:                           Disable Env Var:  DISABLE_ENV
LAYER:                       Manifest: /etc/vulkan/implicit_layer.d/test_layer.json
LAYER:                       Library:  /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:                 ||
LAYER:               <Drivers>

DEBUG:            Build ICD instance extension list
ERROR:            loader_init_generic_list: Failed to allocate space for generic list
DEBUG | LAYER:    Unloading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
DEBUG | LAYER:    Loading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
INFO | LAYER:     Insert instance layer VkLayerImplicit0 (/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so)
LAYER:            vkCreateInstance layer callstack setup to:
LAYER:               <Application>
LAYER:                 ||
LAYER:               <Loader>
LAYER:                 ||
LAYER:               VkLayerImplicit0
LAYER:                       Type: Implicit
LAYER:                           Disable Env Var:  DISABLE_ENV
LAYER:                       Manifest: /etc/vulkan/implicit_layer.d/test_layer.json
LAYER:                       Library:  /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:                 ||
LAYER:               <Drivers>

DEBUG:            Build ICD instance extension list
DEBUG | LAYER:    Unloading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
DEBUG | LAYER:    Loading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
INFO | LAYER:     Insert instance layer VkLayerImplicit0 (/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so)
LAYER:            vkCreateInstance layer callstack setup to:
LAYER:               <Application>
LAYER:                 ||
LAYER:               <Loader>
LAYER:                 ||
LAYER:               VkLayerImplicit0
LAYER:                       Type: Implicit
LAYER:                           Disable Env Var:  DISABLE_ENV
LAYER:                       Manifest: /etc/vulkan/implicit_layer.d/test_layer.json
LAYER:                       Library:  /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:                 ||
LAYER:               <Drivers>

DEBUG:            Build ICD instance extension list
ERROR:            setup_loader_term_phys_devs:  Failed to allocate new physical device array of size 3
DEBUG | LAYER:    Unloading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
DEBUG | LAYER:    Loading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
INFO | LAYER:     Insert instance layer VkLayerImplicit0 (/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so)
LAYER:            vkCreateInstance layer callstack setup to:
LAYER:               <Application>
LAYER:                 ||
LAYER:               <Loader>
LAYER:                 ||
LAYER:               VkLayerImplicit0
LAYER:                       Type: Implicit
LAYER:                           Disable Env Var:  DISABLE_ENV
LAYER:                       Manifest: /etc/vulkan/implicit_layer.d/test_layer.json
LAYER:                       Library:  /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:                 ||
LAYER:               <Drivers>

DEBUG:            Build ICD instance extension list
ERROR:            allocate_new_phys_dev_at_idx:  Failed to allocate physical device terminator object 0
DEBUG | LAYER:    Unloading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
DEBUG | LAYER:    Loading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
INFO | LAYER:     Insert instance layer VkLayerImplicit0 (/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so)
LAYER:            vkCreateInstance layer callstack setup to:
LAYER:               <Application>
LAYER:                 ||
LAYER:               <Loader>
LAYER:                 ||
LAYER:               VkLayerImplicit0
LAYER:                       Type: Implicit
LAYER:                           Disable Env Var:  DISABLE_ENV
LAYER:                       Manifest: /etc/vulkan/implicit_layer.d/test_layer.json
LAYER:                       Library:  /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:                 ||
LAYER:               <Drivers>

DEBUG:            Build ICD instance extension list
ERROR:            allocate_new_phys_dev_at_idx:  Failed to allocate physical device terminator object 1
DEBUG | LAYER:    Unloading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
DEBUG | LAYER:    Loading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
INFO | LAYER:     Insert instance layer VkLayerImplicit0 (/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so)
LAYER:            vkCreateInstance layer callstack setup to:
LAYER:               <Application>
LAYER:                 ||
LAYER:               <Loader>
LAYER:                 ||
LAYER:               VkLayerImplicit0
LAYER:                       Type: Implicit
LAYER:                           Disable Env Var:  DISABLE_ENV
LAYER:                       Manifest: /etc/vulkan/implicit_layer.d/test_layer.json
LAYER:                       Library:  /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:                 ||
LAYER:               <Drivers>

DEBUG:            Build ICD instance extension list
ERROR:            allocate_new_phys_dev_at_idx:  Failed to allocate physical device terminator object 2
DEBUG | LAYER:    Unloading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
DEBUG | LAYER:    Loading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
INFO | LAYER:     Insert instance layer VkLayerImplicit0 (/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so)
LAYER:            vkCreateInstance layer callstack setup to:
LAYER:               <Application>
LAYER:                 ||
LAYER:               <Loader>
LAYER:                 ||
LAYER:               VkLayerImplicit0
LAYER:                       Type: Implicit
LAYER:                           Disable Env Var:  DISABLE_ENV
LAYER:                       Manifest: /etc/vulkan/implicit_layer.d/test_layer.json
LAYER:                       Library:  /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:                 ||
LAYER:               <Drivers>

DEBUG:            Build ICD instance extension list
ERROR:            setup_loader_term_phys_devs:  Failed to allocate new physical device array of size 5
DEBUG | LAYER:    Unloading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
DEBUG | LAYER:    Loading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
INFO | LAYER:     Insert instance layer VkLayerImplicit0 (/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so)
LAYER:            vkCreateInstance layer callstack setup to:
LAYER:               <Application>
LAYER:                 ||
LAYER:               <Loader>
LAYER:                 ||
LAYER:               VkLayerImplicit0
LAYER:                       Type: Implicit
LAYER:                           Disable Env Var:  DISABLE_ENV
LAYER:                       Manifest: /etc/vulkan/implicit_layer.d/test_layer.json
LAYER:                       Library:  /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:                 ||
LAYER:               <Drivers>

DEBUG:            Build ICD instance extension list
ERROR:            allocate_new_phys_dev_at_idx:  Failed to allocate physical device terminator object 3
DEBUG | LAYER:    Unloading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
DEBUG | LAYER:    Loading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
INFO | LAYER:     Insert instance layer VkLayerImplicit0 (/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so)
LAYER:            vkCreateInstance layer callstack setup to:
LAYER:               <Application>
LAYER:                 ||
LAYER:               <Loader>
LAYER:                 ||
LAYER:               VkLayerImplicit0
LAYER:                       Type: Implicit
LAYER:                           Disable Env Var:  DISABLE_ENV
LAYER:                       Manifest: /etc/vulkan/implicit_layer.d/test_layer.json
LAYER:                       Library:  /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:                 ||
LAYER:               <Drivers>

DEBUG:            Build ICD instance extension list
ERROR:            allocate_new_phys_dev_at_idx:  Failed to allocate physical device terminator object 4
DEBUG | LAYER:    Unloading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
DEBUG | LAYER:    Loading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
INFO | LAYER:     Insert instance layer VkLayerImplicit0 (/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so)
LAYER:            vkCreateInstance layer callstack setup to:
LAYER:               <Application>
LAYER:                 ||
LAYER:               <Loader>
LAYER:                 ||
LAYER:               VkLayerImplicit0
LAYER:                       Type: Implicit
LAYER:                           Disable Env Var:  DISABLE_ENV
LAYER:                       Manifest: /etc/vulkan/implicit_layer.d/test_layer.json
LAYER:                       Library:  /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:                 ||
LAYER:               <Drivers>

DEBUG:            Build ICD instance extension list
INFO:             terminator_EnumeratePhysicalDevices : Trimming device count from 5 to 3.
ERROR:            setup_loader_tramp_phys_devs:  Failed to allocate new physical device array of size 5
DEBUG | LAYER:    Unloading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
DEBUG | LAYER:    Loading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
INFO | LAYER:     Insert instance layer VkLayerImplicit0 (/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so)
LAYER:            vkCreateInstance layer callstack setup to:
LAYER:               <Application>
LAYER:                 ||
LAYER:               <Loader>
LAYER:                 ||
LAYER:               VkLayerImplicit0
LAYER:                       Type: Implicit
LAYER:                           Disable Env Var:  DISABLE_ENV
LAYER:                       Manifest: /etc/vulkan/implicit_layer.d/test_layer.json
LAYER:                       Library:  /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:                 ||
LAYER:               <Drivers>

DEBUG:            Build ICD instance extension list
INFO:             terminator_EnumeratePhysicalDevices : Trimming device count from 5 to 3.
ERROR:            setup_loader_tramp_phys_devs:  Failed to allocate new trampoline physical device
DEBUG | LAYER:    Unloading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
DEBUG | LAYER:    Loading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
INFO | LAYER:     Insert instance layer VkLayerImplicit0 (/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so)
LAYER:            vkCreateInstance layer callstack setup to:
LAYER:               <Application>
LAYER:                 ||
LAYER:               <Loader>
LAYER:                 ||
LAYER:               VkLayerImplicit0
LAYER:                       Type: Implicit
LAYER:                           Disable Env Var:  DISABLE_ENV
LAYER:                       Manifest: /etc/vulkan/implicit_layer.d/test_layer.json
LAYER:                       Library:  /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:                 ||
LAYER:               <Drivers>

DEBUG:            Build ICD instance extension list
INFO:             terminator_EnumeratePhysicalDevices : Trimming device count from 5 to 3.
ERROR:            setup_loader_tramp_phys_devs:  Failed to allocate new trampoline physical device
DEBUG | LAYER:    Unloading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
DEBUG | LAYER:    Loading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
INFO | LAYER:     Insert instance layer VkLayerImplicit0 (/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so)
LAYER:            vkCreateInstance layer callstack setup to:
LAYER:               <Application>
LAYER:                 ||
LAYER:               <Loader>
LAYER:                 ||
LAYER:               VkLayerImplicit0
LAYER:                       Type: Implicit
LAYER:                           Disable Env Var:  DISABLE_ENV
LAYER:                       Manifest: /etc/vulkan/implicit_layer.d/test_layer.json
LAYER:                       Library:  /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:                 ||
LAYER:               <Drivers>

DEBUG:            Build ICD instance extension list
INFO:             terminator_EnumeratePhysicalDevices : Trimming device count from 5 to 3.
ERROR:            setup_loader_tramp_phys_devs:  Failed to allocate new trampoline physical device
DEBUG | LAYER:    Unloading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
DEBUG | LAYER:    Loading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
INFO | LAYER:     Insert instance layer VkLayerImplicit0 (/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so)
LAYER:            vkCreateInstance layer callstack setup to:
LAYER:               <Application>
LAYER:                 ||
LAYER:               <Loader>
LAYER:                 ||
LAYER:               VkLayerImplicit0
LAYER:                       Type: Implicit
LAYER:                           Disable Env Var:  DISABLE_ENV
LAYER:                       Manifest: /etc/vulkan/implicit_layer.d/test_layer.json
LAYER:                       Library:  /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:                 ||
LAYER:               <Drivers>

DEBUG:            Build ICD instance extension list
INFO:             terminator_EnumeratePhysicalDevices : Trimming device count from 5 to 3.
ERROR:            setup_loader_term_phys_devs:  Failed to allocate new physical device array of size 5
DEBUG | LAYER:    Unloading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
DEBUG | LAYER:    Loading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
INFO | LAYER:     Insert instance layer VkLayerImplicit0 (/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so)
LAYER:            vkCreateInstance layer callstack setup to:
LAYER:               <Application>
LAYER:                 ||
LAYER:               <Loader>
LAYER:                 ||
LAYER:               VkLayerImplicit0
LAYER:                       Type: Implicit
LAYER:                           Disable Env Var:  DISABLE_ENV
LAYER:                       Manifest: /etc/vulkan/implicit_layer.d/test_layer.json
LAYER:                       Library:  /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:                 ||
LAYER:               <Drivers>

DEBUG:            Build ICD instance extension list
INFO:             terminator_EnumeratePhysicalDevices : Trimming device count from 5 to 3.
ERROR:            setup_loader_term_phys_devs:  Failed to allocate new physical device array of size 5
DEBUG | LAYER:    Unloading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
DEBUG | LAYER:    Loading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
INFO | LAYER:     Insert instance layer VkLayerImplicit0 (/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so)
LAYER:            vkCreateInstance layer callstack setup to:
LAYER:               <Application>
LAYER:                 ||
LAYER:               <Loader>
LAYER:                 ||
LAYER:               VkLayerImplicit0
LAYER:                       Type: Implicit
LAYER:                           Disable Env Var:  DISABLE_ENV
LAYER:                       Manifest: /etc/vulkan/implicit_layer.d/test_layer.json
LAYER:                       Library:  /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:                 ||
LAYER:               <Drivers>

DEBUG:            Build ICD instance extension list
INFO:             terminator_EnumeratePhysicalDevices : Trimming device count from 5 to 3.
ERROR:            setup_loader_tramp_phys_devs:  Failed to allocate new physical device array of size 5
DEBUG | LAYER:    Unloading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
DEBUG | LAYER:    Loading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
INFO | LAYER:     Insert instance layer VkLayerImplicit0 (/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so)
LAYER:            vkCreateInstance layer callstack setup to:
LAYER:               <Application>
LAYER:                 ||
LAYER:               <Loader>
LAYER:                 ||
LAYER:               VkLayerImplicit0
LAYER:                       Type: Implicit
LAYER:                           Disable Env Var:  DISABLE_ENV
LAYER:                       Manifest: /etc/vulkan/implicit_layer.d/test_layer.json
LAYER:                       Library:  /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:                 ||
LAYER:               <Drivers>

DEBUG:            Build ICD instance extension list
INFO:             terminator_EnumeratePhysicalDevices : Trimming device count from 5 to 3.
ERROR:            setup_loader_tramp_phys_devs:  Failed to allocate new trampoline physical device
DEBUG | LAYER:    Unloading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
DEBUG | LAYER:    Loading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
INFO | LAYER:     Insert instance layer VkLayerImplicit0 (/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so)
LAYER:            vkCreateInstance layer callstack setup to:
LAYER:               <Application>
LAYER:                 ||
LAYER:               <Loader>
LAYER:                 ||
LAYER:               VkLayerImplicit0
LAYER:                       Type: Implicit
LAYER:                           Disable Env Var:  DISABLE_ENV
LAYER:                       Manifest: /etc/vulkan/implicit_layer.d/test_layer.json
LAYER:                       Library:  /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:                 ||
LAYER:               <Drivers>

DEBUG:            Build ICD instance extension list
INFO:             terminator_EnumeratePhysicalDevices : Trimming device count from 5 to 3.
ERROR:            setup_loader_tramp_phys_devs:  Failed to allocate new trampoline physical device
DEBUG | LAYER:    Unloading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/implicit_layer.d
LAYER:               Found the following files:
LAYER:                  /etc/vulkan/implicit_layer.d/test_layer.json
INFO:             Found manifest file /etc/vulkan/implicit_layer.d/test_layer.json (file version "1.0.0")
WARNING:          Layer name VkLayerImplicit0 does not conform to naming standard (Policy #LLP_LAYER_3)
LAYER:            Searching for layer manifest files
LAYER:               In following folders:
LAYER:                  /etc/vulkan/explicit_layer.d
LAYER:               Found no files
DRIVER:           Searching for driver manifest files
DRIVER:              In following folders:
DRIVER:                 /etc/vulkan/icd.d
DRIVER:              Found the following files:
DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/icd_manifests/libtest_icd_version_2_0.so
DEBUG:            Build ICD instance extension list
DEBUG | LAYER:    Loading layer library /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
INFO | LAYER:     Insert instance layer VkLayerImplicit0 (/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so)
LAYER:            vkCreateInstance layer callstack setup to:
LAYER:               <Application>
LAYER:                 ||
LAYER:               <Loader>
LAYER:                 ||
LAYER:               VkLayerImplicit0
LAYER:                       Type: Implicit
LAYER:                           Disable Env Var:  DISABLE_ENV
LAYER:                       Manifest: /etc/vulkan/implicit_layer.d/test_layer.json
LAYER:                       Library:  /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build64/tests/framework/implicit_layer_manifests/VkLayerImplicit0_0_libtest_layer_export_version_2.so
LAYER:                 ||
LAYER:               <Drivers>

DEBUG:            Build ICD instance extension list
INFO:             terminator_EnumeratePhysicalDevices : Trimming device count from 5 to 3.
ERROR:            loader_init_generic_list: Failed to allocate space for generic list
ERROR:            vkCreateDevice: Failed to create ICD extension list
ERROR:            loader_init_generic_list: Failed to allocate space for generic list
ERROR:            vkCreateDevice: Failed to create ICD extension list
ERROR:            loader_init_generic_list: Failed to allocate space for generic list
ERROR:            vkCreateDevice: Failed to create ICD extension list
/usr/include/c++/12.2.0/array:208: std::array<_Tp, _Nm>::value_type& std::array<_Tp, _Nm>::operator[](size_type) [with _Tp = VkDevice_T*; long unsigned int _Nm = 3; reference = VkDevice_T*&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
<end of output>
Test time =   0.19 sec
----------------------------------------------------------
Test Failed.
"Allocation.EnumeratePhysicalDevicesIntentionalAllocFail" end time: Oct 21 18:16 CEST
"Allocation.EnumeratePhysicalDevicesIntentionalAllocFail" time elapsed: 00:00:00

greetings

@charles-lunarg
Copy link
Collaborator Author

charles-lunarg commented Oct 21, 2022

Thank you for working with me. I figured out why the parse_asm_values.py doesn't work (while the old asm_offset.exe does). The asm_offset.exe checks #if defined(__i386__) before emitting the X86_64 line in the gen_defines.asm, and this wasn't ported correctly to parse_asm_values.py. This was revealed by rebasing this PR ontop of #1039, which makes the behavior correct again (except when cross compiling to a platform that can't run the executable).

I'll fix up this PR to include checking the CMAKE_SYSTEM_PROCESSOR and make parse_asm_values.py print the correct header (eg, include X86_64 or not).

@sl1pkn07
Copy link

Hi. thanks for all

(offtopic) i need a little info about this:

### Link Time Optimization

When cross compiling, the use of Link Time Optimization (LTO) and unknown function handling
is not supported. Either LTO needs to be turned off, or the assembly should be disabled.

Archlinux sets build with LTO by default. if i understand good, i need disable the LTO when build the project in 32bits mode when use 64bits host?

greetings

@charles-lunarg charles-lunarg force-pushed the fix_linux_32bit_unknown_function_error_path branch from afdd0df to 7f063c1 Compare October 21, 2022 21:41
@ci-tester-lunarg
Copy link

CI Vulkan-Loader build queued with queue ID 18502.

@charles-lunarg
Copy link
Collaborator Author

charles-lunarg commented Oct 21, 2022

Hi,

I just pushed up the 'fixed' version. Please check it out and make sure it actually works.

To answer your LTO question, you should be able to use LTO while building 32 bit on x64 because unless CMAKE_CROSSCOMPILNG is TRUE, the build will execute asm_offset.exe. This removes the issues that
were seen when LTO is enabled (since while cross compiling, a python script is used to parse the intermediate
asm file that the compiler dumps, and LTO changes the format of it).

Edit: To be clear, from what I can tell CMAKE_CROSSCOMPILNG is FALSE when doing 32 bit builds on an x64 machine. So this means the cross compilation fallback path is not used (and this is the path that can't handle LTO).

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 1561 passed.

@sl1pkn07
Copy link

thanks a lot fot the explanation

the updated #1036 have the same output. failed test 406 UnknownFunctionDeathTests.PhysicalDeviceFunctionErrorPath

output with ctest --verbose

test 406
        Start 406: UnknownFunctionDeathTests.PhysicalDeviceFunctionErrorPath

406: Test command: /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build32/tests/test_regression "--gtest_filter=UnknownFunctionDeathTests.PhysicalDeviceFunctionErrorPath" "--gtest_also_run_disabled_tests"
406: Working Directory: /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build32/tests
406: Test timeout computed to be: 10000000
406: Note: Google Test filter = UnknownFunctionDeathTests.PhysicalDeviceFunctionErrorPath
406: [==========] Running 1 test from 1 test suite.
406: [----------] Global test environment set-up.
406: [----------] 1 test from UnknownFunctionDeathTests
406: [ RUN      ] UnknownFunctionDeathTests.PhysicalDeviceFunctionErrorPath
406: INFO:             Vulkan Loader Version 1.3.231
406: LAYER:            Searching for layer manifest files
406: LAYER:               In following folders:
406: LAYER:                  /etc/vulkan/implicit_layer.d
406: LAYER:               Found no files
406: LAYER:            Searching for layer manifest files
406: LAYER:               In following folders:
406: LAYER:                  /etc/vulkan/explicit_layer.d
406: LAYER:               Found no files
406: DRIVER:           Searching for driver manifest files
406: DRIVER:              In following folders:
406: DRIVER:                 /etc/vulkan/icd.d
406: DRIVER:              Found the following files:
406: DRIVER:                 /etc/vulkan/icd.d/test_icd_0.json
406: DRIVER:                 /etc/vulkan/icd.d/test_icd_1.json
406: DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_0.json, version "1.0.0"
406: DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build32/tests/framework/icd_manifests/libtest_icd_version_2_export_icd_gpdpa_0.so
406: DRIVER:           Found ICD manifest file /etc/vulkan/icd.d/test_icd_1.json, version "1.0.0"
406: DEBUG:            Searching for ICD drivers named /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build32/tests/framework/icd_manifests/libtest_icd_version_2_export_icd_gpdpa_1.so
406: DEBUG:            Build ICD instance extension list
406: LAYER:            vkCreateInstance layer callstack setup to:
406: LAYER:               <Application>
406: LAYER:                 ||
406: LAYER:               <Loader>
406: LAYER:                 ||
406: LAYER:               <Drivers>
406: 
406: DEBUG:            Build ICD instance extension list
406: DEBUG:            Build ICD instance extension list
406: DEBUG:            loader_phys_dev_ext_gpa: Adding unknown physical function vkNotIntRealFuncTEST_0 to internal store at index 0
406: DEBUG:            loader_phys_dev_ext_gpa: Driver /tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build32/tests/framework/icd_manifests/libtest_icd_version_2_export_icd_gpdpa_0.so returned ptr 0xf7af3ff9 for vkNotIntRealFuncTEST_0
406: /usr/src/debug/Vulkan-Loader/tests/loader_unknown_ext_tests.cpp:448: Failure
406: Death test: returned_func_i(phys_dev_to_use, 0)
406:     Result: died but not with expected error.
406:   Expected: contains regular expression "Function vkNotIntRealFuncTEST_0 not supported for this physical device"
406: Actual msg:
406: [  DEATH   ] 
406: [  FAILED  ] UnknownFunctionDeathTests.PhysicalDeviceFunctionErrorPath (140 ms)
406: [----------] 1 test from UnknownFunctionDeathTests (140 ms total)
406: 
406: [----------] Global test environment tear-down
406: [==========] 1 test from 1 test suite ran. (140 ms total)
406: [  PASSED  ] 0 tests.
406: [  FAILED  ] 1 test, listed below:
406: [  FAILED  ] UnknownFunctionDeathTests.PhysicalDeviceFunctionErrorPath
406: 
406:  1 FAILED TEST
406/427 Test #406: UnknownFunctionDeathTests.PhysicalDeviceFunctionErrorPath ....................................***Failed    0.14 sec

test 11 Allocation.EnumeratePhysicalDevicesIntentionalAllocFail also fails in 64 and 32 bits (i think is a different issue, maybe (high posibility) my fault)

greetings

@sl1pkn07
Copy link

gdb 11

0xf7fc6549 in __kernel_vsyscall ()
(gdb) bt
#0  0xf7fc6549 in __kernel_vsyscall ()
#1  0xf7889667 in __pthread_kill_implementation (threadid=threadid@entry=4159067904, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:43
#2  0xf78896ef in __pthread_kill_internal (signo=6, threadid=4159067904) at pthread_kill.c:78
#3  0xf7835677 in __GI_raise (sig=6) at ../sysdeps/posix/raise.c:26
#4  0xf781e126 in __GI_abort () at abort.c:79
#5  0xf7cb3d05 in std::__glibcxx_assert_fail (file=0x5682b33d "/usr/include/c++/12.2.0/array", line=208, function=0x5682b7c4 "std::array<_Tp, _Nm>::value_type& std::array<_Tp, _Nm>::operator[](size_type) [with _Tp = VkDevice_T*; unsigned int _Nm = 3; reference = VkDevice_T*&; size_type = unsigned int]", condition=0x5682bca2 "__n < this->size()")
    at /usr/src/debug/gcc/libstdc++-v3/src/c++11/debug.cc:60
#6  0x565df220 in std::array<VkDevice_T*, 3u>::operator[] (__n=<optimized out>, this=<optimized out>) at /usr/include/c++/12.2.0/array:208
#7  Allocation_EnumeratePhysicalDevicesIntentionalAllocFail_Test::TestBody (this=0x56905010) at /usr/src/debug/Vulkan-Loader/tests/loader_alloc_callback_tests.cpp:747
#8  0x56816fbc in testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void> (location=0x5685691c "the test body", method=&virtual testing::Test::TestBody(), object=0x56905010) at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:2607
#9  testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void> (object=0x56905010, method=&virtual testing::Test::TestBody(), location=0x5685691c "the test body") at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:2643
#10 0x568046e4 in testing::Test::Run (this=this@entry=0x56905010) at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:2682
#11 0x56804f88 in testing::Test::Run (this=0x56905010) at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:2673
#12 testing::TestInfo::Run (this=0x568def50) at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:2861
--Type <RET> for more, q to quit, c to continue without paging--
#13 0x568059b9 in testing::TestInfo::Run (this=<optimized out>) at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:2834
#14 testing::TestSuite::Run (this=0x568de000) at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:3015
#15 0x56806e6c in testing::TestSuite::Run (this=<optimized out>) at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:2994
#16 testing::internal::UnitTestImpl::RunAllTests (this=0x568dddb0) at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:5855
#17 0x56807a4a in testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (location=0x56859074 "auxiliary test code (environments or event listeners)", method=<optimized out>, object=0x568dddb0) at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:2588
#18 testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (location=0x56859074 "auxiliary test code (environments or event listeners)", method=(bool (testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl * const)) 0x56805dc0 <testing::internal::UnitTestImpl::RunAllTests()>, object=0x568dddb0)
    at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:2643
#19 testing::UnitTest::Run (this=0x568d88e0 <testing::UnitTest::GetInstance()::instance>) at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:5438
#20 0x565c1857 in RUN_ALL_TESTS () at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/include/gtest/gtest.h:2490
#21 main (argc=<optimized out>, argv=0xffffc524) at /usr/src/debug/Vulkan-Loader/tests/loader_testing_main.cpp:72
(gdb) 

full bt

(gdb) bt full
#0  0xf7fc6549 in __kernel_vsyscall ()
No symbol table info available.
#1  0xf7889667 in __pthread_kill_implementation (threadid=threadid@entry=4159067904, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:43
        resultvar = <optimized out>
        tid = 2014958
        ret = <optimized out>
        pd = 0xf7e65700
        old_mask = {__val = {3, 1452320848}}
        ret = <optimized out>
#2  0xf78896ef in __pthread_kill_internal (signo=6, threadid=4159067904) at pthread_kill.c:78
No locals.
#3  0xf7835677 in __GI_raise (sig=6) at ../sysdeps/posix/raise.c:26
        ret = <optimized out>
#4  0xf781e126 in __GI_abort () at abort.c:79
--Type <RET> for more, q to quit, c to continue without paging--
        save_stage = 1
        act = {__sigaction_handler = {sa_handler = 0x20, sa_sigaction = 0x20}, sa_mask = {__val = {0, 4294967295, 4154588724, 0, 1452311728, 1452118032, 0, 7, 4156546868, 4156551304, 4158858944, 4, 0, 4294949768, 514859264, 4, 1452317600, 1452118032, 514859264, 1452113064, 4294949696, 4294951064, 4158858944, 1452113064, 4294950180, 4294951064, 4153620183, 2, 4158276788, 
              4294949740, 2, 4}}, sa_flags = 4, sa_restorer = 0x4}
#5  0xf7cb3d05 in std::__glibcxx_assert_fail (file=0x5682b33d "/usr/include/c++/12.2.0/array", line=208, function=0x5682b7c4 "std::array<_Tp, _Nm>::value_type& std::array<_Tp, _Nm>::operator[](size_type) [with _Tp = VkDevice_T*; unsigned int _Nm = 3; reference = VkDevice_T*&; size_type = unsigned int]", condition=0x5682bca2 "__n < this->size()")
    at /usr/src/debug/gcc/libstdc++-v3/src/c++11/debug.cc:60
No locals.
#6  0x565df220 in std::array<VkDevice_T*, 3u>::operator[] (__n=<optimized out>, this=<optimized out>) at /usr/include/c++/12.2.0/array:208
        __PRETTY_FUNCTION__ = <optimized out>
#7  Allocation_EnumeratePhysicalDevicesIntentionalAllocFail_Test::TestBody (this=0x56905010) at /usr/src/debug/Vulkan-Loader/tests/loader_alloc_callback_tests.cpp:747
        family_count = 1
        family = {queueFlags = 1, queueCount = 1, timestampValidBits = 0, minImageTransferGranularity = {width = 1, height = 1, depth = 1}}
        dev_create_info = {dev = {sType = VK_STRUCTURE_TYPE_APPLICATION_INFO, pNext = 0x0, flags = 0, queueCreateInfoCount = 0, pQueueCreateInfos = 0x0, enabledLayerCount = 0, ppEnabledLayerNames = 0x0, enabledExtensionCount = 0, ppEnabledExtensionNames = 0x0, pEnabledFeatures = 0x0}, enabled_extensions = {<std::_Vector_base<char const*, std::allocator<char const*> >> = {
              _M_impl = {<std::allocator<char const*>> = {<std::__new_allocator<char const*>> = {<No data fields>}, <No data fields>}, <std::_Vector_base<char const*, std::allocator<char const*> >::_Vector_impl_data> = {_M_start = 0x0, _M_finish = 0x0, _M_end_of_storage = 0x0}, <No data fields>}}, <No data fields>}, 
          enabled_layers = {<std::_Vector_base<char const*, std::allocator<char const*> >> = {_M_impl = {<std::allocator<char const*>> = {<std::__new_allocator<char const*>> = {<No data fields>}, <No data fields>}, <std::_Vector_base<char const*, std::allocator<char const*> >::_Vector_impl_data> = {_M_start = 0x0, _M_finish = 0x0, 
--Type <RET> for more, q to quit, c to continue without paging--
                  _M_end_of_storage = 0x0}, <No data fields>}}, <No data fields>}, queue_info_details = {<std::_Vector_base<DeviceQueueCreateInfo, std::allocator<DeviceQueueCreateInfo> >> = {
              _M_impl = {<std::allocator<DeviceQueueCreateInfo>> = {<std::__new_allocator<DeviceQueueCreateInfo>> = {<No data fields>}, <No data fields>}, <std::_Vector_base<DeviceQueueCreateInfo, std::allocator<DeviceQueueCreateInfo> >::_Vector_impl_data> = {_M_start = 0x569084b0, _M_finish = 0x569084d4, 
                  _M_end_of_storage = 0x569084d4}, <No data fields>}}, <No data fields>}, device_queue_infos = {<std::_Vector_base<VkDeviceQueueCreateInfo, std::allocator<VkDeviceQueueCreateInfo> >> = {
              _M_impl = {<std::allocator<VkDeviceQueueCreateInfo>> = {<std::__new_allocator<VkDeviceQueueCreateInfo>> = {<No data fields>}, <No data fields>}, <std::_Vector_base<VkDeviceQueueCreateInfo, std::allocator<VkDeviceQueueCreateInfo> >::_Vector_impl_data> = {_M_start = 0x0, _M_finish = 0x0, _M_end_of_storage = 0x0}, <No data fields>}}, <No data fields>}}
        queue_info = {queue_create_info = {sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO, pNext = 0x0, flags = 0, queueFamilyIndex = 0, queueCount = 0, pQueuePriorities = 0x0}, priorities = {<std::_Vector_base<float, std::allocator<float> >> = {
              _M_impl = {<std::allocator<float>> = {<std::__new_allocator<float>> = {<No data fields>}, <No data fields>}, <std::_Vector_base<float, std::allocator<float> >::_Vector_impl_data> = {_M_start = 0x5690a9e0, _M_finish = 0x5690a9e4, _M_end_of_storage = 0x5690a9e4}, <No data fields>}}, <No data fields>}}
        returned_family_count = 1
        i = <optimized out>
        driver = <optimized out>
        inst_create_info = {instance_info = {sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO, pNext = 0x0, flags = 0, pApplicationInfo = 0xffffbdc0, enabledLayerCount = 0, ppEnabledLayerNames = 0x0, enabledExtensionCount = 0, ppEnabledExtensionNames = 0x0}, application_info = {sType = VK_STRUCTURE_TYPE_APPLICATION_INFO, pNext = 0x0, pApplicationName = 0xffffbde4 "", 
            applicationVersion = 0, pEngineName = 0xffffbdfc "", engineVersion = 0, apiVersion = 4194304}, app_name = {_M_dataplus = {<std::allocator<char>> = {<std::__new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0xffffbde4 ""}, _M_string_length = 0, {_M_local_buf = '\000' <repeats 15 times>, _M_allocated_capacity = 0}}, engine_name = {
            _M_dataplus = {<std::allocator<char>> = {<std::__new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0xffffbdfc ""}, _M_string_length = 0, {_M_local_buf = '\000' <repeats 15 times>, _M_allocated_capacity = 0}}, flags = 0, app_version = 0, engine_version = 0, api_version = 4194304, 
          enabled_layers = {<std::_Vector_base<char const*, std::allocator<char const*> >> = {_M_impl = {<std::allocator<char const*>> = {<std::__new_allocator<char const*>> = {<No data fields>}, <No data fields>}, <std::_Vector_base<char const*, std::allocator<char const*> >::_Vector_impl_data> = {_M_start = 0x0, _M_finish = 0x0, 
                  _M_end_of_storage = 0x0}, <No data fields>}}, <No data fields>}, enabled_extensions = {<std::_Vector_base<char const*, std::allocator<char const*> >> = {_M_impl = {<std::allocator<char const*>> = {<std::__new_allocator<char const*>> = {<No data fields>}, <No data fields>}, <std::_Vector_base<char const*, std::allocator<char const*> >::_Vector_impl_data> = {
--Type <RET> for more, q to quit, c to continue without paging--
                  _M_start = 0x0, _M_finish = 0x0, _M_end_of_storage = 0x0}, <No data fields>}}, <No data fields>}, fill_in_application_info = true}
        returned_physical_count = 5
        devices = {_M_elems = {0xffffbd0c, 0x1, 0x34}}
        physical_dev_count = 5
        result = <optimized out>
        tracker = {main_mutex = {<std::__mutex_base> = {_M_mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __kind = 0, __nusers = 0, {__elision_data = {__espins = 0, __eelision = 0}, __list = {__next = 0x0}}}, __size = '\000' <repeats 23 times>, __align = 0}}, <No data fields>}, settings = {should_fail_on_allocation = false, fail_after_allocations = 0, 
            should_fail_after_set_number_of_calls = true, fail_after_calls = 95}, callbacks = {pUserData = 0xffffbd34, pfnAllocation = 0x565e8de0 <MemoryTracker::public_allocation(void*, unsigned int, unsigned int, VkSystemAllocationScope)>, pfnReallocation = 0x565e9010 <MemoryTracker::public_reallocation(void*, void*, unsigned int, unsigned int, VkSystemAllocationScope)>, 
            pfnFree = 0x565e5fe0 <MemoryTracker::public_free(void*, void*)>, pfnInternalAllocation = 0x565e5f40 <MemoryTracker::public_internal_allocation_notification(void*, unsigned int, VkInternalAllocationType, VkSystemAllocationScope)>, 
            pfnInternalFree = 0x565e5f90 <MemoryTracker::public_internal_free(void*, unsigned int, VkInternalAllocationType, VkSystemAllocationScope)>}, static UNKNOWN_ALLOCATION = 4294967295, allocation_count = 22, call_count = 95, 
          allocations = {<std::_Vector_base<std::unique_ptr<char [], std::default_delete<char []> >, std::allocator<std::unique_ptr<char [], std::default_delete<char []> > > >> = {
              _M_impl = {<std::allocator<std::unique_ptr<char [], std::default_delete<char []> > >> = {<std::__new_allocator<std::unique_ptr<char [], std::default_delete<char []> > >> = {<No data fields>}, <No data fields>}, <std::_Vector_base<std::unique_ptr<char [], std::default_delete<char []> >, std::allocator<std::unique_ptr<char [], std::default_delete<char []> > > >::_Vector_impl_data> = {_M_start = 0x56909390, _M_finish = 0x569093e8, _M_end_of_storage = 0x56909b90}, <No data fields>}}, <No data fields>}, allocations_aligned = {<std::_Vector_base<void*, std::allocator<void*> >> = {
              _M_impl = {<std::allocator<void*>> = {<std::__new_allocator<void*>> = {<No data fields>}, <No data fields>}, <std::_Vector_base<void*, std::allocator<void*> >::_Vector_impl_data> = {_M_start = 0x5690c720, _M_finish = 0x5690c778, _M_end_of_storage = 0x5690cf20}, <No data fields>}}, <No data fields>}, 
          allocation_details = {<std::_Vector_base<MemoryTracker::AllocationDetails, std::allocator<MemoryTracker::AllocationDetails> >> = {
--Type <RET> for more, q to quit, c to continue without paging--
              _M_impl = {<std::allocator<MemoryTracker::AllocationDetails>> = {<std::__new_allocator<MemoryTracker::AllocationDetails>> = {<No data fields>}, <No data fields>}, <std::_Vector_base<MemoryTracker::AllocationDetails, std::allocator<MemoryTracker::AllocationDetails> >::_Vector_impl_data> = {_M_start = 0x5690f6e0, _M_finish = 0x5690f7e8, 
                  _M_end_of_storage = 0x56910ee0}, <No data fields>}}, <No data fields>}}
        instance = 0x5690cf30
        physical_devices = {<std::_Vector_base<VkPhysicalDevice_T*, std::allocator<VkPhysicalDevice_T*> >> = {_M_impl = {<std::allocator<VkPhysicalDevice_T*>> = {<std::__new_allocator<VkPhysicalDevice_T*>> = {<No data fields>}, <No data fields>}, <std::_Vector_base<VkPhysicalDevice_T*, std::allocator<VkPhysicalDevice_T*> >::_Vector_impl_data> = {_M_start = 0x5690bed0, 
                _M_finish = 0x5690bee4, _M_end_of_storage = 0x5690bee4}, <No data fields>}}, <No data fields>}
        env = {platform_shim = {shim_library = {lib_handle = 0x0, lib_path = {static path_separator = 47 '/', contents = {_M_dataplus = {<std::allocator<char>> = {<std::__new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0xffffbea8 ""}, _M_string_length = 0, {_M_local_buf = "\000\277\377\377\b\277\377\377$%\201\367\200\f\374", <incomplete sequence \367>, 
                    _M_allocated_capacity = 4294950656}}}}, platform_shim = 0x568d8960 <platform_shim>}, folders = {<std::_Vector_base<fs::FolderManager, std::allocator<fs::FolderManager> >> = {
              _M_impl = {<std::allocator<fs::FolderManager>> = {<std::__new_allocator<fs::FolderManager>> = {<No data fields>}, <No data fields>}, <std::_Vector_base<fs::FolderManager, std::allocator<fs::FolderManager> >::_Vector_impl_data> = {_M_start = 0x56907030, _M_finish = 0x56907174, _M_end_of_storage = 0x56907270}, <No data fields>}}, <No data fields>}, debug_log = {
            create_info = {sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT, pNext = 0x0, flags = 0, messageSeverity = 4369, messageType = 7, pfnUserCallback = 0x565f9e10 <DebugUtilsLogger::DebugUtilsMessengerLoggerCallback(VkDebugUtilsMessageSeverityFlagBitsEXT, unsigned int, VkDebugUtilsMessengerCallbackDataEXT const*, void*)>, pUserData = 0xffffbec8}, 
            returned_output = {_M_dataplus = {<std::allocator<char>> = {<std::__new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x569050f0 ""}, _M_string_length = 0, {_M_local_buf = "\000\020\000\000\\>\220V\210>\220V\227>\220V", _M_allocated_capacity = 4096}}}, vulkan_functions = {loader = {lib_handle = 0x56906160, lib_path = {
                static path_separator = 47 '/', contents = {_M_dataplus = {<std::allocator<char>> = {<std::__new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x569044b0 "/tmp/makepkg/sl1-vulkan-git/src/Vulkan-Loader/build32/loader/libvulkan.so.1.3.231"}, _M_string_length = 81, {_M_local_buf = "Q\000\000\000\\>\220V\210>\220V\000\000\000", 
                    _M_allocated_capacity = 81}}}}, vkGetInstanceProcAddr = 0xf7bb5e50 <vkGetInstanceProcAddr>, vkEnumerateInstanceExtensionProperties = 0xf7bb6020 <vkEnumerateInstanceExtensionProperties>, vkEnumerateInstanceLayerProperties = 0xf7bb6350 <vkEnumerateInstanceLayerProperties>, vkEnumerateInstanceVersion = 0xf7bb6670 <vkEnumerateInstanceVersion>, 
            vkCreateInstance = 0xf7bb6980 <vkCreateInstance>, vkDestroyInstance = 0xf7bb70b0 <vkDestroyInstance>, vkEnumeratePhysicalDevices = 0xf7bb7240 <vkEnumeratePhysicalDevices>, vkEnumeratePhysicalDeviceGroups = 0xf7bbac60 <vkEnumeratePhysicalDeviceGroups>, vkGetPhysicalDeviceFeatures = 0xf7bb7330 <vkGetPhysicalDeviceFeatures>, 
            vkGetPhysicalDeviceFeatures2 = 0xf7bbad40 <vkGetPhysicalDeviceFeatures2>, vkGetPhysicalDeviceFormatProperties = 0xf7bb73a0 <vkGetPhysicalDeviceFormatProperties>, vkGetPhysicalDeviceFormatProperties2 = 0xf7bbae80 <vkGetPhysicalDeviceFormatProperties2>, vkGetPhysicalDeviceImageFormatProperties = 0xf7bb7410 <vkGetPhysicalDeviceImageFormatProperties>, 
--Type <RET> for more, q to quit, c to continue without paging--
            vkGetPhysicalDeviceImageFormatProperties2 = 0xf7bbaf20 <vkGetPhysicalDeviceImageFormatProperties2>, vkGetPhysicalDeviceSparseImageFormatProperties = 0xf7bb7f60 <vkGetPhysicalDeviceSparseImageFormatProperties>, vkGetPhysicalDeviceSparseImageFormatProperties2 = 0xf7bbb100 <vkGetPhysicalDeviceSparseImageFormatProperties2>, 
            vkGetPhysicalDeviceProperties = 0xf7bb7480 <vkGetPhysicalDeviceProperties>, vkGetPhysicalDeviceProperties2 = 0xf7bbade0 <vkGetPhysicalDeviceProperties2>, vkGetPhysicalDeviceQueueFamilyProperties = 0xf7bb74f0 <vkGetPhysicalDeviceQueueFamilyProperties>, vkGetPhysicalDeviceQueueFamilyProperties2 = 0xf7bbafc0 <vkGetPhysicalDeviceQueueFamilyProperties2>, 
            vkGetPhysicalDeviceMemoryProperties = 0xf7bb7560 <vkGetPhysicalDeviceMemoryProperties>, vkGetPhysicalDeviceMemoryProperties2 = 0xf7bbb060 <vkGetPhysicalDeviceMemoryProperties2>, vkGetPhysicalDeviceSurfaceSupportKHR = 0xf7bbd550 <vkGetPhysicalDeviceSurfaceSupportKHR>, vkGetPhysicalDeviceSurfaceFormatsKHR = 0xf7bbd630 <vkGetPhysicalDeviceSurfaceFormatsKHR>, 
            vkGetPhysicalDeviceSurfacePresentModesKHR = 0xf7bbd6a0 <vkGetPhysicalDeviceSurfacePresentModesKHR>, vkGetPhysicalDeviceSurfaceCapabilitiesKHR = 0xf7bbd5c0 <vkGetPhysicalDeviceSurfaceCapabilitiesKHR>, vkEnumerateDeviceExtensionProperties = 0xf7bb7710 <vkEnumerateDeviceExtensionProperties>, 
            vkEnumerateDeviceLayerProperties = 0xf7bb77a0 <vkEnumerateDeviceLayerProperties>, vkGetPhysicalDeviceExternalBufferProperties = 0xf7bbb1b0 <vkGetPhysicalDeviceExternalBufferProperties>, vkGetPhysicalDeviceExternalFenceProperties = 0xf7bbb2f0 <vkGetPhysicalDeviceExternalFenceProperties>, 
            vkGetPhysicalDeviceExternalSemaphoreProperties = 0xf7bbb250 <vkGetPhysicalDeviceExternalSemaphoreProperties>, vkGetDeviceProcAddr = 0xf7bb5f90 <vkGetDeviceProcAddr>, vkCreateDevice = 0xf7bb75d0 <vkCreateDevice>, vkCreateDebugUtilsMessengerEXT = 0x0, vkDestroyDebugUtilsMessengerEXT = 0x0, vkCreateHeadlessSurfaceEXT = 0xf7bbdc10 <vkCreateHeadlessSurfaceEXT>, 
            vkCreateDisplayPlaneSurfaceKHR = 0xf7bbdf30 <vkCreateDisplayPlaneSurfaceKHR>, vkGetPhysicalDeviceDisplayPropertiesKHR = 0xf7bbdc90 <vkGetPhysicalDeviceDisplayPropertiesKHR>, vkGetPhysicalDeviceDisplayPlanePropertiesKHR = 0xf7bbdd00 <vkGetPhysicalDeviceDisplayPlanePropertiesKHR>, 
            vkGetDisplayPlaneSupportedDisplaysKHR = 0xf7bbdd70 <vkGetDisplayPlaneSupportedDisplaysKHR>, vkGetDisplayModePropertiesKHR = 0xf7bbdde0 <vkGetDisplayModePropertiesKHR>, vkCreateDisplayModeKHR = 0xf7bbde50 <vkCreateDisplayModeKHR>, vkGetDisplayPlaneCapabilitiesKHR = 0xf7bbdec0 <vkGetDisplayPlaneCapabilitiesKHR>, 
            vkGetPhysicalDevicePresentRectanglesKHR = 0xf7bbe100 <vkGetPhysicalDevicePresentRectanglesKHR>, vkGetPhysicalDeviceDisplayProperties2KHR = 0xf7bbe1e0 <vkGetPhysicalDeviceDisplayProperties2KHR>, vkGetPhysicalDeviceDisplayPlaneProperties2KHR = 0xf7bbe250 <vkGetPhysicalDeviceDisplayPlaneProperties2KHR>, 
            vkGetDisplayModeProperties2KHR = 0xf7bbe2c0 <vkGetDisplayModeProperties2KHR>, vkGetDisplayPlaneCapabilities2KHR = 0xf7bbe330 <vkGetDisplayPlaneCapabilities2KHR>, vkGetPhysicalDeviceSurfaceCapabilities2KHR = 0xf7bbe3a0 <vkGetPhysicalDeviceSurfaceCapabilities2KHR>, vkGetPhysicalDeviceSurfaceFormats2KHR = 0xf7bbe410 <vkGetPhysicalDeviceSurfaceFormats2KHR>, 
            vkCreateWaylandSurfaceKHR = 0xf7bbd940 <vkCreateWaylandSurfaceKHR>, vkGetPhysicalDeviceWaylandPresentationSupportKHR = 0xf7bbd9c0 <vkGetPhysicalDeviceWaylandPresentationSupportKHR>, vkCreateXcbSurfaceKHR = 0xf7bbda30 <vkCreateXcbSurfaceKHR>, vkGetPhysicalDeviceXcbPresentationSupportKHR = 0xf7bbdab0 <vkGetPhysicalDeviceXcbPresentationSupportKHR>, 
            vkCreateXlibSurfaceKHR = 0xf7bbdb20 <vkCreateXlibSurfaceKHR>, vkGetPhysicalDeviceXlibPresentationSupportKHR = 0xf7bbdba0 <vkGetPhysicalDeviceXlibPresentationSupportKHR>, vkDestroySurfaceKHR = 0xf7bbd4d0 <vkDestroySurfaceKHR>, vkDestroyDevice = 0xf7bb7670 <vkDestroyDevice>, vkGetDeviceQueue = 0xf7bb7940 <vkGetDeviceQueue>}, 
          icds = {<std::_Vector_base<TestICDHandle, std::allocator<TestICDHandle> >> = {_M_impl = {<std::allocator<TestICDHandle>> = {<std::__new_allocator<TestICDHandle>> = {<No data fields>}, <No data fields>}, <std::_Vector_base<TestICDHandle, std::allocator<TestICDHandle> >::_Vector_impl_data> = {_M_start = 0x5690b600, _M_finish = 0x5690b63c, 
                  _M_end_of_storage = 0x5690b63c}, <No data fields>}}, <No data fields>}, layers = {<std::_Vector_base<TestLayerHandle, std::allocator<TestLayerHandle> >> = {
--Type <RET> for more, q to quit, c to continue without paging--
              _M_impl = {<std::allocator<TestLayerHandle>> = {<std::__new_allocator<TestLayerHandle>> = {<No data fields>}, <No data fields>}, <std::_Vector_base<TestLayerHandle, std::allocator<TestLayerHandle> >::_Vector_impl_data> = {_M_start = 0x56908b90, _M_finish = 0x56908bcc, _M_end_of_storage = 0x56908bcc}, <No data fields>}}, <No data fields>}, 
          env_var_vk_icd_filenames = {_M_dataplus = {<std::allocator<char>> = {<std::__new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0xffffc024 ""}, _M_string_length = 0, {_M_local_buf = "\000\376\241\367\300\377\377\377ǒ\211\367\000n\310", <incomplete sequence \367>, _M_allocated_capacity = 4154588672}}, add_env_var_vk_icd_filenames = {
            _M_dataplus = {<std::allocator<char>> = {<std::__new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0xffffc03c ""}, _M_string_length = 0, {_M_local_buf = "\000\206^V`$\220V\300ߍV7\000\000", _M_allocated_capacity = 1449035264}}, env_var_vk_layer_paths = {
            _M_dataplus = {<std::allocator<char>> = {<std::__new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0xffffc054 ""}, _M_string_length = 0, {_M_local_buf = "\000|\215V`P\220V7\000\000\000\264\000\000", _M_allocated_capacity = 1452112896}}, add_env_var_vk_layer_paths = {
            _M_dataplus = {<std::allocator<char>> = {<std::__new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0xffffc06c ""}, _M_string_length = 0, {_M_local_buf = "\000P\220V P\220V\250|\215V\330\300\377\377", _M_allocated_capacity = 1452298240}}}
        layer_name = 0x5682b36e "VkLayerImplicit0"
        fail_index = <optimized out>
        reached_the_end = false
        starting_physical_dev_count = 3
#8  0x56816fbc in testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void> (location=0x5685691c "the test body", method=&virtual testing::Test::TestBody(), object=0x56905010) at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:2607
No locals.
#9  testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void> (object=0x56905010, method=&virtual testing::Test::TestBody(), location=0x5685691c "the test body") at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:2643
No locals.
#10 0x568046e4 in testing::Test::Run (this=this@entry=0x56905010) at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:2682
--Type <RET> for more, q to quit, c to continue without paging--
        impl = 0x568dddb0
#11 0x56804f88 in testing::Test::Run (this=0x56905010) at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:2673
        impl = <optimized out>
#12 testing::TestInfo::Run (this=0x568def50) at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:2861
        impl = 0x568dddb0
        repeater = 0x568ddf20
        timer = <optimized out>
        test = 0x56905010
#13 0x568059b9 in testing::TestInfo::Run (this=<optimized out>) at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:2834
        impl = <optimized out>
        repeater = <optimized out>
        timer = <optimized out>
        test = <optimized out>
        impl = <optimized out>
--Type <RET> for more, q to quit, c to continue without paging--
        repeater = <optimized out>
        timer = <optimized out>
        test = <optimized out>
#14 testing::TestSuite::Run (this=0x568de000) at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:3015
        i = 10
        impl = 0x568dddb0
        repeater = 0x568ddf20
        timer = <optimized out>
#15 0x56806e6c in testing::TestSuite::Run (this=<optimized out>) at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:2994
        impl = <optimized out>
        repeater = <optimized out>
        timer = <optimized out>
        i = <optimized out>
        j = <optimized out>
--Type <RET> for more, q to quit, c to continue without paging--
#16 testing::internal::UnitTestImpl::RunAllTests (this=0x568dddb0) at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:5855
        test_index = 0
        timer = <optimized out>
        i = 0
        gtest_is_initialized_before_run_all_tests = true
        in_subprocess_for_death_test = <optimized out>
        should_shard = <optimized out>
        has_tests_to_run = true
        failed = false
        repeater = <optimized out>
        repeat = <optimized out>
        gtest_repeat_forever = <optimized out>
#17 0x56807a4a in testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (location=0x56859074 "auxiliary test code (environments or event listeners)", method=<optimized out>, object=0x568dddb0) at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:2588
No locals.
--Type <RET> for more, q to quit, c to continue without paging--
#18 testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (location=0x56859074 "auxiliary test code (environments or event listeners)", method=(bool (testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl * const)) 0x56805dc0 <testing::internal::UnitTestImpl::RunAllTests()>, object=0x568dddb0)
    at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:2643
No locals.
#19 testing::UnitTest::Run (this=0x568d88e0 <testing::UnitTest::GetInstance()::instance>) at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/src/gtest.cc:5438
        in_death_test_child_process = <optimized out>
        premature_exit_file = {premature_exit_filepath_ = {_M_dataplus = {<std::allocator<char>> = {<std::__new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0xffffc384 ""}, _M_string_length = 0, {_M_local_buf = "\000\303\377\377\003\000\000\000\000\000\000\000\260ݍV", _M_allocated_capacity = 4294951680}}}
#20 0x565c1857 in RUN_ALL_TESTS () at /usr/src/debug/Vulkan-Loader/external/googletest/googletest/include/gtest/gtest.h:2490
No locals.
#21 main (argc=<optimized out>, argv=0xffffc524) at /usr/src/debug/Vulkan-Loader/tests/loader_testing_main.cpp:72
        result = <optimized out>
(gdb) 

gdb 406 have 'no stack'

@charles-lunarg charles-lunarg force-pushed the fix_linux_32bit_unknown_function_error_path branch from 7f063c1 to 651da0c Compare October 25, 2022 14:02
@ci-tester-lunarg
Copy link

CI Vulkan-Loader build queued with queue ID 20246.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 1566 running.

The issue was that passing a string to loader_log wouldn't work, likely due
to relocation issues. Workaround is to create a bespoke function that contained
the format string embedded in it.

Additionally, CMAKE_SYSTEM_PROCESSOR is incorrect in the case of x86 builds on
x64. Checking for sizeof(void*) == 8 allows distinguishing building for 32 bit
and 64 bit, and so the correct gen_defines.asm is created while cross compiling.

Also rename the error to note that its a function which isn't supported, not
an extension.
@charles-lunarg charles-lunarg force-pushed the fix_linux_32bit_unknown_function_error_path branch from 651da0c to 6c97b39 Compare October 25, 2022 14:04
@ci-tester-lunarg
Copy link

CI Vulkan-Loader build queued with queue ID 20260.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 1567 running.

@ci-tester-lunarg
Copy link

CI Vulkan-Loader build # 1567 passed.

@sl1pkn07
Copy link

Hi i found "strange"? behavior

is normal the test 406 (32bits) passed with -DCMAKE_BUILD_TYPE=Debug and failed with -DCMAKE_BUILD_TYPE=Release?

@charles-lunarg
Copy link
Collaborator Author

I was able to build & run the github actions script you wrote up (with some modifications) and found that test 406 failed in debug mode, with a similar error to you.

Failing in release vs debug mode isn't good, so I definitely need to check that out. This PR definitely isn't ready to merge, as the change doesn't seem to fix the unknown function path.

@charles-lunarg
Copy link
Collaborator Author

On further inspection, the test only fails when address sanitizer is active. I suspect that there is a bug in it but I have no proof. Because I can get the code to behave like I expect without ASAN active, I'm going to note it as a 'known issue' rather than hold up this fix.

@charles-lunarg charles-lunarg merged commit f57610d into master Oct 25, 2022
@charles-lunarg charles-lunarg deleted the fix_linux_32bit_unknown_function_error_path branch October 25, 2022 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unittest works builded on 64bits, but failed in 32bits (segfault)
3 participants