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

Synchronisation problem? #54

Open
jdf-id-au opened this issue Dec 4, 2023 · 1 comment
Open

Synchronisation problem? #54

jdf-id-au opened this issue Dec 4, 2023 · 1 comment

Comments

@jdf-id-au
Copy link

jdf-id-au commented Dec 4, 2023

Hi, thanks for the wonderful introductions to Vulkan in LWJGL.

To prevent the following error when runnning InstancedSpheresDemo.java, I need to put Thread.sleep(40); before vkQueueWaitIdle(queue);:

[mvk-warn] VK_TIMEOUT: vkQueueWaitIdle timed out after 10 frames while awaiting 1 swapchain image presentations to complete.
ERROR OCCURED: VK_TIMEOUT: vkQueueWaitIdle timed out after 10 frames while awaiting 1 swapchain image presentations to complete.
libc++abi: terminating due to uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument

I don't think it's specific to this demo, this is just an example. I'm only starting to learn the Vulkan API so can't quite work out whether perhaps Host access to queue must be externally synchronised is violated, or there is some other reason for the timeout.

I'm using the JVM flag -XstartOnFirstThread because I'm on macOS; could that be relevant?

(repo revision, Vulkan 1.3.268.1 (MoltenVK), Java 17.0.4, macos 14.1.2, Intel Xeon W, Radeon Pro Vega 56)

@Snowiiii
Copy link

Yeah there are many Users having the same Problem,
KhronosGroup/MoltenVK#1990

It has to do with MacOS and MoltenVK

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