Android apps are getting laggy and frozing. (Gapps mostly)

Recently all of a sudden this problem began to occur. Especially facing this issue on gmail and youtube and rarely other apps. Whenever i am opening an email with attachments and try to scroll it freezes and restarts. Same issue happens with Youtube when scrolling through comments. Tried clearing the cache etc. but nothing helped.

This is one of the last one and it's log. Sometimes it's something like "java out of memory" or something like " anr input dispatching timed out". My phone is completely useless like this and i am desperate, any help would be appreciated. Xiaomi Mi Max 2 64GB, stock firmware, everything is up to date.
java.lang.OutOfMemoryError: Failed to allocate a 44 byte allocation with 3976 free bytes and 3KB until OOM
at java.util.HashMap.resize(
at java.util.HashMap.addEntry(
at java.util.LinkedHashMap.addEntry(LinkedHashMap.jav a:464)
at java.util.HashMap.put(
at org.json.JSONObject.put(
at :17)
at :5)
at File:15)
at nished(SourceFile:8)
at$LoaderInfo.callOnLoa dFinished(
at$LoaderInfo.onLoadCom plete(
at android.content.Loader.deliverResult( 44)
at android.content.CursorLoader.deliverResult(CursorL
at android.content.CursorLoader.deliverResult(CursorL
at android.content.AsyncTaskLoader.dispatchOnLoadComp lete(
at android.content.AsyncTaskLoader$LoadTask.onPostExe cute(
at android.os.AsyncTask.finish(
at android.os.AsyncTask.-wrap1(
at android.os.AsyncTask$InternalHandler.handleMessage (
at android.os.Handler.dispatchMessage( 2)
at android.os.Looper.loop(
at a:6372)
at java.lang.reflect.Method.invoke(Native Method)
at .java:791)

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by gusikowski.waino
4 hours ago
Last post by nona.kirlin
1 hour ago
Last post by nyasia.konopelski
2 hours ago
Last post by tania57
1 hour ago
Last post by estelle16
4 hours ago
Last post by reinhold17
2 hours ago
Last post by qfadel
19 minutes ago