Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

Apps app crash (memory leak?)

  • /e/ version: 0.7-2020032947313
  • Device model: nexus 5
  • When it started to occur: ?
  • Reproducible with the last /e/ version: yes (for this device)
  • Reproducible with LineageOS: ?

Summary

Apps crash

  • The device is unusable
  • The bug is the source of a data loss or a big waste of time
  • The bug concerns a third party app
  • The bug concerns security
  • The bug concerns privacy

The problem

Steps to reproduce

In apps, search for MS Outlook app. Select it (in my case to check trackers etc. in it).

What is the current behavior?

Apps crashes consistently. Since logcat suggested it's connected with OOM, I tried after a restart with the same result, so I guess there's a leak. The logcat from that attempt is below, trimmed to what I hope is the relevant part. (I'm not an Android expert.)

Technical informations

Relevant logs (adb logcat)

05-03 14:42:20.826  2265  3198 I ActivityManager: START u0 {cmp=foundation.e.apps/.application.ApplicationActivity (has extras)} from uid 10040 on display 0
05-03 14:42:21.050  2265  2286 I ActivityManager: Displayed foundation.e.apps/.application.ApplicationActivity: +213ms
05-03 14:42:21.050  3078  3078 I HK/LatinKbdBaseView: closing org.pocketworkstation.pckeyboard.LatinKeyboardView{542b727 V.ED..... ......ID 0,0-1080,625 #7f080004 app:id/LatinkeyboardBaseView}
05-03 14:42:21.075  4808  4821 I art     : Background partial concurrent mark sweep GC freed 4209(217KB) AllocSpace objects, 0(0B) LOS objects, 40% free, 7MB/12MB, paused 5.212ms total 57.465ms
05-03 14:42:21.105  4808  4832 D OpenGLRenderer: endAllActiveAnimators on 0x974f5080 (RippleDrawable) with handle 0x99e53c00
05-03 14:42:21.397  2265  2365 W ConnectivityExtension: ConnectivityExt jar file not present
05-03 14:42:22.483  4808  4821 I art     : Clamp target GC heap from 197MB to 192MB
05-03 14:42:22.504  4808  4942 I art     : Starting a blocking GC Alloc
05-03 14:42:22.504  4808  4942 I art     : Starting a blocking GC Alloc
05-03 14:42:22.516  4808  4942 I art     : Alloc sticky concurrent mark sweep GC freed 137(8KB) AllocSpace objects, 0(0B) LOS objects, 5% free, 181MB/192MB, paused 835us total 11.890ms
05-03 14:42:22.516  4808  4942 I art     : Starting a blocking GC Alloc
05-03 14:42:22.537  4808  4941 I art     : Waiting for a blocking GC Alloc
05-03 14:42:22.552  4808  4942 I art     : Clamp target GC heap from 197MB to 192MB
05-03 14:42:22.552  4808  4942 I art     : Alloc partial concurrent mark sweep GC freed 138(9KB) AllocSpace objects, 0(0B) LOS objects, 5% free, 181MB/192MB, paused 731us total 35.012ms
05-03 14:42:22.552  4808  4942 I art     : Starting a blocking GC Alloc
05-03 14:42:22.552  4808  4941 I art     : Waiting for a blocking GC Alloc
05-03 14:42:22.584  4808  4942 I art     : Clamp target GC heap from 197MB to 192MB
05-03 14:42:22.584  4808  4942 I art     : Alloc concurrent mark sweep GC freed 131(6KB) AllocSpace objects, 1(20KB) LOS objects, 5% free, 181MB/192MB, paused 703us total 31.987ms
05-03 14:42:22.584  4808  4942 I art     : Forcing collection of SoftReferences for 31MB allocation
05-03 14:42:22.584  4808  4941 I art     : WaitForGcToComplete blocked for 47.520ms for cause Alloc
05-03 14:42:22.584  4808  4941 I art     : Starting a blocking GC Alloc
05-03 14:42:22.585  4808  4941 I art     : Starting a blocking GC Alloc
05-03 14:42:22.585  4808  4942 I art     : Waiting for a blocking GC Alloc
05-03 14:42:22.590  4808  4941 I art     : Alloc sticky concurrent mark sweep GC freed 0(0B) AllocSpace objects, 0(0B) LOS objects, 5% free, 181MB/192MB, paused 684us total 5.338ms
05-03 14:42:22.590  4808  4941 I art     : Starting a blocking GC Alloc
05-03 14:42:22.590  4808  4942 I art     : Waiting for a blocking GC Alloc
05-03 14:42:22.612  4808  4941 I art     : Clamp target GC heap from 197MB to 192MB
05-03 14:42:22.612  4808  4941 I art     : Alloc partial concurrent mark sweep GC freed 6(144B) AllocSpace objects, 0(0B) LOS objects, 5% free, 181MB/192MB, paused 698us total 21.476ms
05-03 14:42:22.612  4808  4942 I art     : WaitForGcToComplete blocked for 27.681ms for cause Alloc
05-03 14:42:22.612  4808  4942 I art     : Starting a blocking GC Alloc
05-03 14:42:22.612  4808  4941 I art     : Waiting for a blocking GC Alloc
05-03 14:42:22.643  4808  4942 I art     : Clamp target GC heap from 197MB to 192MB
05-03 14:42:22.643  4808  4942 I art     : Alloc concurrent mark sweep GC freed 3(72B) AllocSpace objects, 0(0B) LOS objects, 5% free, 181MB/192MB, paused 684us total 29.835ms
05-03 14:42:22.643  4808  4941 I art     : WaitForGcToComplete blocked for 30.313ms for cause Alloc
05-03 14:42:22.643  4808  4942 W art     : Throwing OutOfMemoryError "Failed to allocate a 33177612 byte allocation with 11243160 free bytes and 10MB until OOM"
05-03 14:42:22.643  4808  4941 I art     : Starting a blocking GC Alloc
05-03 14:42:22.643  4808  4942 I art     : Waiting for a blocking GC Alloc
05-03 14:42:22.679  4808  4941 I art     : Clamp target GC heap from 197MB to 192MB
05-03 14:42:22.679  4808  4941 I art     : Alloc concurrent mark sweep GC freed 7(488B) AllocSpace objects, 0(0B) LOS objects, 5% free, 181MB/192MB, paused 718us total 35.550ms
05-03 14:42:22.679  4808  4941 I art     : Forcing collection of SoftReferences for 31MB allocation
05-03 14:42:22.679  4808  4942 I art     : WaitForGcToComplete blocked for 35.925ms for cause Alloc
05-03 14:42:22.679  4808  4942 I art     : Starting a blocking GC Alloc
05-03 14:42:22.679  4808  4942 I art     : Starting a blocking GC Alloc
05-03 14:42:22.679  4808  4941 I art     : Waiting for a blocking GC Alloc
05-03 14:42:22.685  4808  4942 I art     : Alloc sticky concurrent mark sweep GC freed 0(0B) AllocSpace objects, 0(0B) LOS objects, 5% free, 181MB/192MB, paused 734us total 5.516ms
05-03 14:42:22.685  4808  4942 I art     : Starting a blocking GC Alloc
05-03 14:42:22.685  4808  4941 I art     : Waiting for a blocking GC Alloc
05-03 14:42:22.708  4808  4942 I art     : Clamp target GC heap from 197MB to 192MB
05-03 14:42:22.708  4808  4942 I art     : Alloc partial concurrent mark sweep GC freed 6(144B) AllocSpace objects, 0(0B) LOS objects, 5% free, 181MB/192MB, paused 890us total 22.578ms
05-03 14:42:22.708  4808  4942 I art     : Starting a blocking GC Alloc
05-03 14:42:22.708  4808  4941 I art     : Waiting for a blocking GC Alloc
05-03 14:42:22.739  4808  4942 I art     : Clamp target GC heap from 197MB to 192MB
05-03 14:42:22.739  4808  4942 I art     : Alloc concurrent mark sweep GC freed 3(72B) AllocSpace objects, 0(0B) LOS objects, 5% free, 181MB/192MB, paused 693us total 30.151ms
05-03 14:42:22.739  4808  4942 I art     : Forcing collection of SoftReferences for 31MB allocation
05-03 14:42:22.739  4808  4941 I art     : WaitForGcToComplete blocked for 59.587ms for cause Alloc
05-03 14:42:22.739  4808  4941 I art     : Starting a blocking GC Alloc
05-03 14:42:22.739  4808  4942 I art     : Waiting for a blocking GC Alloc
05-03 14:42:22.773  4808  4941 I art     : Clamp target GC heap from 197MB to 192MB
05-03 14:42:22.773  4808  4941 I art     : Alloc concurrent mark sweep GC freed 3(72B) AllocSpace objects, 0(0B) LOS objects, 5% free, 181MB/192MB, paused 676us total 33.642ms
05-03 14:42:22.773  4808  4941 W art     : Throwing OutOfMemoryError "Failed to allocate a 33177612 byte allocation with 11243160 free bytes and 10MB until OOM"
05-03 14:42:22.773  4808  4941 I art     : Starting a blocking GC Alloc
05-03 14:42:22.773  4808  4941 I art     : Starting a blocking GC Alloc
05-03 14:42:22.774  4808  4942 I art     : Waiting for a blocking GC Alloc
05-03 14:42:22.781  4808  4941 I art     : Alloc sticky concurrent mark sweep GC freed 4(416B) AllocSpace objects, 0(0B) LOS objects, 5% free, 181MB/192MB, paused 718us total 7.487ms
05-03 14:42:22.781  4808  4941 I art     : Starting a blocking GC Alloc
05-03 14:42:22.781  4808  4942 I art     : Waiting for a blocking GC Alloc
05-03 14:42:22.807  4808  4941 I art     : Clamp target GC heap from 197MB to 192MB
05-03 14:42:22.807  4808  4941 I art     : Alloc partial concurrent mark sweep GC freed 6(144B) AllocSpace objects, 0(0B) LOS objects, 5% free, 181MB/192MB, paused 1.568ms total 25.512ms
05-03 14:42:22.807  4808  4941 I art     : Starting a blocking GC Alloc
05-03 14:42:22.808  4808  4942 I art     : Waiting for a blocking GC Alloc
05-03 14:42:22.846  4808  4941 I art     : Clamp target GC heap from 197MB to 192MB
05-03 14:42:22.846  4808  4941 I art     : Alloc concurrent mark sweep GC freed 3(72B) AllocSpace objects, 0(0B) LOS objects, 5% free, 181MB/192MB, paused 842us total 38.889ms
05-03 14:42:22.846  4808  4941 I art     : Forcing collection of SoftReferences for 31MB allocation
05-03 14:42:22.846  4808  4942 I art     : WaitForGcToComplete blocked for 107.604ms for cause Alloc
05-03 14:42:22.847  4808  4942 I art     : Starting a blocking GC Alloc
05-03 14:42:22.847  4808  4941 I art     : Waiting for a blocking GC Alloc
05-03 14:42:22.888  4808  4942 I art     : Clamp target GC heap from 197MB to 192MB
05-03 14:42:22.888  4808  4942 I art     : Alloc concurrent mark sweep GC freed 3(72B) AllocSpace objects, 0(0B) LOS objects, 5% free, 181MB/192MB, paused 845us total 41.120ms
05-03 14:42:22.888  4808  4942 W art     : Throwing OutOfMemoryError "Failed to allocate a 33177612 byte allocation with 11243160 free bytes and 10MB until OOM"
05-03 14:42:22.889  4808  4941 I art     : WaitForGcToComplete blocked for 42.193ms for cause Alloc
05-03 14:42:22.889  4808  4941 I art     : Starting a blocking GC Alloc
05-03 14:42:22.894  4808  4942 E AndroidRuntime: FATAL EXCEPTION: pool-4-thread-7
05-03 14:42:22.894  4808  4942 E AndroidRuntime: Process: foundation.e.apps, PID: 4808
05-03 14:42:22.894  4808  4942 E AndroidRuntime: java.lang.RuntimeException: An error occurred while executing doInBackground()
05-03 14:42:22.894  4808  4942 E AndroidRuntime: 	at android.os.AsyncTask$3.done(AsyncTask.java:325)
05-03 14:42:22.894  4808  4942 E AndroidRuntime: 	at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
05-03 14:42:22.894  4808  4942 E AndroidRuntime: 	at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
05-03 14:42:22.894  4808  4942 E AndroidRuntime: 	at java.util.concurrent.FutureTask.run(FutureTask.java:242)
05-03 14:42:22.894  4808  4942 E AndroidRuntime: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
05-03 14:42:22.894  4808  4942 E AndroidRuntime: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
05-03 14:42:22.894  4808  4942 E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:761)
05-03 14:42:22.894  4808  4942 E AndroidRuntime: Caused by: java.lang.OutOfMemoryError: Failed to allocate a 33177612 byte allocation with 11243160 free bytes and 10MB until OOM
05-03 14:42:22.894  4808  4942 E AndroidRuntime: 	at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
05-03 14:42:22.894  4808  4942 E AndroidRuntime: 	at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
05-03 14:42:22.894  4808  4942 E AndroidRuntime: 	at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:646)
05-03 14:42:22.894  4808  4942 E AndroidRuntime: 	at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:622)
05-03 14:42:22.894  4808  4942 E AndroidRuntime: 	at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:660)
05-03 14:42:22.894  4808  4942 E AndroidRuntime: 	at foundation.e.apps.utils.ImagesLoader$Image.doInBackground(ImagesLoader.kt:81)
05-03 14:42:22.894  4808  4942 E AndroidRuntime: 	at foundation.e.apps.utils.ImagesLoader$Image.doInBackground(ImagesLoader.kt:69)
05-03 14:42:22.894  4808  4942 E AndroidRuntime: 	at android.os.AsyncTask$2.call(AsyncTask.java:305)
05-03 14:42:22.894  4808  4942 E AndroidRuntime: 	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
05-03 14:42:22.894  4808  4942 E AndroidRuntime: 	... 3 more
05-03 14:42:22.898  2265  3198 W ActivityManager: Process foundation.e.apps has crashed too many times: killing!
05-03 14:42:22.898  2265  3198 W ActivityManager:   Force finishing activity foundation.e.apps/.application.ApplicationActivity
05-03 14:42:22.935  2265  3198 W ActivityManager:   Force finishing activity foundation.e.apps/.MainActivity
05-03 14:42:22.938   188   229 E BufferQueueProducer: [foundation.e.apps/foundation.e.apps.application.ApplicationActivity] dequeueBuffer: BufferQueue has been abandoned
05-03 14:42:22.938  4808  4832 W Adreno-EGLSUB: <DequeueBuffer:721>: dequeue native buffer fail: No such device, buffer=0x0, handle=0x0
05-03 14:42:22.940  4808  4832 W Adreno-ES20: <core_glFinish:23>: GL_OUT_OF_MEMORY
05-03 14:42:22.940  4808  4832 E OpenGLRenderer: GL error:  Out of memory!
05-03 14:42:22.950  2265  3198 E ActivityManager: Found activity ActivityRecord{96aa1c6 u0 foundation.e.apps/.MainActivity t2063 f} in proc activity list using null instead of expected ProcessRecord{4a88b6c 4808:foundation.e.apps/u0a40}
05-03 14:42:22.957  2265  3177 W WindowManager: Failed looking up window
05-03 14:42:22.957  2265  3177 W WindowManager: java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@d166f65 does not exist
05-03 14:42:22.957  2265  3177 W WindowManager: 	at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9475)
05-03 14:42:22.957  2265  3177 W WindowManager: 	at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9466)
05-03 14:42:22.957  2265  3177 W WindowManager: 	at com.android.server.wm.WindowManagerService.relayoutWindow(WindowManagerService.java:2867)
05-03 14:42:22.957  2265  3177 W WindowManager: 	at com.android.server.wm.Session.relayout(Session.java:224)
05-03 14:42:22.957  2265  3177 W WindowManager: 	at android.view.IWindowSession$Stub.onTransact(IWindowSession.java:286)
05-03 14:42:22.957  2265  3177 W WindowManager: 	at com.android.server.wm.Session.onTransact(Session.java:145)
05-03 14:42:22.957  2265  3177 W WindowManager: 	at android.os.Binder.execTransact(Binder.java:565)
05-03 14:42:22.962  2265  3198 I ActivityManager: Killing 4808:foundation.e.apps/u0a40 (adj 0): crash
05-03 14:42:22.964  2265  3198 D ActivityManager: cleanUpApplicationRecord -- 4808
05-03 14:42:23.065  2265  3186 D GraphicsStats: Buffer count: 4
05-03 14:42:23.066  2265  2429 W InputMethodManagerService: Got RemoteException sending setActive(false) notification to pid 4808 uid 10040
05-03 14:42:23.067  2265  3186 I WindowManager: WIN DEATH: Window{6406c96 u0 foundation.e.apps/foundation.e.apps.MainActivity}
05-03 14:42:23.075  3078  4717 W InputMethodWrapper: Session is already finished: android.inputmethodservice.IInputMethodSessionWrapper@54b3c8a
05-03 14:42:23.075  3078  3078 I HK/LatinKbdBaseView: closing org.pocketworkstation.pckeyboard.LatinKeyboardView{542b727 V.ED..... ......ID 0,0-1080,625 #7f080004 app:id/LatinkeyboardBaseView}
05-03 14:42:23.554  3188  3355 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
05-03 14:42:33.663  3597  3597 I CalendarProvider2: Sending notification intent: Intent { act=android.intent.action.PROVIDER_CHANGED dat=content://com.android.calendar flg=0x20000000 }
05-03 14:42:33.664  3597  3597 W ContentResolver: Failed to get type for: content://com.android.calendar (Unknown URL content://com.android.calendar)
05-03 14:42:33.716  4330  4330 D AlertReceiver: onReceive: a=android.intent.action.PROVIDER_CHANGED Intent { act=android.intent.action.PROVIDER_CHANGED dat=content://com.android.calendar flg=0x20000010 cmp=foundation.e.calendar/com.android.calendar.alerts.AlertReceiver }
05-03 14:42:33.737  4312  4312 I EnvironmentChangedReceiver: Received intent: Intent { act=android.intent.action.PROVIDER_CHANGED dat=content://com.android.calendar flg=0x20000010 cmp=org.andstatus.todoagenda/.EnvironmentChangedReceiver }
05-03 14:42:33.737  4312  4312 D EnvironmentChangedReceiver: updateAllWidgets:[], context:android.app.ReceiverRestrictedContext@4d5965e
05-03 14:42:33.742  4312  4312 D AppWidgetProvider: init
05-03 14:42:33.742  4312  4312 D AppWidgetProvider: onReceive, intent:Intent { act=android.appwidget.action.APPWIDGET_UPDATE flg=0x10 cmp=org.andstatus.todoagenda/.AppWidgetProvider (has extras) }
05-03 14:42:33.743  4312  4312 D AppWidgetProvider: onUpdate, input: no widgetIds, discovered here:[], context:android.app.ReceiverRestrictedContext@4d5965e
05-03 14:42:33.746  4330  4999 D AlertService: 0 Action = android.intent.action.PROVIDER_CHANGED
05-03 14:42:38.812  4330  4999 D AlertService: Beginning updateAlertNotification
05-03 14:42:38.877  3597  4356 I art     : Waiting for a blocking GC DisableMovingGc
05-03 14:42:38.878  3597  4356 I art     : Starting a blocking GC DisableMovingGc
05-03 14:42:38.936  4330  4999 D AlertService: No fired or scheduled alerts
05-03 14:42:38.942  4330  4999 D AlertService: Scheduling next alarm with AlarmScheduler. sEventReminderReceived: null
05-03 14:42:38.998  4330  4999 D AlarmScheduler: Query result count for events starting within 1 week: 3

Relevant screenshots

Solutions

Workaround

Possible fixes