Hello, I’m a Vulkan beginner.
I found that in my engine, the vulkan raytracing pipeline object seems memory leak.
just put creating and destorying pipeline in a loop
for(int i = 0; i < 1000; ++i)
{
vkCreateRayTracingPipelinesNV(device, VK_NULL_HANDLE, 1, &rayPipelineInfo, nullptr, &pipeline);
vkDestroyPipeline(device, pipeline, nullptr);
}
the GPU memory and CPU memory will continue to increase, final vulkan will return ‘Device Lost’ error.
linux system info:
Vulkan SDK 1.1.114
Linux version 5.0.0-29-generic (buildd@lgw01-amd64-039) (gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1))
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 435.21 Driver Version: 435.21 CUDA Version: 10.1 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce RTX 2080 Off | 00000000:01:00.0 On | N/A |
| 32% 33C P8 20W / 215W | 1031MiB / 7959MiB | 9% Default |
+-------------------------------+----------------------+----------------------+
window also get same issues, system info:
Vulkan SDK 1.1.114
Windows 10 pro 64bit, RTX 2060, driver version: 431.60