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

bugs on resizing windows #42

Open
engineer1109 opened this issue Aug 21, 2019 · 6 comments
Open

bugs on resizing windows #42

engineer1109 opened this issue Aug 21, 2019 · 6 comments

Comments

@engineer1109
Copy link

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

@engineer1109
Copy link
Author

swapChain.queuePresent(submitOverlay ? semaphores.overlayComplete : semaphores.renderComplete)
is error

@engineer1109
Copy link
Author

now becomes 50% chance.

terminate called after throwing an instance of 'vk::OutOfDateKHRError'
what(): vk::Queue::presentKHR: ErrorOutOfDateKHR

@jherico
Copy link
Owner

jherico commented Sep 3, 2019

Yeah, something about my resizing code isn't properly waiting. I'll try to investigate this.

@engineer1109
Copy link
Author

@jherico use try catch may avoid it

@engineer1109
Copy link
Author

@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);
    }

@engineer1109
Copy link
Author

engineer1109 commented Sep 4, 2019

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants