Vulkan - Android - GlobalShaderCache

Nexus 5x
Android 7.1.1

[Logcat Output][1]

Fatal error: [File:D:\Build\++UE4+Release-4.14+Compile\Sync\Engine\Source\Runtime\Engine\Private\GlobalShader.cpp] [Line: 593]
The global shader cache file '../../../Engine/GlobalShaderCache-SF_VULKAN_ES31_ANDROID.bin' is missing.

Your application is built to load COOKED content. No COOKED content was found; This usually means you did not cook content for this build.
It also may indicate missing cooked data for a shader platform(e.g., OpenGL under Windows): Make sure your platform's packaging settings include this Targeted RHI.

Alternatively build and run the UNCOOKED version instead.

123458-tmp.txt.zip (8.09 KB)

Nathansizemore,

Have you cooked your project using the specific editor? Such as if you wanted to use ‘debuggame’ mode in your project for debugging, you’d need to cook for ‘debuggame editor’.

Let me know once you have more information.

Thanks!

Yes, project has been cooked. It only fails when Vulkan is used, not with GL 3.1 or 2

Would you happen to be using an AMD?

Host: Intel Iris Pro

Target: Adreno 418

I was able to package for Vulkan without any problem. Could you show me your Project Settings where you’ve enabled Vulkan? Show me your Android SDK set up too.

Thanks!

Packaging is not the problem, it is actually running on the device when those errors occur.

In order to better assist you, I’m going to need for you to provide me the logs from your mobile device.

  • Attach your phone to the computer
  • Go here: C:\android-sdk-windows\tools
  • Open up Monitor.bat
  • Launch the program and save the logs

If you cannot get Monitor.bat to open, please go to:

  • C:\android-sdk-windows\tools\lib\monitor-x86
  • Open up Monitor.exe
  • Follow the instructions above

Make sure that you highlight all of the logs, because they do not save unless they’re highlighted.

Thank you!

I’ve provided the logs at the top of this question. They are compressed and upload as that zip file titled, “Logcat Output”

You’re absolutely right. I thought I was asking incorrectly before I submitted that and I apologize. -_-

I threw a project together and enabled Vulkan. I made sure my was on Android 6.0.1 (which is the highest it’ll update to on its own) and I am not running into this issue. I noticed that you’re on 7.1.1, have you tried a lower Android version yet, or a different device?

Please keep in mind that Vulkan is experimental in 4.14 and it’s bound to have issues with it.

Looking forward to hearing back from you, thanks!

Unfortunately, I do not have a 5 to test against. It isn’t really a huge deal, just wanted to make someone aware of it to help Vulkan support make its way to stable.

Nathan,

Thank you for bringing this to our attention. I have yet to reproduce the issue. I tested on Nexus5x Android 7.0.1 as well, without any crash using the First Person Template. When this function is no longer experimental, if you run into the error could you please update this thread?

If you have a sample project where this is occurring, or the packaging log, that may be useful for us to be able to tell what’s going on with your project. :slight_smile:

Thank you!