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

Running VkOreonWorlds swapchain crash #95

Open
zakiisak opened this issue Jun 12, 2023 · 1 comment
Open

Running VkOreonWorlds swapchain crash #95

zakiisak opened this issue Jun 12, 2023 · 1 comment

Comments

@zakiisak
Copy link

Hey there!

I just cloned the repository and built the example projects.
When running the Vulkan Oreon Worlds within the examples-vulkan project it crashes immediately when the call to the swapchain draw method is being made. Here is a stacktrace.

FYI My system uses Windows 11, with a GTX 1080 GPU.

Exception in thread "main" java.lang.AssertionError: A surface has changed in such a way that it is no longer compatible with the swapchain, and further presentation requests using the swapchain will fail. Applications must query the new surface properties and recreate their swapchain if they wish to continuepresenting to the surface.
at org.oreon.core.vk.util.VkUtil.vkCheckResult(VkUtil.java:61)
at org.oreon.core.vk.swapchain.SwapChain.draw(SwapChain.java:347)
at org.oreon.vk.engine.VkDeferredEngine.render(VkDeferredEngine.java:317)
at org.oreon.core.CoreEngine.render(CoreEngine.java:117)
at org.oreon.core.CoreEngine.run(CoreEngine.java:91)
at org.oreon.core.CoreEngine.start(CoreEngine.java:44)
at org.oreon.examples.vk.oreonworlds.VkOreonworlds.main(VkOreonworlds.java:24)

@fynnfluegge
Copy link
Owner

fynnfluegge commented Jun 12, 2023

Hey @zakiisak thanks for reporting!
Seems it is the VK_ERROR_OUT_OF_DATE_KHR error.
Guess this is an easy fix. I am on Mac currently and cannot test this.
Any PR is welcome if you like to raise one! 🙌

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