View Issue Details

IDProjectCategoryView StatusLast Update
0000021Kohi EngineBugspublic2026-11-18 02:07
Reportertheancientfool Assigned Totravisvroman  
PrioritynormalSeveritycrashReproducibilityhave not tried
Status feedbackResolutionopen 
PlatformDesktop (Windows)OSWindowsOS Version10+
Summary0000021: Problem in the kvkCreateGraphicsPipelines function
Description

I ran the engine in vscode in debug mode and the engine stopped at line: 4595 in vulkan_backend.c and this is the exception:

Exception has occurred: W32/0xC0000005
Unhandled exception at 0x00007FFD1619CE60 (amdvlk64.dll) in testbed.kapp.exe: 0xC0000005: Access violation reading location 0x0000000000000040.

TagsNo tags attached.
Revision

Activities

travisvroman

2026-11-15 14:25

administrator   ~0000017

Thanks for reporting this!

Two things:

  1. Try going into application config located in testbed.kapp/application_config.kson and setting enable_validation to true. It should be around like 78. Re-run the application.
  2. After turning on validation, please attach the bin/console.log file here so I can hopefully see what is going on.

Thank you!

theancientfool

2026-11-16 11:46

reporter   ~0000019

This is the console.log. I suspect this might be an error with the vulkan sdk so I'll try to reinstall it.

console.log (5,296 bytes)   
[INFO]:  SYSTEM_OS	Windows 10 Pro 64-bit 10.0 ( kernel: NT 10.0.19045, build: 19045)
[INFO]:  SYSTEM_CPU	AMD A10 PRO-7800B R7, 12 Compute Cores 4C+8G    (4 CPUs) ~3.5GHz
[INFO]:  SYSTEM_CPU_CORES	2 Physical, 4 Logical
[INFO]:  SYSTEM_CPU_FEATURES	SSE=yes SSE2=yes SSE3=yes SSSE3=yes SSE4.1=yes SSE4.2=yes AVX=yes AVX2=no
[INFO]:  SYSTEM_MEMORY	6.98 GB (0.46 GiB available) Speed: 1600MHz
[INFO]:  SYSTEM_STORAGE	C:\	KDRIVE_TYPE_FIXED	SYSTEM_TOTAL_DISC_SPACE	78.773GiB	SYSTEM_FREE_DISC_SPACE	1.953GiB
[INFO]:  SYSTEM_STORAGE	D:\	KDRIVE_TYPE_FIXED	SYSTEM_TOTAL_DISC_SPACE	147.552GiB	SYSTEM_FREE_DISC_SPACE	8.139GiB
[INFO]:  SYSTEM_STORAGE	E:\	KDRIVE_TYPE_FIXED	SYSTEM_TOTAL_DISC_SPACE	250.236GiB	SYSTEM_FREE_DISC_SPACE	95.365GiB
[INFO]:  SYSTEM_STORAGE	F:\	KDRIVE_TYPE_FIXED	SYSTEM_TOTAL_DISC_SPACE	67.972GiB	SYSTEM_FREE_DISC_SPACE	39.351GiB
[INFO]:  Kohi Runtime v0.14.0.r00126 (Debug)
[INFO]:  monitor: 0
[INFO]:  Time to window open is 2.289040 seconds.
[INFO]:  Kohi UI Plugin Creation successful (v0.14.0.r00126).
[INFO]:  Plugin 'kohi.plugin.ui.kui' successfully loaded.
[INFO]:  Kohi Utils Plugin Creation successful (v0.14.0.r00126).
[INFO]:  Plugin 'kohi.plugin.utils' successfully loaded.
[INFO]:  Vulkan Renderer Plugin Creation successful (v0.14.0.r00126).
[INFO]:  Plugin 'kohi.plugin.renderer.vulkan' successfully loaded.
[INFO]:  OpenAL Plugin Creation successful (v0.14.0.r00126).
[INFO]:  Plugin 'kohi.plugin.audio.openal' successfully loaded.
[INFO]:  Windows platform input initialized.
[INFO]:  Input subsystem initialized.
[DEBUG]: Required extensions:
[DEBUG]: VK_KHR_surface
[DEBUG]: VK_KHR_win32_surface
[DEBUG]: VK_EXT_debug_utils
[INFO]:  Required exension found: VK_KHR_surface...
[INFO]:  Required exension found: VK_KHR_win32_surface...
[INFO]:  Required exension found: VK_EXT_debug_utils...
[INFO]:  Validation layers enabled. Enumerating...
[INFO]:  Found validation layer: VK_LAYER_KHRONOS_validation...
[INFO]:  All required validation layers are present.
[INFO]:  Vulkan Instance created.
[DEBUG]: Creating Vulkan debugger...
[DEBUG]: Vulkan debugger created.
[INFO]:  Vulkan: Discrete GPU is NOT required.
[INFO]:  Evaluating device: 'AMD Radeon(TM) R7 Graphics', index 0.
[INFO]:  Graphics | Present | Compute | Transfer | Name
[INFO]:         1 |       1 |       1 |        1 | AMD Radeon(TM) R7 Graphics
[INFO]:  Device meets queue requirements.
[TRACE]: Graphics Family Index: 0
[TRACE]: Present Family Index:  0
[TRACE]: Transfer Family Index: 2
[TRACE]: Compute Family Index:  1
[INFO]:  Selected device: 'AMD Radeon(TM) R7 Graphics'.
[INFO]:  GPU type is Integrated.
[INFO]:  GPU Driver version: 20.10.35.02
[INFO]:  Vulkan API version: 1.2.2
[INFO]:  Local GPU memory: 0.69 GiB
[INFO]:  Shared System memory: 3.24 GiB
[INFO]:  Local GPU memory: 0.25 GiB
[INFO]:  Physical device selected.
[INFO]:  Creating logical device...
[INFO]:  Inserted device layer "VK_LAYER_KHRONOS_validation" (E:\Vulkan\Bin\VkLayer_khronos_validation.dll)
[INFO]:  Failed to find vkGetDeviceProcAddr in layer "C:\Windows\System32\DriverStore\FileRepository\u0360470.inf_amd64_35c64671e7fac064\B360357\amdvlk64.dll"
[INFO]:  vkCreateDevice layer callstack setup to:
[INFO]:     <Application>
[INFO]:       ||
[INFO]:     <Loader>
[INFO]:       ||
[INFO]:     VK_LAYER_KHRONOS_validation
[INFO]:             Type: Explicit
[INFO]:             Enabled By: By the Application
[INFO]:             Manifest: E:\Vulkan\Bin\VkLayer_khronos_validation.json
[INFO]:             Library:  E:\Vulkan\Bin\VkLayer_khronos_validation.dll
[INFO]:       ||
[INFO]:     <Device>
[INFO]:         Using "AMD Radeon(TM) R7 Graphics" with driver: "C:\Windows\System32\DriverStore\FileRepository\u0360470.inf_amd64_35c64671e7fac064\B360357\amdvlk64.dll"
[INFO]:  vkCreateDevice(): Cannot open shader validation cache at C:\Users\ahmed\AppData\Local\Temp/shader_validation_cache.bin for reading (it may not exist yet)
[INFO]:  Logical device created.
[WARN]:  Vulkan device does not support native or extension dynamic state. This may cause issues with the renderer.
[INFO]:  Queues obtained.
[INFO]:  Graphics command pool created.
[INFO]:  Renderer config requests triple-buffering to be used.
[INFO]:  Vulkan renderer initialized successfully.
[INFO]:  4 processor cores detected.
[DEBUG]: Available threads: 3
[DEBUG]: Main thread id is: 0x1ec8
[DEBUG]: Spawning 3 job threads.
[INFO]:  Successfully loaded OpenAL lib 'OpenAL32'.
[INFO]:  OpenAL Device acquired.
[INFO]:  OpenAL plugin intialized.
[DEBUG]: Created matrix global storage buffer.
[DEBUG]: Initializing texture system...
[DEBUG]: Texture system initialization complete.
[DEBUG]: Creating Vulkan surface for window 'main_window'...
[DEBUG]: Vulkan surface created for window 'main_window'.
[DEBUG]: Swapchain image format CAN be a blit destination.
[DEBUG]: Swapchain image format CAN be a blit source.
[INFO]:  Swapchain created successfully.
[DEBUG]: Vulkan command buffers created.
[DEBUG]: Vulkan command buffers created.
[INFO]:  Vulkan renderer backend->resized: w/h/gen: 1604/881/1
[DEBUG]: Created lighting global storage buffer.
[DEBUG]: Created kanimation global storage buffer.
[DEBUG]: Created material global storage buffer.
console.log (5,296 bytes)   

travisvroman

2026-11-18 01:21

administrator   ~0000020

Last edited: 2026-11-18 02:07

I think I see the issue actually. According to the logs, your driver is using Vulkan API version: 1.2.2, which does not support dynamic state in core (it has to be loaded as an extension). I had (very) recently removed this because I didn't think anyone would be using drivers that out of date. But for laptops I suppose this makes sense.

I'll have to add in some version detection that attempts to load the extension if present.

If it's not though, the device simply won't be able to run this using Vulkan. That's one of the reasons I have D3D12 support planned as a fallback for win32, though not developed.

Are there more current drivers available for you in the meantime?

Edit: I pushed a small change to trunk to see if this fixes it. Available as of r130.

Issue History

Date Modified Username Field Change
2026-11-14 12:48 theancientfool New Issue
2026-11-14 12:48 theancientfool Status new => assigned
2026-11-14 12:48 theancientfool Assigned To => travisvroman
2026-11-15 14:25 travisvroman Status assigned => feedback
2026-11-15 14:25 travisvroman Note Added: 0000017
2026-11-16 11:46 theancientfool Note Added: 0000019
2026-11-16 11:46 theancientfool File Added: console.log
2026-11-16 11:46 theancientfool Status feedback => assigned
2026-11-18 01:21 travisvroman Status assigned => feedback
2026-11-18 01:21 travisvroman Note Added: 0000020
2026-11-18 02:07 travisvroman Note Edited: 0000020