- Home
- Forum
- Xamarin.Forms
- App crashes when returning from a pdf viewer page (Android)
App crashes when returning from a pdf viewer page (Android)
I am experiencing problems when I press the return button from a navigation page where I use SfPdfViewer on Android.
It all works fine, but after the document being loaded, I wait around ~10-15 seconds without scrolling or doing anything, press the back button to go back to the previous page, then the app crashes.
- System.ArgumentNullException: 'Value cannot be null. Parameter name: document'
- System.NullReferenceException: 'Object reference not set to an instance of an object.'
- System.DivideByZeroException: 'Attempted to divide by zero.'
Thank you for any help you can provide.
PS: I am on Windows 10, using VS Studio 2019 and the latest versions of Xamarin of all related Syncfusion packages.
Attachment: SyncfusionPDFViewer_4f2c3252.7z
Hi,
We still have this issue on iOS. It works fine on Android. We are using an up to date version.
Thank y
Hi Tao,
We were unable to reproduce the issue, “Application crashes while unloading the PDF document in iOS” and it is working as expected. We have tried to load and unload different types of documents. Could you please try the sample and let us know whether we have missed anything while replicating the issue?
Please find the sample in the below link, which we have used to reproduce the issue on our end
https://www.syncfusion.com/downloads/support/directtrac/general/ze/152426Sample1948964081
Please share the following details to analyze this issue further and assist you with a better solution.
1. Simple sample/ modify the above sample to reproduce the issue.
2. Replication video/procedure to reproduce the issue.
3.PDF document that might cause the issue
Regards,
Manoj Kumar
- 8 Replies
- 5 Participants
-
FM Fred Meyer
- Mar 14, 2020 12:33 PM UTC
- Apr 1, 2024 06:36 AM UTC