PdfViewer's keep crashing when I'm trying to unload resource directly using method Unload() on pdfViewer.
Here's link to my github with minimum code required to reproduce this bug. Github
Basically what I did is.. I have created two pages. First page contains button which pushing another one through navigation stack. Second page has PdfViewer and a button. Resource is being loaded inside a constructor of the second page directly in code-behind (to make things as simple as I can). Button has clicked event in code-behind as well, which is invoking Unload() method directly on pdfViewer control. This crash comes on Android platform. I haven't checked this bug on iOS yet. Here's some more information from the debugger.
================================================================= Native Crash Reporting ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. =================================================================
SSSathish Sivakumar Syncfusion Team June 18, 2019 01:19 AM
Greetings from Syncfusion.
We tried to reproduce the issue “Application crashes when unloading the PDF document from SfPdfViewer” in Xamarin.Forms.Android, but it is working fine as expected. Kindly refer the sample in the below link which we created to reproduce the reported issue based on details provided in your update.
Kindly share the following details to analyze more on this issue and it will be helpful for us to analyze more on this issue.
1.Modify / Simple sample with which the issue could be reproduced.
2.Replication procedure to reproduce the issue or screen shot illustrating the issue.
3.Android device specification with the OS version.
4.PDF document with which the issue could be reproduced
PRPawel RudnickiJune 18, 2019 04:06 AM
Good morning Syncfusion Team,
Thank you very much for your support. I've checked sample that you have provided and still have the same error when I'm tapping on 'Unload'. I have tested it on iOS and everything seems to be fine. When I'm testing it on different android devices I'm keep getting this error. So far, I've checked it on a real android device and the emulated one.