Describe the bug
i have no idea ... but this is what the terminal prints, when i run testbed out of the bin directory
[ERROR]: Validation Error: [ VUID-VkFramebufferCreateInfo-renderPass-parameter ] Object 0: handle = 0x1714ab0, type = VK_OBJECT_TYPE_INSTANCE; | MessageID = 0x98a2a472 | Invalid VkRenderPass Object 0xcb1c7c000000001b. The Vulkan spec states: renderPass must be a valid VkRenderPass handle (https://vulkan.lunarg.com/doc/view/1.3.204.0/linux/1.3-extensions/vkspec.html#VUID-VkFramebufferCreateInfo-renderPass-parameter)
[DEBUG]: Vulkan command buffers created.
[ERROR]: Error opening file: '../assets//shaders/Builtin.MaterialShader.vert.spv'
[ERROR]: binary_loader_load - unable to open file for binary reading: '../assets//shaders/Builtin.MaterialShader.vert.spv'.
[ERROR]: Unable to read shader module: shaders/Builtin.MaterialShader.vert.spv.
[ERROR]: Unable to create vert shader module for 'Builtin.MaterialShader'.
[ERROR]: Error loading built-in basic_lighting shader.
[FATAL]: Renderer backend failed to initialize. Shutting down.
[FATAL]: Failed to initialize renderer. Aborting application.
[FATAL]: Application failed to create!.
the compilations finished without errors
To Reproduce
Steps to reproduce the behavior:
sudo apt install vulkan-sdk clang libx11-dev libxkbcommon-x11-dev libx11-xcb-dev
./build-all.sh
cd testbed/
./build.sh
cd ..
cd bin
./testbed
Expected behavior
i have a too new version of the VULKAN_SDK ?
i have the version 1.3.204.0 installed with the "debian package"-methode
Screenshots
a window show up a fragtoin of a secound ... but nothing to take a screenshot of ^^
Desktop (please complete the following information):
- OS: Ubuntu 21.10
- GPU: Radeon RX 6600 XT
- neofetch:
OS: Kubuntu 21.04 x86_64
Kernel: 5.11.0-44-generic
Uptime: 10 days, 4 hours, 19 mins
Packages: 4050 (dpkg), 22 (snap)
Shell: bash 5.1.4
Resolution: 3840x2160, 3840x2160, 3840x2160, 3840x2160
DE: Plasma
WM: KWin
Theme: Breeze Light [Plasma], Breeze [GTK2/3]
Icons: breeze [Plasma], breeze [GTK2/3]
Terminal: konsole
CPU: AMD Ryzen 9 5950X (32) @ 3.400GHz
GPU: AMD ATI 0b:00.0 Navi 23
Memory: 14418MiB / 128731MiB
complete log:
build kohi:
Building everything...
Scaffolding folder structure...
Done.
Compiling...
engine/src/platform/platform_linux.c...
engine/src/platform/platform_win32.c...
Linking engine...
Scaffolding folder structure...
Done.
Compiling...
testbed/src/entry.c...
testbed/src/game.c...
Linking testbed...
clang obj/testbed/src/entry.c.o obj/testbed/src/game.c.o -o bin/testbed -L./bin/ -lengine -Wl,-rpath,.
Scaffolding folder structure...
Done.
Compiling...
tests/src/memory/linear_allocator_tests.c...
tests/src/memory/dynamic_allocator_tests.c...
tests/src/test_manager.c...
tests/src/main.c...
tests/src/containers/freelist_tests.c...
tests/src/containers/hashtable_tests.c...
Linking tests...
clang obj/tests/src/memory/linear_allocator_tests.c.o obj/tests/src/memory/dynamic_allocator_tests.c.o obj/tests/src/test_manager.c.o obj/tests/src/main.c.o obj/tests/src/containers/freelist_tests.c.o obj/tests/src/containers/hashtable_tests.c.o -o bin/tests -L./bin/ -lengine -Wl,-rpath,.
All assemblies built successfully.
build testbed:
Building testbed...
clang ./src/entry.c ./src/game.c -g -fdeclspec -fPIC -o ../bin/testbed -D_DEBUG -DKIMPORT -Isrc -I../engine/src/ -L../bin/ -lengine -Wl,-rpath,.
running testbed:
[FATAL]: A test message: 3.140000
[ERROR]: A test message: 3.140000
[WARN]: A test message: 3.140000
[INFO]: A test message: 3.140000
[DEBUG]: A test message: 3.140000
[TRACE]: A test message: 3.140000
[INFO]: Input subsystem initialized.
[TRACE]: Loader registered.
[TRACE]: Loader registered.
[TRACE]: Loader registered.
[TRACE]: Loader registered.
[INFO]: Resource system initialized with base path '../assets'.
[DEBUG]: Required extensions:
[DEBUG]: VK_KHR_surface
[DEBUG]: VK_KHR_xcb_surface
[DEBUG]: VK_EXT_debug_utils
[INFO]: Validation layers enabled. Enumerating...
[INFO]: Searching for layer: VK_LAYER_KHRONOS_validation...
[INFO]: Found.
[INFO]: All required validation layers are present.
WARNING: radv is not a conformant vulkan implementation, testing use only.
[INFO]: Vulkan Instance created.
[DEBUG]: Creating Vulkan debugger...
[DEBUG]: Vulkan debugger created.
[DEBUG]: Creating Vulkan surface...
[DEBUG]: Vulkan surface created.
[INFO]: Evaluating device: 'AMD RADV DIMGREY_CAVEFISH (ACO)', index 0.
[INFO]: Graphics | Present | Compute | Transfer | Name
[INFO]: 1 | 1 | 1 | 1 | AMD RADV DIMGREY_CAVEFISH (ACO)
[INFO]: Device meets queue requirements.
[TRACE]: Graphics Family Index: 0
[TRACE]: Present Family Index: 0
[TRACE]: Transfer Family Index: 1
[TRACE]: Compute Family Index: 1
[INFO]: Selected device: 'AMD RADV DIMGREY_CAVEFISH (ACO)'.
[INFO]: GPU type is Descrete.
[INFO]: GPU Driver version: 21.0.3
[INFO]: Vulkan API version: 1.2.145
[INFO]: Local GPU memory: 7.75 GiB
[INFO]: Shared System memory: 7.98 GiB
[INFO]: Local GPU memory: 0.25 GiB
[INFO]: Physical device selected.
[INFO]: Creating logical device...
[INFO]: Loading layer library libVkLayer_khronos_validation.so
[INFO]: Inserted device layer VK_LAYER_KHRONOS_validation (libVkLayer_khronos_validation.so)
[INFO]: Loading layer library libVkLayer_MESA_device_select.so
[INFO]: Failed to find vkGetDeviceProcAddr in layer libVkLayer_MESA_device_select.so
[INFO]: Validation Information: [ UNASSIGNED-cache-file-error ] Object 0: handle = 0x1fbf620, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0xf0bb3995 | Cannot open shader validation cache at //tmp//shader_validation_cache-1000.bin for reading (it may not exist yet)
[INFO]: Logical device created.
[INFO]: Queues obtained.
[INFO]: Graphics command pool created.
[INFO]: Swapchain created successfully.
[ERROR]: Validation Error: [ VUID-VkFramebufferCreateInfo-renderPass-parameter ] Object 0: handle = 0x1714ab0, type = VK_OBJECT_TYPE_INSTANCE; | MessageID = 0x98a2a472 | Invalid VkRenderPass Object 0xcb1c7c000000001b. The Vulkan spec states: renderPass must be a valid VkRenderPass handle (https://vulkan.lunarg.com/doc/view/1.3.204.0/linux/1.3-extensions/vkspec.html#VUID-VkFramebufferCreateInfo-renderPass-parameter)
[DEBUG]: Vulkan command buffers created.
[ERROR]: Error opening file: '../assets//shaders/Builtin.MaterialShader.vert.spv'
[ERROR]: binary_loader_load - unable to open file for binary reading: '../assets//shaders/Builtin.MaterialShader.vert.spv'.
[ERROR]: Unable to read shader module: shaders/Builtin.MaterialShader.vert.spv.
[ERROR]: Unable to create vert shader module for 'Builtin.MaterialShader'.
[ERROR]: Error loading built-in basic_lighting shader.
[FATAL]: Renderer backend failed to initialize. Shutting down.
[FATAL]: Failed to initialize renderer. Aborting application.
[FATAL]: Application failed to create!.