CarnegieTechnologies / gallery_saver

Flutter plugin that saves images and videos to devices gallery
Apache License 2.0
157 stars 328 forks source link

java.lang.OutOfMemoryError Failed to allocate a 8388624 byte allocation with 239640 free bytes and 234KB until OOM, target footprint 536870912, growth limit 536870912 carnegietechnologies.gallery_saver.FileUtils.insertVideo(FileUtils.kt:299) #218

Open jinpang opened 9 months ago

jinpang commented 9 months ago

版本:gallery_saver: ^2.3.2 java.lang.OutOfMemoryError Failed to allocate a 8388624 byte allocation with 239640 free bytes and 234KB until OOM, target footprint 536870912, growth limit 536870912 carnegietechnologies.gallery_saver.FileUtils.insertVideo(FileUtils.kt:299)

carnegietechnologies.gallery_saver.FileUtils.insertVideo(FileUtils.kt:299) carnegietechnologies.gallery_saver.FileUtils.insertVideo$default(FileUtils.kt:251) carnegietechnologies.gallery_saver.GallerySaver$saveMediaFile$1$success$1.invokeSuspend(GallerySaver.kt:68) kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42) kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95) kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

这种情况该如何处理?