Open justinjoyn opened 2 years ago
Hi @justinjoyn , when does this issue exactly happens, is app/screen active at this moment or it is some background or other screen state? Is it also some specific pdf (if so can you share it) or any?
I see barteksc/AndroidPdfViewer has open issue which might be similar to what you reported.
@rumax Thank you for looking into this. This is happening when we unmount the screen while PDFView is still loading the file. It might not be file specific because I tried with different files (mostly larger files since they take time to load).
Hey @rumax were you able to reproduce this at your end? Please share if you have any updates.
Issues filed on the Android dependency:
A possible fix already exists. Here's the PR: https://github.com/barteksc/AndroidPdfViewer/pull/917
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hello there,
Any news on this? Any workaround???
Thanks in advance
@FaggioniHQ as you can find from discussion above, it seems to be an issue in barteksc/AndroidPdfViewer. As a workaround, you can try to identify the specific circumstances in your project that trigger the issue and attempt to avoid them. Alternatively, if you're inclined to contribute, you have the option to submit a pull request to address and fix the problem in the library.
hello @rumax ,
Thanks for your reply... I fixed the issue by using the latest version of https://github.com/mhiew/AndroidPdfViewer
On the latest version, the issue was fixed
buildscript {
ext {
...
pdfViewerVersion = "3.2.0-beta.3"
pdfViewerRepo = "com.github.mhiew"
}
...
}
Maybe com.github.mhiew
has to be default dependency. It also solves JCenter
issue.
hello @rumax ,
Thanks for your reply... I fixed the issue by using the latest version of https://github.com/mhiew/AndroidPdfViewer
On the latest version, the issue was fixed
buildscript { ext { ... pdfViewerVersion = "3.2.0-beta.3" pdfViewerRepo = "com.github.mhiew" } ... }
100% working
Describe the bug A clear and concise description of what the bug is.
On Android devices, the app crashes with following error:
To Reproduce
Steps to reproduce the behavior:
PDFView
component which has aresource
set as a remote URL.Expected behavior Handle
onLoad
even after navigating away from the screen withPDFView
componentScreenshots If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
Additional context Here are the related dependencies and their versions on our app.