# Android crash: Assertion failed: Memory

**URL:** <https://forums.unrealengine.com/t/android-crash-assertion-failed-memory/399139>\
**Category:** Mobile\
**Tags:** assertion-failed, build, unreal-engine, crash, memory, Android, question\
**Created:** [June 22, 2017, 9:01pm UTC](https://forums.unrealengine.com/t/android-crash-assertion-failed-memory/399139 "2017-06-22T21:01:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![brunogbrito](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@brunogbrito](https://forums.unrealengine.com/u/brunogbrito)\
**Post date:** [June 22, 2017, 9:01pm UTC](https://forums.unrealengine.com/t/android-crash-assertion-failed-memory/399139/1 "2017-06-22T21:01:10Z")

</div>

Often on startup our Android Build (Debug, Development and Shipping) will crash, some times it runs ok, but others keep crashing at startup.

“Assertion failed: Assertion failed: Memory [File:D:\GitHub\UnrealEngine\Engine\Source\Runtime\Core\Private\GenericPlatform\GenericPlatformFile.cpp] [Line: 161]”

This wasn’t happening in 4.15. I’m currently in 4.16.1 (essential update for virtual keyboard feature), but I have no clue why is it happening.  
my setup:

UE4 4.16.1  
latest codeworks  
Android SDK 25  
NDK 19

Plugins:  
-GameSparks  
-VaRest

Tried to rebuild the engine, deleted binaries, saved, intermediate and build. No good. It’s weird because it’s seems to be ramdom, some times crashes, some times not ☹

---

<div class="post-metadata">

**Author:** ![brunogbrito](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@brunogbrito](https://forums.unrealengine.com/u/brunogbrito)\
**Post date:** [June 23, 2017, 5:11pm UTC](https://forums.unrealengine.com/t/android-crash-assertion-failed-memory/399139/2 "2017-06-23T17:11:08Z")

</div>

Any possible feedback here?

---

<div class="post-metadata">

**Author:** ![brunogbrito](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@brunogbrito](https://forums.unrealengine.com/u/brunogbrito)\
**Post date:** [June 23, 2017, 10:17pm UTC](https://forums.unrealengine.com/t/android-crash-assertion-failed-memory/399139/3 "2017-06-23T22:17:06Z")

</div>

Update:

App starts properly when packaged and installed outside the editor.

But still crashes often when launched in the editor.

I opened the GenericPlatformFile.cpp and it seems to be memory related.  
After that, I checked all the project settings again, disabled all unnecessary options and plugins. It reduced the app’s size but it keep crashing when launched in the editor.

---

<div class="post-metadata">

**Author:** ![Shinykey](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shinykey/32/960762_2.png) [@Shinykey](https://forums.unrealengine.com/u/Shinykey)\
**Post date:** [August 3, 2017, 6:53pm UTC](https://forums.unrealengine.com/t/android-crash-assertion-failed-memory/399139/4 "2017-08-03T18:53:24Z")

</div>

Hello,

Getting the same error on my project here. It wont load past my splash page but the default projects do seem to work just not on my project. How did you do it outside of the editor? did you just package and install the apk?

---

<div class="post-metadata">

**Author:** ![brunogbrito](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@brunogbrito](https://forums.unrealengine.com/u/brunogbrito)\
**Post date:** [August 3, 2017, 8:57pm UTC](https://forums.unrealengine.com/t/android-crash-assertion-failed-memory/399139/5 "2017-08-03T20:57:28Z")

</div>

Yes! Working fine so far!

---

<div class="post-metadata">

**Author:** ![polemos](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/polemos/32/766957_2.png) [@polemos](https://forums.unrealengine.com/u/polemos)\
**Post date:** [November 13, 2020, 8:07pm UTC](https://forums.unrealengine.com/t/android-crash-assertion-failed-memory/399139/6 "2020-11-13T20:07:58Z")

</div>

looking for help also here!

---

<div class="post-metadata">

**Author:** ![MUFUm1517](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MUFUm1517](https://forums.unrealengine.com/u/MUFUm1517)\
**Post date:** [March 9, 2021, 7:07pm UTC](https://forums.unrealengine.com/t/android-crash-assertion-failed-memory/399139/7 "2021-03-09T19:07:51Z")

</div>

bump bump bump bump please
