Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OOM during Google Drive sync upload #3375

Open
tuomas2 opened this issue Feb 10, 2025 · 0 comments
Open

OOM during Google Drive sync upload #3375

tuomas2 opened this issue Feb 10, 2025 · 0 comments

Comments

@tuomas2
Copy link
Contributor

tuomas2 commented Feb 10, 2025

https://support.andbible.org/scp/tickets.php?id=2820

java.lang.OutOfMemoryError: Failed to allocate a 2097168 byte allocation with 1282432 free bytes and 1252KB until OOM, target footprint 268435456, growth limit 268435456
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:288)
at java.io.BufferedInputStream.read(BufferedInputStream.java:347)
at com.google.api.client.util.ByteStreams$LimitedInputStream.read(ByteStreams.java:113)
at java.io.FilterInputStream.read(FilterInputStream.java:107)
at com.google.api.client.util.ByteStreams.copy(ByteStreams.java:48)
at com.google.api.client.util.IOUtils.copy(IOUtils.java:91)
at com.google.api.client.http.AbstractInputStreamContent.writeTo(AbstractInputStreamContent.java:67)
at com.google.api.client.http.javanet.NetHttpRequest$DefaultOutputWriter.write(NetHttpRequest.java:76)
at com.google.api.client.http.javanet.NetHttpRequest.writeContentToOutputStream(NetHttpRequest.java:174)
at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:117)
at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:84)
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1012)
at com.google.api.client.googleapis.media.MediaHttpUploader.executeCurrentRequestWithoutGZip(MediaHttpUploader.java:519)
at com.google.api.client.googleapis.media.MediaHttpUploader.resumableUpload(MediaHttpUploader.java:392)
at com.google.api.client.googleapis.media.MediaHttpUploader.upload(MediaHttpUploader.java:308)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:566)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:493)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:603)
at net.bible.service.cloudsync.googledrive.GoogleDriveCloudAdapter.upload(GoogleDriveCloudAdapter.kt:281)
at net.bible.service.cloudsync.CloudSync$createAndUploadNewPatch$2.invokeSuspend(CloudSync.kt:511)
at net.bible.service.cloudsync.CloudSync$createAndUploadNewPatch$2.invoke(CloudSync.kt:0)
at net.bible.service.cloudsync.CloudSync$createAndUploadNewPatch$2.invoke(CloudSync.kt:0)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:61)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:163)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source:1)
at net.bible.service.cloudsync.CloudSync.createAndUploadNewPatch(CloudSync.kt:502)
at net.bible.service.cloudsync.CloudSync.access$createAndUploadNewPatch(CloudSync.kt:85)
at net.bible.service.cloudsync.CloudSync$synchronize$2$1$1.invokeSuspend(CloudSync.kt:376)
at net.bible.service.cloudsync.CloudSync$synchronize$2$1$1.invoke(CloudSync.kt:0)
at net.bible.service.cloudsync.CloudSync$synchronize$2$1$1.invoke(CloudSync.kt:0)
at net.bible.service.common.CommonUtilsKt$asyncMap$2$1$1.invokeSuspend(CommonUtils.kt:1749)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@e6a7e19, Dispatchers.IO]
 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs triage
Development

No branches or pull requests

1 participant