In order to fulfill the basic functions of our service, the user hereby agrees to allow Xiaomi to collect, process and use personal information which shall include but not be limited to written threads, pictures, comments, replies in the Mi Community, and relevant data types listed in Xiaomi's Private Policy. By selecting "Agree", you agree to Xiaomi's Private Policy and Content Policy .

Tips & Tricks

Tutorial For You

[Tutorial] [FIX] App Crash - OutOfMemoryError Exception

2018-12-15 13:13:53
2069 24

Greetings to everyone in the family.
As we use our smartphones as our daily driver for most of the tasks we carry out be it web browsing, texting, calling, office work or entertainment, our devices tend to get clogged due to some reasons from time to time. I was scrolling through the community threads and I found a thread stating a problem regarding the Mi File Explorer which was continuously crashing due to "OutOfMemoryError" Exception. This sort of crash can be experienced on any android application as they are written in Java or Kotlin.

Let us get to the easy fix for this. You can try these steps to make things right. [Note: These aren't steps]

  • Reboot the device
  • Go to recent apps list and clear all running instances
  • Go to the application properties and force stop as well as clear data
  • Check for any conflicting applications or untrusted applications which disrupting the architecture

Understanding OutOfMemoryError Exception in Java
In Java, all objects are stored in the heap. They are allocated using new operator. The OutOfMemoryError Exception in Java looks like this:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

Usually, this error is thrown when the Java Virtual Machine cannot allocate an object because it is out of memory, and no more memory could be made available by the garbage collector.
OutOfMemoryError usually means that you’re doing something wrong, either holding onto objects too long, or trying to process too much data at a time. Sometimes, it indicates a problem that’s out of your control, such as a third-party library that caches strings, or an application server that doesn’t clean up after deploys. And sometimes, it has nothing to do with objects on the heap.
The Java.lang.OutOfMemoryError exception can also be thrown by native library code when a native allocation cannot be satisfied (for example, if swap space is low).
In simple words, this sort of crashes due to:
  • Memory Allocation Issues
  • Permission Issues
  • Conflicting Instance or Thread [Script or Application]
  • Unavailable Memory/Swap
  • Buggy Updates

Note: Buggy Updates are a very rare case. This happens only if you are in the Alpha or Beta stage. The release version of programs are mostly free from such issues.


Number of participants 1 Experience +15 Pack Reason

View Rating Log

2018-12-15 13:13:53
Favorites15 RateRate
Tutorial For You
In the sea of knowledge, let us seek some oysters together. I'm here to share some tutorials on gadgets and software.
50 Article Description     1447 Subscribers

Pro Bunny

Rs26 | from Redmi Note 4


Nice.. information
2018-12-15 22:23:43

Master Bunny

vidya5194905456 | from Redmi Note 5 Pro


nice information
2018-12-15 23:00:55

Pro Bunny

gohan60607 | from Redmi 5


nice information
2018-12-16 00:18:58

Thanks Buddy.
2018-12-17 10:40:49
Deeptesh Biswas

MIUI Moderator, Mi Community India

Please mention if you want something specific. I'll make a thread on that. Anyways, Thanks a bunch buddy.
2018-12-17 10:41:52
Deeptesh Biswas

MIUI Moderator, Mi Community India
Useful thread!
2018-12-17 13:36:54
Error 404
Facebook | Instagram | Twitter

Rookie Bunny

1722623142 | from Redmi Note 4


useful information
2018-12-17 18:57:03

Master Bunny

T U N A | from Redmi Note 5 Pro


very niceeeeeee information
2018-12-17 21:31:58

Grandmaster Bunny

arvind2123 | from Redmi 3S


nice information
2018-12-17 22:43:25

Grandmaster Bunny

Solver13 | from Redmi Note 4


That's a good solution to the App crash problem
2018-12-19 02:04:11
please sign in to reply.
Sign In Sign Up



  • Followers


  • Threads


  • Replies


  • Points


3 Days Check-In
7 Days Check-In
Throwback With Mi 2018
Dark Mode
Mi-stery Box Game
We Help!

Read moreGet new
Copyright©2010-2020, All Rights Reserved
Content Policy
Quick Reply To Top Return to the list