Android Arm64 Startup Crash on S7 Exynos

I have entered UE-36198 for this issue. I finally was able to reproduce it with a different version of GitHub on CL 3128484. Hopefully our Android developer will have further information to resolve this issue, or have it resolved in a later build.

What is your devices model number?

Could you please confirm that you have the correct code in AndroidMemory.cpp:

FMalloc* FAndroidPlatformMemory::BaseAllocator()
{
const FPlatformMemoryConstants& MemoryConstants = FPlatformMemory::GetConstants();
// 1 << FMath::CeilLogTwo(MemoryConstants.TotalPhysical) should really be FMath::RoundUpToPowerOfTwo,
// but that overflows to 0 when MemoryConstants.TotalPhysical is close to 4GB, since CeilLogTwo returns 32
// this then causes the MemoryLimit to be 0 and crashing the app
uint64 MemoryLimit = FMath::Min<uint64>( uint64(1) << FMath::CeilLogTwo(MemoryConstants.TotalPhysical), 0x100000000);

#if PLATFORM_ANDROID_ARM64
// todo: track down why FMallocBinned is failing on ARM64
return new FMallocAnsi();
#else
return new FMallocBinned(MemoryConstants.PageSize, MemoryLimit);
#endif
}

Let me know if you have any more information to add! :slight_smile: