调用vkCmdBindDescriptorSets时,我的程序崩溃了

时间:2017-06-23 09:17:52

标签: c++ vulkan

当我只打开一个模型文件时,我的程序运行良好。但是当我尝试打开多个文件(使用不同的vulkan实例和线程)时,我的程序可能会在这个地方崩溃。我检查了函数的参数,但它们似乎没有任何问题。 GDB回溯在这里:

Thread 83 "VulkanRenderer" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffebfdff700 (LWP 50908)]
0x00007fffe35b7053 in ?? () from /usr/lib/nvidia-375/libnvidia-glcore.so.375.39
(gdb) bt
#0  0x00007fffe35b7053 in ?? () from /usr/lib/nvidia-375/libnvidia-glcore.so.375.39
#1  0x00007fffe35e1a7e in ?? () from /usr/lib/nvidia-375/libnvidia-glcore.so.375.39
#2  0x00007fffe35e3102 in ?? () from /usr/lib/nvidia-375/libnvidia-glcore.so.375.39
#3  0x00007ffff78ca4ed in VulkanCommandBuffer::SetDescriptorSet(vk::PipelineBindPoint, VulkanPipelineLayout*, unsigned int, unsigned int, VulkanDescriptorSet**, unsigned int, unsigned int*) () from

如何修复此崩溃错误?

1 个答案:

答案 0 :(得分:0)

命令是发送到同一队列还是不同队列。输出在哪里?两个实例的窗口是否相同?