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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfPdfViewer Crash (Again)

Thread ID:





141951 Jan 11,2019 04:42 PM UTC Apr 3,2019 12:02 PM UTC Xamarin.Forms 5
Tags: PdfViewer
Asked On January 11, 2019 04:42 PM UTC

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

Sathish Sivakumar [Syncfusion]
Replied On 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 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. 

Replied On 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

Sathish Sivakumar [Syncfusion]
Replied On 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  

Thomas Klocker
Replied On 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.

Sathish Sivakumar [Syncfusion]
Replied On 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. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon