Skip to content

VMA crashing at startup on Android 14 devices #397

@alecazam

Description

@alecazam

Our android 14 devices (now with Vulkan 1.3 support), are crashing in the following asserts. I don't have the supported extension list yet, since I don't have one of these devices. I think I'll clamp the version we send of to 1.1 maximum for now.

  1. This should fallback to vkGetDeviceBufferMemoryRequirementsKHR if maintenance4 is set. That may be required on these Android devices even though they're "1.3".
  2. This shouldn't be an assert if these are null, since VK_KHR_maintenance4 may not be set and for some reason these are VMA_NULL.

We are using volk.h, and it seems to support loading these extensions. Also not seeing this problem on Windows Vulkan 1.2 and 1.3, but we're loading maintenance4 on drivers 1.3+. Obviously 1.2 wouldn't enter this path.

if(m_VulkanApiVersion >= VK_MAKE_VERSION(1, 3, 0))
{
	VMA_ASSERT(m_VulkanFunctions.vkGetDeviceBufferMemoryRequirements != VMA_NULL);
         VMA_ASSERT(m_VulkanFunctions.vkGetDeviceImageMemoryRequirements != VMA_NULL);
}

Here is our workaround to just skip this code for now:

           if ( allocatorInfo.vulkanApiVersion >= VK_API_VERSION_1_2 )
	   {
		   allocatorInfo.vulkanApiVersion = VK_API_VERSION_1_1;
	   }

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatibilityCompatibility with some platforms

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions