Search code examples
c++drivervulkan

vkCreateInstance() crashes even after updating drivers


I've been using the Vulkan API on Windows for a while without problems. But recently my Vulkan application started having issues. It crashes at vkCreateInstance() and outputs this warning:

WARNING: dzn is not a conformant Vulkan implementation, testing use only.

It looks like a driver issue, so I updated the drivers of the integrated GPU (AMD) and discrete GPU (Nvidia), and updated Vulkan SDK (LunarG), but the issue persists. Also, I cannot run Vulkan SDK's demos (like vkCube or vkconfig).

It's worth mentioning that sometimes (not very often) the vkCreateInstance() doesn't crash (but the warning is still shown) and execution continues without further problems, rendering everything just fine.

Running older versions of my application (from repository) that worked fine in the past also get this warning and crash. I don't know what else I can do to prevent vkCreateInstance() from crashing. This didn't happen ever before.

  • Discrete physical device (I pick this): NVIDIA GeForce RTX 3050 Ti Laptop GPU
  • Integrated physical device: AMD Radeon (TM) Graphics
  • Vulkan SDK version: 1.3.275.0.
  • OS: Windows 11

Edit (solution):

Apparently, the issue is caused by the "OpenCL, OpenGL, and Vulkan Compatibility Pack". After uninstalling it, the problem was solved.

This issue started the 29/01/2024, the same day this pack was installed (probably automatically by "Windows Update"), and it affected many people using Vulkan. Its purpose is to allow OpenCL, OpenGL, and Vulkan apps to run on Windows 10 or 11 PCs that doesn't have the required hardware drivers installed by default. However, it looks like it contained a bug that caused this issue.


Solution

  • I had the same problem too. I had been working on it for 5 hours. Then I saw that the "OpenCL™, OpenGL®, and Vulkan® Compatibility Pack" in the Windows Store had been updated yesterday. When I uninstalled it, the problem was solved. https://apps.microsoft.com/detail/9NQPSL29BFFF?hl=en&gl=US