We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

SfPdfViewer Crash (Again)

Got a similar issue to Thread 139440.

PdfViewer crash on unload.
The problem seems related to a PDF that viewer cannot render (see attached PDF)

At the moment i cannot replicate on a sample solution.

The stacktrace is:

   at Syncfusion.SfPdfViewer.XForms.UWP.PdfDocumentView.ClearAllAnnotation()
   at Syncfusion.SfPdfViewer.XForms.UWP.PdfDocumentView.<Unload>d__223.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()

Attachment: TEST_xamarin_bf2c10b5.7z

5 Replies

SS Sathish Sivakumar Syncfusion Team January 16, 2019 11:09 AM UTC

Hi Alessandro, 
 
Thank you for using Syncfusion products. 
 
We are unable to reproduce the issue “Application crashes while unloading the PDF document from PDF Viewer” using the sample provided in the forum 139440 in our side.  We have used the latest assemblies with version 16.4.0.46 to replicate the issue. Could you please provide the following details to analyze more on this issue and provide you the solution at the earliest? 
 
1.       SfPdfViewer Xamarin.Forms assembly version  
2.       Visual Studio version 
3.       Xamarin.Forms version 
4.       UWP SDK version 
5.       Android SDK version 
6.       iOS SDK version 
7.       Simple sample or code snippet to reproduce the issue. 
 
Regards, 
Sathish 



AL Alessandro January 16, 2019 01:05 PM UTC

Here a Sample,

UWP app:

1. Click Go ToPdfViever
2. Click Load PDF

Empty PDF loaded.

on Unload I Got a Crash in my full application. Here in demo i still cannot reproduce but the stacktrace is

    Object not set to an instance of an object in 
 
   at Syncfusion.SfPdfViewer.XForms.UWP.PdfDocumentView.ClearAllAnnotation()
   at Syncfusion.SfPdfViewer.XForms.UWP.PdfDocumentView.<Unload>d__223.MoveNext()



Attachment: ViewerNavigation_2853b74b.7z


SS Sathish Sivakumar Syncfusion Team January 17, 2019 06:46 AM UTC

Hi Alessandro, 
Thanks for your update. 
We are unable to reproduce the issue “Application crashes while unloading the PDF document from PDF Viewer” in our side. So, we have created a support incident under your account to track the status of this defect. Please log on to our support website to check for further updates  
Regards, 
Sathish 



TK Thomas Klocker April 2, 2019 09:52 AM UTC

Has there been any solution? Cause i have the same exact problem, but i cant create a sample cause it only happens sometimes.



SS Sathish Sivakumar Syncfusion Team April 3, 2019 12:02 PM UTC

Hi Thomas, 
 
We have fixed the issue “Application crashes while unloading the PDF document from SfPdfViewer in Xamarin.Forms.UWP” in 2019 Vol 1 release v17.1.0.38. Kindly update the SfPdfViewer to the above mentioned version to get the issue resolved. 
 
Kindly share the stack trace details if you are still facing the same issue. 
 
Regards, 
Sathish 


Loader.
Live Chat Icon For mobile
Up arrow icon