Skip to content

Fix state tracker crash on VK_QUEUE_FAMILY_IGNORED - #21

Closed
olehkuznetsov wants to merge 0 commit into
android-graphics:devfrom
olehkuznetsov:fix-capture-p11
Closed

Fix state tracker crash on VK_QUEUE_FAMILY_IGNORED#21
olehkuznetsov wants to merge 0 commit into
android-graphics:devfrom
olehkuznetsov:fix-capture-p11

Conversation

@olehkuznetsov

Copy link
Copy Markdown

When reading image/buffer resources during state tracking (e.g. at frame capture start), resources with VK_QUEUE_FAMILY_IGNORED (such as CONCURRENT sharing mode resources) were passing their ignored index down to VulkanResourcesUtil, which subsequently invoked vkGetDeviceQueue with an out of bounds queue constraint (~0U), causing a segmentation fault in the Android Vulkan loader.

This fixes it entirely cleanly in the caller layer by looking up the first valid queue initialized on the device when VK_QUEUE_FAMILY_IGNORED is encountered, hiding this semantic knowledge from the internal utility functions.

@olehkuznetsov
olehkuznetsov force-pushed the fix-capture-p11 branch 11 times, most recently from 574ec37 to 885e344 Compare August 5, 2026 13:08
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

Successfully merging this pull request may close these issues.

1 participant