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

App crashes OutOfMemoryError #65

Closed
Rider02vn opened this issue Apr 6, 2023 · 2 comments
Closed

App crashes OutOfMemoryError #65

Rider02vn opened this issue Apr 6, 2023 · 2 comments
Labels
Fixed Scheduled to release

Comments

@Rider02vn
Copy link

Please check help me.
pdf file about 18MB, and open it via url.

Logs:
Fatal Exception: java.lang.OutOfMemoryError: Failed to allocate a 26952076 byte allocation with 16777216 free bytes and 18MB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(VMRuntime.java)
at android.graphics.Bitmap.nativeCreate(Bitmap.java)
at android.graphics.Bitmap.createBitmap(Bitmap.java:893)
at android.graphics.Bitmap.createBitmap(Bitmap.java:870)
at android.graphics.Bitmap.createBitmap(Bitmap.java:837)
at com.rajat.pdfviewer.PdfRendererCore.buildBitmap(PdfRendererCore.kt:119)
at com.rajat.pdfviewer.PdfRendererCore.access$buildBitmap(PdfRendererCore.kt:23)
at com.rajat.pdfviewer.PdfRendererCore$renderPage$1.invokeSuspend(PdfRendererCore.kt:93)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

image

@github-actions
Copy link

github-actions bot commented Apr 6, 2023

Thank you for creating your first issue. We appreciate your help in making this project better. We will look into it, and get back to you soon.

@afreakyelf afreakyelf added the Fixed Scheduled to release label Nov 26, 2023
@afreakyelf
Copy link
Owner

Hi, Thank you for using this library. Above issue has been fixed in latest version.
https://github.com/afreakyelf/Pdf-Viewer/releases/tag/v2.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed Scheduled to release
Projects
None yet
Development

No branches or pull requests

2 participants