title: vkCreateInstance() failing for known validation layers
body: <p>I'm getting into Vulkan development on Android and am finding that some of the validation layers reported by <code>vkEnumerateInstanceLayerProperties()</code> cause <code>vkCreateInstance()</code> to return <code>VK_ERROR_LAYER_NOT_PRESENT</code>.</p>
  
  <p>I'm working from Google's validation layer <a href="https://developer.android.com/ndk/guides/graphics/validation-layer.html" rel="nofollow noreferrer">example</a>, as well as the validation chapter from <a href="https://vulkan-tutorial.com/Drawing_a_triangle/Setup/Validation_layers" rel="nofollow noreferrer">Vulkan-Tutorial.com</a>. Through trial and error, I've found that I'm able to create a <code>VkInstance</code> when requesting <em>some</em> of the SDK's provided layers but not others.</p>
  
  <p>After following the setup steps in Google's guide above, my APK contains seven <code>libVkLayer_foo.so</code> files for each architecture and <code>vkEnumerateInstanceLayerProperties()</code> lists seven layers, as expected. But when I try to create a <code>VkInstance</code> with any of the layers below, <code>vkCreateInstance()</code> returns <code>VK_ERROR_LAYER_NOT_PRESENT</code>:</p>
  
  <ul>
  <li>VK_LAYER_LUNARG_parameter_validation</li>
  <li>VK_LAYER_LUNARG_object_tracker</li>
  <li>VK_LAYER_GOOGLE_unique_objects</li>
  </ul>
  
  <p>Does anyone know what might cause this? I assumed that if <code>vkEnumerateInstanceLayerProperties()</code> knows about a layer, <code>vkCreateInstance()</code> should too. Although, I do see a <a href="https://gist.github.com/HeyLookItsBrandon/eaf9f22f2acec46314e21d60570cebf7" rel="nofollow noreferrer">crash</a> occurring in <code>libvulkan.so</code> immediately after <code>vkCreateInstance()</code> returns. I'm not sure if that is the cause of the <code>VK_ERROR_LAYER_NOT_PRESENT</code> or a result.</p>
  
  <p>If it makes any difference, this is running on an nVidia Shield TV.</p>
  
  <p><strong>Update</strong> Oddly enough, the layers that cause a crash seem to be changing. Now I'm able to use <code>VK_LAYER_LUNARG_parameter_validation</code>, even though requesting that layer used to cause a crash.</p>
  
  <p>And just to clarify, I only experience crashes when I use certain validation layers provided in the LunarG SDK on Android. I am able to create a <code>VkInstance</code> with the other validation layers and my callback function <strong>does</strong> get called.</p>