You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, on a Samsung device, you get large photos and crash when compressed. How to fix this problem?
java.lang.OutOfMemoryError: Failed to allocate a 47616780 byte allocation with 16777216 free bytes and 43MB until OOM at dalvik.system.VMRuntime.newNonMovableArray(Native Method) at android.graphics.Bitmap.nativeCreate(Native Method) at android.graphics.Bitmap.createBitmap(Bitmap.java:975) at android.graphics.Bitmap.createBitmap(Bitmap.java:946) at android.graphics.Bitmap.createBitmap(Bitmap.java:877) at id.zelory.compressor.UtilKt.determineImageRotation(Util.kt:78) at id.zelory.compressor.UtilKt.loadBitmap(Util.kt:34) at id.zelory.compressor.constraint.SizeConstraint.satisfy(SizeConstraint.kt:28) at id.zelory.compressor.Compressor$compress$3.invokeSuspend(Compressor.kt:28) at id.zelory.compressor.Compressor$compress$3.invoke(Compressor.kt) at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89) at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165) at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) at id.zelory.compressor.Compressor.compress(Compressor.kt:23) at id.zelory.compressor.Compressor.compress$default(Compressor.kt:22) ...
The text was updated successfully, but these errors were encountered:
Hi, on a Samsung device, you get large photos and crash when compressed. How to fix this problem?
java.lang.OutOfMemoryError: Failed to allocate a 47616780 byte allocation with 16777216 free bytes and 43MB until OOM at dalvik.system.VMRuntime.newNonMovableArray(Native Method) at android.graphics.Bitmap.nativeCreate(Native Method) at android.graphics.Bitmap.createBitmap(Bitmap.java:975) at android.graphics.Bitmap.createBitmap(Bitmap.java:946) at android.graphics.Bitmap.createBitmap(Bitmap.java:877) at id.zelory.compressor.UtilKt.determineImageRotation(Util.kt:78) at id.zelory.compressor.UtilKt.loadBitmap(Util.kt:34) at id.zelory.compressor.constraint.SizeConstraint.satisfy(SizeConstraint.kt:28) at id.zelory.compressor.Compressor$compress$3.invokeSuspend(Compressor.kt:28) at id.zelory.compressor.Compressor$compress$3.invoke(Compressor.kt) at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89) at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165) at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) at id.zelory.compressor.Compressor.compress(Compressor.kt:23) at id.zelory.compressor.Compressor.compress$default(Compressor.kt:22) ...
The text was updated successfully, but these errors were encountered: