Game Crashed on HuaWei mobile。

Hello there @AndyZhengLL!

Checking through your log, the main conflict seems to be here:

Assertion failed: (Index >= 0) & (Index < ArrayNum)
Array index out of bounds: 8 into an array of size 8
FOpenGLDynamicRHI::InternalSetShaderBufferUAV

What we got here is an OpenGL crash during rendering (as the log also involves Unreal’s RHI). This could be having too many shader inputs for the buffer to handle, or your OpenGL driver is in conflict. It could also be related to the hardware of this particular model of HuaWei (since the game works on other phones).

From what I could gather around the community, there are a few options to test in this scenario:

First, try to force the build to use ES 3.1 only, avoiding Vulkan, as it does not interact well with that device’s GPU. In Project Settings > Platforms > Android, uncheck Vulkan. Then, under Build, check OpenGL ES3.1.

After that change, please make sure you clean up the project and rebuild, via deleting folders Binaries, Build, Intermediate, and Saved from your project directory. After thar, re-generate your project files from VS, re-open your project, and pack it again.

As for adding -OpenGLDebugLevel=1 for detailed debugging, go to your project directory, and navigate to …/Build/Android/assets/. At that folder, either modify or create a file named UECommandLine.txt, and add the line:

-OpenGLDebugLevel=1

After that, save and re-pack your project.