ehubscher / briarproject_390

Concordia University Mini-Capstone (i.e. SOEN 390) project for Team La Famiglia. The Open-Source Project forked is an Android-based secure messaging app called Briar.
Other
4 stars 1 forks source link

BUG: App runs out of memory when opening wallpaper page #163

Closed jaslatendresse closed 6 years ago

jaslatendresse commented 6 years ago

The bug happens on a Nexus 5 android 6.0.1 API 23

What has been done to try to fix the bug so far:

Before compression, this bug happened on emulator too (Pixel 2 API 27). Compressing to bitmap 50% fixed it. Now it only seems to happen on the Nexus 5 phone. It does not crash on any other device (including emulators).

Crash report from Nexus 5 API 23:

W/art: Throwing OutOfMemoryError "Failed to allocate a 16384012 byte allocation with 9616600 free bytes and 9MB until OOM" D/skia: --- decoder->decode returned false D/AndroidRuntime: Shutting down VM E/ACRA: ACRA caught a OutOfMemoryError for org.briarproject.briar.android.debug java.lang.OutOfMemoryError: Failed to allocate a 16384012 byte allocation with 9616600 free bytes and 9MB until OOM at dalvik.system.VMRuntime.newNonMovableArray(Native Method) at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:609) at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:444) at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:1080) at android.content.res.Resources.loadDrawableForCookie(Resources.java:2635) at android.content.res.Resources.loadDrawable(Resources.java:2540) at android.content.res.Resources.getDrawable(Resources.java:806) at android.content.res.Resources.getDrawable(Resources.java:771) at org.briarproject.briar.android.wallpaper.WallpaperFragment$ImageAdapter.getView(WallpaperFragment.java:128) at android.widget.AbsListView.obtainView(AbsListView.java:2346) at android.widget.GridView.makeAndAddView(GridView.java:1440) at android.widget.GridView.makeRow(GridView.java:366) at android.widget.GridView.fillDown(GridView.java:307)