Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vulkan rendering crashing, in master #403

Open
bigdimboom opened this issue Oct 17, 2019 · 5 comments
Open

Vulkan rendering crashing, in master #403

bigdimboom opened this issue Oct 17, 2019 · 5 comments
Labels
type: bug Something isn't working
Milestone

Comments

@bigdimboom
Copy link

[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::operator()() - 0x140710813659584 File[functional:1050 (0)] Module[bsf.dll]
bs::CommandQueueBase::playbackWithNotify() - 0x140710816199538 File[BsCommandQueue.cpp:129 (0)] Module[bsf.dll]
bs::CoreThread::runCoreThread() - 0x140710816517497 File[BsCoreThread.cpp:141 (0)] Module[bsf.dll]
std::_Invoker_pmf_pointer::_Call<void (__cdecl bs::CoreThread::
)(void),bs::CoreThread * &>() - 0x140710816434580 File[type_traits:1457 (68)] Module[bsf.dll]
std::invoke<void (__cdecl bs::CoreThread::&)(void),bs::CoreThread * &>() - 0x140710816451728 File[type_traits:1457 (96)] Module[bsf.dll]
std::_Invoker_retstd::_Unforced,0::_Call<void (__cdecl bs::CoreThread::
&)(void),bs::CoreThread * &>() - 0x140710816432928 File[type_traits:1493 (0)] Module[bsf.dll]
std::_Call_binder<std::_Unforced,0,void (__cdecl bs::CoreThread::)(void),std::tuple<bs::CoreThread >,std::tuple<> >() - 0x140710816435255 File[functional:1486 (0)] Module[bsf.dll]
std::_Binder<std::_Unforced,void (__cdecl bs::CoreThread::
)(void),bs::CoreThread >::operator()<>() - 0x140710816431722 File[functional:1531 (138)] Module[bsf.dll]
std::_Invoker_functor::_Call<std::_Binder<std::_Unforced,void (__cdecl bs::CoreThread::
)(void),bs::CoreThread > &>() - 0x140710816434094 File[type_traits:1457 (62)] Module[bsf.dll]
std::invoke<std::_Binder<std::_Unforced,void (__cdecl bs::CoreThread::
)(void),bs::CoreThread > &>() - 0x140710816452366 File[type_traits:1457 (62)] Module[bsf.dll]
std::_Invoker_ret<void,1>::_Call<std::_Binder<std::_Unforced,void (__cdecl bs::CoreThread::
)(void),bs::CoreThread > &>() - 0x140710816434190 File[type_traits:1476 (0)] Module[bsf.dll]
std::_Func_impl_no_alloc<std::_Binder<std::_Unforced,void (__cdecl bs::CoreThread::
)(void),bs::CoreThread >,void>::_Do_call() - 0x140710816495549 File[functional:1007 (0)] Module[bsf.dll]
std::_Func_class::operator()() - 0x140710813659584 File[functional:1050 (0)] Module[bsf.dll]
bs::PooledThread::runFunctionHelper() - 0x140710814065563 File[BsThreadPool.cpp:135 (12)] Module[bsf.dll]
bs::PooledThread::run() - 0x140710814064910 File[BsThreadPool.cpp:119 (0)] Module[bsf.dll]
std::_Invoker_pmf_pointer::_Call<void (__cdecl bs::PooledThread::
)(void),bs::PooledThread * &>() - 0x140710814040516 File[type_traits:1457 (68)] Module[bsf.dll]
std::invoke<void (__cdecl bs::PooledThread::
&)(void),bs::PooledThread * &>() - 0x140710814049136 File[type_traits:1457 (96)] Module[bsf.dll]
std::_Invoker_retstd::_Unforced,0::_Call<void (__cdecl bs::PooledThread::&)(void),bs::PooledThread * &>() - 0x140710814040400 File[type_traits:1493 (0)] Module[bsf.dll]
std::_Call_binder<std::_Unforced,0,void (__cdecl bs::PooledThread::
)(void),std::tuple<bs::PooledThread >,std::tuple<> >() - 0x140710814040775 File[functional:1486 (0)] Module[bsf.dll]
std::_Binder<std::_Unforced,void (__cdecl bs::PooledThread::
)(void),bs::PooledThread >::operator()<>() - 0x140710814040154 File[functional:1531 (138)] Module[bsf.dll]
std::_Invoker_functor::_Call<std::_Binder<std::_Unforced,void (__cdecl bs::PooledThread::
)(void),bs::PooledThread > >() - 0x140710814040622 File[type_traits:1457 (62)] Module[bsf.dll]
std::invoke<std::_Binder<std::_Unforced,void (__cdecl bs::PooledThread::
)(void),bs::PooledThread > >() - 0x140710814049246 File[type_traits:1457 (62)] Module[bsf.dll]
std::thread::_Invoke<std::tuple<std::_Binder<std::_Unforced,void (__cdecl bs::PooledThread::
)(void),bs::PooledThread *> >,0>() - 0x140710814044576 File[thread:40 (0)] Module[bsf.dll]
0x140712056869932 Module[ucrtbased.dll]
0x140712771156948 Module[KERNEL32.DLL]
0x140712792346321 Module[ntdll.dll]

@bigdimboom
Copy link
Author

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;

}

@bigdimboom bigdimboom changed the title vulkan redering crashing Vulcan rendering crashing Oct 17, 2019
@bigdimboom bigdimboom changed the title Vulcan rendering crashing Vulcan rendering crashing, in master Oct 17, 2019
@bigdimboom
Copy link
Author

bigdimboom commented Oct 17, 2019

OpenGL and D3D11 have no issue.

@bigdimboom bigdimboom changed the title Vulcan rendering crashing, in master Vulkan rendering crashing, in master Oct 17, 2019
@BearishSun BearishSun added the type: bug Something isn't working label Oct 17, 2019
@BearishSun BearishSun added this to the v1.2 milestone Oct 17, 2019
@BearishSun
Copy link
Member

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.

@bigdimboom
Copy link
Author

I'm using 1.1.114. The listed is
image

@bigdimboom
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants