KhronosGroup / Vulkan-Samples

One stop solution for all Vulkan samples
Apache License 2.0
4.36k stars 650 forks source link

Failed assert and crash when clicking two mouse button same time when using free camera #1176

Closed burak-efe closed 1 week ago

burak-efe commented 2 months ago

To produce: open a sample that use free camera, click two mouse button at the same time. Looks like there is two type of camera base class in repo, I'm talking about that used in performance samples.

Issue was getcomponent returning an empty cameras vector but this happens only when clicking two buttons at the same time for some reason.

https://github.com/KhronosGroup/Vulkan-Samples/blob/5daac4d8b0988b7a18ec8a486d7b973e3dc72d47/framework/scene_graph/hpp_scene.h#L37-L54

SaschaWillems commented 1 month ago

Will take a look. It actually crashes even when you only right click (at least in the samples I tested).