Vulkan rendering crashing, in master
[WARNING] WARNING: [Validation] Code 0: [ UNASSIGNED-CoreValidation-Shader-OutputNotConsumed ] Object: 0x377 (Type = 15) | fragment shader writes to output location 0 with no matching attachment
in unsigned int __cdecl bs::ct::debugMsgCallback(unsigned int,enum VkDebugReportObjectTypeEXT,unsigned __int64,unsigned __int64,int,const char *,const char *,void *) [C:\dev\bsf\Source\Plugins\bsfVulkanRenderAPI\BsVulkanRenderAPI.cpp:85]
[FATAL] A fatal error occurred and the program has to terminate!
-
Error: RenderingAPIException
-
Description: ERROR: [Validation] Code 0: [ UNASSIGNED-CoreValidation-DrawState-InvalidQuery ] Object: 0x2d7 (Type = 12) | vkGetQueryPoolResults() on VkQueryPool 0x2d7[] and query 1: query may return no data
-
In function: unsigned int __cdecl bs::ct::debugMsgCallback(unsigned int,enum VkDebugReportObjectTypeEXT,unsigned __int64,unsigned __int64,int,const char *,const char *,void *)
-
In file: C:\dev\bsf\Source\Plugins\bsfVulkanRenderAPI\BsVulkanRenderAPI.cpp:83
Stack trace:
bs::CrashHandler::reportCrash() - 0x140710815611302 File[BsWin32CrashHandler.cpp:482 (0)] Module[bsf.dll]
bs::ct::debugMsgCallback() - 0x140711005905877 File[BsVulkanRenderAPI.cpp:83 (156)] Module[bsfVulkanRenderAPI.dll]
debug_log_msg() - 0x140710779131465 File[vk_layer_logging.h:484 (67)] Module[VkLayer_khronos_validation.dll]
log_msg() - 0x140710779178682 File[vk_layer_logging.h:1011 (74)] Module[VkLayer_khronos_validation.dll]
CoreChecks::PreCallValidateGetQueryPoolResults() - 0x140710778809024 File[core_validation.cpp:4023 (247)] Module[VkLayer_khronos_validation.dll]
vulkan_layer_chassis::GetQueryPoolResults() - 0x140710777800935 File[chassis.cpp:1885 (69)] Module[VkLayer_khronos_validation.dll]
0x140712054745304 Module[vulkan-1.dll]
bs::ct::VulkanQuery::getResult() - 0x140711007180332 File[BsVulkanQueryManager.cpp:201 (81)] Module[bsfVulkanRenderAPI.dll]
bs::ct::VulkanTimerQuery::isReady() - 0x140711005653252 File[BsVulkanTimerQuery.cpp:125 (41)] Module[bsfVulkanRenderAPI.dll]
bs::ct::QueryManager::_update() - 0x140710826592770 File[BsQueryManager.cpp:49 (48)] Module[bsf.dll]
std::_Invoker_pmf_pointer::_Call<void (__cdecl bs::ct::QueryManager::)(void),bs::ct::QueryManager * &>() - 0x140710824574724 File[type_traits:1457 (68)] Module[bsf.dll]
std::invoke<void (__cdecl bs::ct::QueryManager::&)(void),bs::ct::QueryManager * &>() - 0x140710824597072 File[type_traits:1457 (96)] Module[bsf.dll]
std::_Invoker_retstd::_Unforced,0::_Call<void (__cdecl bs::ct::QueryManager::&)(void),bs::ct::QueryManager * &>() - 0x140710824573776 File[type_traits:1493 (0)] Module[bsf.dll]
std::_Call_binder<std::_Unforced,0,void (__cdecl bs::ct::QueryManager::)(void),std::tuple<bs::ct::QueryManager >,std::tuple<> >() - 0x140710824575175 File[functional:1486 (0)] Module[bsf.dll]
std::_Binder<std::_Unforced,void (__cdecl bs::ct::QueryManager::)(void),bs::ct::QueryManager >::operator()<>() - 0x140710824571642 File[functional:1531 (138)] Module[bsf.dll]
std::_Invoker_functor::_Call<std::_Binder<std::_Unforced,void (__cdecl bs::ct::QueryManager::)(void),bs::ct::QueryManager > &>() - 0x140710824574222 File[type_traits:1457 (62)] Module[bsf.dll]
std::invoke<std::_Binder<std::_Unforced,void (__cdecl bs::ct::QueryManager::)(void),bs::ct::QueryManager > &>() - 0x140710824597422 File[type_traits:1457 (62)] Module[bsf.dll]
std::_Invoker_ret<void,1>::_Call<std::_Binder<std::_Unforced,void (__cdecl bs::ct::QueryManager::)(void),bs::ct::QueryManager > &>() - 0x140710824574318 File[type_traits:1476 (0)] Module[bsf.dll]
std::_Func_impl_no_alloc<std::_Binder<std::_Unforced,void (__cdecl bs::ct::QueryManager::)(void),bs::ct::QueryManager >,void>::_Do_call() - 0x140710824644621 File[functional:1007 (0)] Module[bsf.dll]
std::_Func_class
running minium main loop 101 example:
#include "BsEntry.h" #include "Scene/BsSceneObject.h" #include "Components/BsCCamera.h"
using namespace bs; int bs_main(int argc, char* argv[]) { Application::startUp(VideoMode(1280, 720), "My app", false);
HSceneObject sceneCameraSO = SceneObject::create("SceneCamera");
HCamera sceneCamera = sceneCameraSO->addComponent<CCamera>();
sceneCamera->setMain(true);
sceneCameraSO->setPosition(Vector3(40.0f, 30.0f, 230.0f));
sceneCameraSO->lookAt(Vector3(0, 0, 0));
Application::instance().runMainLoop();
Application::shutDown();
return 0;
}
OpenGL and D3D11 have no issue.
I cannot reproduce this issue with Vulkan SDK 1.1.106. What Vulkan SDK version are you using? Only versions listed are supported, newer versions generally don't work out of the box.
I'm using 1.1.114. The listed is

interesting. The major version is the same I thought i won't have breaking changes.