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 Present fails with ErrorOutOfDateKHR after resizing swapchain on Linux with NVidia proprietary drivers #105

Closed
egorodet opened this issue Sep 9, 2022 · 0 comments · Fixed by #114
Assignees
Labels
bug Something isn't working
Milestone

Comments

@egorodet
Copy link
Member

egorodet commented Sep 9, 2022

Describe the bug
Any Methane application fails on vk::Queue::PresentKHR after resizing the window on Linux with NVidia proprietary drivers with weird error ErrorOutOfDateKHR.

Steps To Reproduce

  1. Make sure you're using NVidia Graphics Card with latest proprietary drivers installed (nvidia-driver-515 in my case)
    image
  2. Run any Methane application built with Vulkan graphics API on Linux
  3. Resize window => swapchain is recreated normally, but subsequent call to vk::Queue::PresentKHR fails with ErrorOutOfDateKHR
    Screenshot from 2022-09-09 16-08-40

Expected behavior
Window resizing along with swapchain creation and framebuffers presenting should work normally, as it works on AMD graphics cards on Linux with the same implementation.

Desktop (please complete the following information):

  • OS: Ubuntu
  • Version 22.04
  • Build environment: GCC 11.2.0
  • GPU Driver: nvidia-driver-515
@egorodet egorodet added the bug Something isn't working label Sep 9, 2022
@egorodet egorodet added this to the v0.7 milestone Sep 9, 2022
@egorodet egorodet self-assigned this Sep 9, 2022
egorodet added a commit that referenced this issue Feb 3, 2023
…for rendering synchronization with resize events
egorodet added a commit that referenced this issue Feb 4, 2023
Use X11 STRUCTURE_NOTIFY instead of RESIZE_REDIRECT event to get it on window resizing COMPLETED and skip rendering until next Resize event after vk::OutOfDateKHRError error on Present.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
1 participant