Null reference on some PDF's in PDFViewer 17.4.0.51 Xamarin.Forms iOS

Hi,

PDF Viewer in Xamarin.Forms app using XF 4.5.0.356 crashes in iOS with "SIGABRT: Object reference not set to an instance of an object" on some PDF files. Observed in version 17.4.0.51. I can't use the latest because of the issue I have raised in 152250.

Partial stack trace:

PdfLoadedTextWebLinkAnnotation.ObtainUrl ()
PdfLoadedTextWebLinkAnnotation.get_Url ()
ScrollViewEx.RenderHyperlinks (System.Int32 index)
ScrollViewEx.LayoutSubviews ()
(wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate)
UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName)
Application.Main (System.String[] args)

Development environment:
OSX 10.15.3
Visual Studio for Mac 8.4.8 
xCode - Latest 
.NET Core RT 3.1.2

.NET Core SDKs 3.1.102


Thanks.

7 Replies

JP Jhansi Priya Ramesh Syncfusion Team March 9, 2020 09:02 AM UTC

Hi Paul, 
 
Greetings from syncfusion support. 
 
We tried reproducing the issue with the provided stack trace details. Unfortunately, we could not able to replicate the issue on our side. Based on the provided details we suspect that the issue may occur specifically with the PDF document you are using at your end. Kindly share the below details to reproduce and analyze the issue on our site and provide you an effective solution. 
 
1.       Simple sample or modify the below sample 
2.       A sample PDF document with which issue could be reproduced. 
 
Regards, 
Jhansi Priya Ramesh 



PC Paul Chapman March 9, 2020 06:44 PM UTC

Hi,

Please find sample PDF that crashes on iOS. 

Kind regards,

Paul


JP Jhansi Priya Ramesh Syncfusion Team March 10, 2020 05:49 AM UTC

Hi Paul, 

We could not find any sample PDF in the update. Kindly update the sample document to reproduce the issue in our environment. 

Regards, 
Jhansi Priya Ramesh 



PC Paul Chapman March 10, 2020 07:22 AM UTC

Hi,

Please find attached PDF that causes the crash.

Kind regards,

Paul

Attachment: Coronavirus_and_Formula_1_For_Health_Personnel.pdf_36ad8ee4.zip


JP Jhansi Priya Ramesh Syncfusion Team March 10, 2020 09:13 AM UTC

Hi Paul, 
 
Thank you for providing us the sample document. We were able to reproduce the application crash while scrolling to the second page of the document with the similar stack trace provided by you. Could you please confirm whether you are facing the issue in a similar scenario?   
Meanwhile, we will validate the issue “Application crashes while scrolling the PDF document” in our side and provide further details on 12th March 2020.   
 
Regards, 
Jhansi Priya Ramesh 



PC Paul Chapman March 11, 2020 09:45 AM UTC

Hi,

That is the same behaviour we are experiencing with this file.

Kind regards,

Paul


JP Jhansi Priya Ramesh Syncfusion Team March 12, 2020 12:41 PM UTC

Hi Paul, 
 
Thank you for the update. We confirm that the issue “Application crashes while scrolling the PDF document” is a defect in our side. We have resolved the issue and included the fix for this issue in our latest weekly release of version 17.4.0.55. Please find the NuGet package from the below link, 
 
 
Kindly install the above NuGet to get your issue resolved.  
 
Regards, 
Jhansi Priya Ramesh 


Loader.
Up arrow icon