bugs on resizing windows
terminate called after throwing an instance of 'vk::OutOfDateKHRError' what(): vk::Queue::presentKHR: ErrorOutOfDateKHR
Segmentation fault Happens on resizing windows. System : Linux Ubuntu-18.04.2
swapChain.queuePresent(submitOverlay ? semaphores.overlayComplete : semaphores.renderComplete) is error
now becomes 50% chance.
terminate called after throwing an instance of 'vk::OutOfDateKHRError' what(): vk::Queue::presentKHR: ErrorOutOfDateKHR
Yeah, something about my resizing code isn't properly waiting. I'll try to investigate this.
@jherico use try catch may avoid it
@jherico For the triangle sample, I have used this to fix
Code
try {
swapChain.queuePresent(semaphores.renderComplete);
} catch (std::exception e) {
std::cout<<"error"<<std::endl;
swapChain.create(size);
}
@jherico
Parts of the samples can successfully resize. Like texture3d and viewportarray.
Fix bugs with this in vulkanExampleBase.cpp
379 line
cxx code
try { swapChain.queuePresent(submitOverlay ? semaphores.overlayComplete : semaphores.renderComplete); } catch (std::exception e) { swapChain.create(size); }
Still bugs exist with multiview and subpass .etc.