Crash on SfPdfViewer Unload

I have a Xamarin Forms Page in which there is a SfPdfViewer control.

When I PopPage I got this exception:

Object reference not set to an instance of an object.
  at Syncfusion.SfPdfViewer.XForms.UWP.PdfDocumentView.<Unload>d__201.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
   at System.Threading.WinRTSynchronizationContextBase.Invoker.InvokeCore()

I cannot put any breakpoint on code because Exception is thrown before any method
OnDisappearing()
OnBackButtonPressed()

10 Replies

KK Karthik Krishnaraj Syncfusion Team August 24, 2018 11:19 AM UTC

Hi Alessandro, 
Greeting from Syncfusion, 
We couldn’t reproduce the issue with “Application crash when unload PDF Viewer control” on navigation. I have attached a simple sample which we tried to reproduce the issue. Can you please modify the sample or provide device details to replicate the issue? So that it will be helpful for us to provide appropriate solution. 
Sample Link: 
Regards, 
Karthik. 



AL Alessandro August 27, 2018 01:08 PM UTC

Open the viewer with button in main page.

Once inside PDFpage, Push the toolBarButton ICOBack (Not the standard uwp back on top).






Attachment: ViewerNavigationCrash_a78bdd0.zip


KK Karthik Krishnaraj Syncfusion Team August 28, 2018 09:42 AM UTC

Hi Alessandro, 
We have confirmed that issue with “Crash on PdfViewer unload” is a defect from our side. We will fix it and the fix will be included in our Essential Studio Volume 3 release which is expected to be rolled out in the end of September 2018. 
Regards, 
Karthik. 



AL Alessandro August 28, 2018 09:51 AM UTC

OK!

Thank you.




KK Karthik Krishnaraj Syncfusion Team August 28, 2018 02:25 PM UTC

Hi Alessandro, 
 
Thank you for your update, 
 
Please let us know if you have any other queries. 
 
Regards, 
Karthik. 



AL Alessandro September 25, 2018 10:44 AM UTC

Hi,

I updated the control but i got another exception now!

Attached the solution.


Attachment: ViewerNavigationCrash_v1_35ee12b7.zip


AL Alessandro September 26, 2018 04:17 PM UTC

Seems that also on Andoid there is an issue...


KK Karthik Krishnaraj Syncfusion Team September 27, 2018 11:19 AM UTC

Hi Alessandro, 
 
A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates. 
  
 
Please let me know if you have any questions. 
 
Regards, 
Karthik.  



HA Hameed November 27, 2018 09:08 AM UTC

Is this fixed already in the Version 16.3.0.29? 

We still have the same problem...


KK Karthik Krishnaraj Syncfusion Team November 28, 2018 12:18 PM UTC

Hi Hameed, 

We were unable to reproduce the issue with the provided information. The reported issues resolved in the version 16.3.0.29 for the samples shared in this forum. Can you please share us more information about the issues by sample or input document to replicate the issue? It will be helpful for us to analyze further and provide better solution.
 
 
Regards, 
Karthik. 


Loader.
Up arrow icon