MM2-0 / Kvaesitso

A search-focused Android launcher
https://kvaesitso.mm20.de/
GNU General Public License v3.0
2.51k stars 86 forks source link

Memory Leak #1111

Closed vikasgola closed 1 month ago

vikasgola commented 1 month ago

Description

Looks like memory is leaking somewhere which is causing launcher to crash after some time.

Strack trace

java.lang.OutOfMemoryError: Failed to allocate a 72 byte allocation with 413520 free bytes and 403KB until OOM, target footprint 268435456, growth limit 268435456; giving up on allocation because <1% of heap free after GC.
    at java.lang.Object.internalClone(Native Method)
    at java.lang.Object.clone(Object.java:267)
    at com.android.i18n.timezone.ZoneInfoData.getTransitions(ZoneInfoData.java:825)
    at libcore.util.ZoneInfo.<init>(ZoneInfo.java:149)
    at libcore.util.ZoneInfo.clone(ZoneInfo.java:303)
    at java.util.TimeZone.getDefault(TimeZone.java:703)
    at java.util.Calendar.defaultTimeZone(Calendar.java:1703)
    at java.util.Calendar.getInstance(Calendar.java:1642)
    at de.mm20.launcher2.calendar.providers.AndroidCalendarProvider$search$results$1.invokeSuspend(AndroidCalendarProvider.kt:309)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:9)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:111)
    at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:4)
    at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:3)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:98)
[2 lines truncated]

Device info

APP.VERSION : 1.33.1
APP.VERSIONCODE : 2024090300
APP.SIGNATURE : rx1fSnL7r5/OMoFC0e1KPqTndXQ=
LAUNCHER.APP : android
TIMEZONE : Asia/Kolkata
VERSION.RELEASE : 14
VERSION.INCREMENTAL : 2409041634
VERSION.SDK.NUMBER : 34
BOARD : Spacewar
BRAND : Nothing
CPU_ABI : arm64-v8a
CPU_ABI2 :
DISPLAY : U2.6-240904-1634
FINGERPRINT : Nothing/Spacewar/Spacewar:14/UP1A.231005.007/2409041634:user/release-keys
HARDWARE : qcom
MANUFACTURER : Nothing
MODEL : A063
PRODUCT : Spacewar
TAGS : release-keys
TIME : 1725438851000
TYPE : user

vikasgola commented 1 month ago

It is also causing the launcher to get slow. On switching to the home page of the launcher every widget and app takes a bit to get loaded.

MM2-0 commented 1 month ago

Duplicate of #1059