wordpress-mobile / WordPress-Android

WordPress for Android
http://android.wordpress.org
GNU General Public License v2.0
2.92k stars 1.3k forks source link

OutOfMemoryError: Failed to allocate a 537001992 byte allocation with 8388608 free bytes and 251MB until OOM, targe... #20536

Open sentry-io[bot] opened 1 month ago

sentry-io[bot] commented 1 month ago

Sentry Issue: WORDPRESS-ANDROID-QHS

java.lang.OutOfMemoryError: Failed to allocate a 537001992 byte allocation with 8388608 free bytes and 251MB until OOM, target footprint 281212272, growth limit 536870912
    at java.util.Arrays.copyOf(Arrays.java:3578)
    at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:177)
    at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:691)
    at java.lang.StringBuffer.append(StringBuffer.java:416)
    at java.io.StringWriter.write(StringWriter.java:99)
    at kotlin.io.TextStreamsKt.copyTo(ReadWrite.kt:124)
    at kotlin.io.TextStreamsKt.copyTo$default(ReadWrite.kt:119)
    at kotlin.io.TextStreamsKt.readText(ReadWrite.kt:106)
    at kotlin.io.FilesKt__FileReadWriteKt.readText$default(FileReadWrite.kt:125)
    at kotlin.io.FilesKt__FileReadWriteKt.readText(FileReadWrite.kt:125)
    at kotlin.io.FilesKt__FileReadWriteKt.readText$default(FileReadWrite.kt:125)
    at kotlin.io.FilesKt.readText$default
    at org.wordpress.android.fluxc.store.EncryptedLogStore.uploadEncryptedLog(EncryptedLogStore.kt:152)
    at org.wordpress.android.fluxc.store.EncryptedLogStore.uploadNext(EncryptedLogStore.kt:139)
    at org.wordpress.android.fluxc.store.EncryptedLogStore.uploadQueuedEncryptedLogs(EncryptedLogStore.kt:93)
    at org.wordpress.android.util.EncryptedLogging$start$1.invokeSuspend(EncryptedLogging.kt:43)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.CoroutineContextKt.withContinuationContext
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:90)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
dangermattic commented 1 month ago

Thanks for reporting! 👍