Syncfusion.Xamarin.SfPdfViewer causes iOS app to crash on closing, other platforms are ok

Hi there, I wonder if someone can suggest anything? Non shell app, with latest components, after release to the store with linked SDKs only fails on iOS, regardless of size - any pdf file causes app to crash. The page is very simple design, even without using below still crashes the same. Please help! :)

        protected override void OnAppearing()

        {

            base.OnAppearing();


            if (ViewModel.PdfDocumentStream != null)

                pdfViewerControl?.LoadDocument(ViewModel.PdfDocumentStream);

        }


        protected override void OnDisappearing()

        {

            base.OnDisappearing();


            try

            {

                ViewModel.PdfDocumentStream?.Close();

                ViewModel.PdfDocumentStream?.Dispose();


                pdfViewerControl?.Unload();

                pdfViewerControl?.Dispose();

            }

            catch { }

        }



5 Replies 1 reply marked as answer

AS Anandraj Selvam Syncfusion Team October 26, 2021 11:12 AM UTC

Hi YR, 
  
Greetings from the Syncfusion support. 
  
While the leaving the navigation page containing SfPdfViewer control, application crashes with following exception mentioned in the below screenshot. This issue occurs only with latest version of the Xamarin Forms (v 5.0.0.2196). However, currently we are validating the issue in our end, and we will let you know the further details on October 27th, 2021.  
  
Could you please confirm whether you are facing same exception in your end? If not, kindly provide following details to replicate the issue in our end  
  
·       Sample to replicate the issue. 
·       Xamarin forms version. 
·       Stack trace of the exception. 
·       PDF document. 
  
 
  
Regards, 
Anand Raj S. 


Marked as answer

YR YR October 26, 2021 03:22 PM UTC

Hi Anand Raj,

Thanks for your reply! I can confirm it appears to be working with XF 5.0.0.2125, will submit it to the App Store and see.

Kind regards, Yury.



VD Vikram Devaraj Syncfusion Team October 27, 2021 08:31 AM UTC

 Hi YT,

Thank you for the update.
 
 
Please find the bug report which we have created in Xamarin Forms portal,  

Regards,
Vikram
 



RL Reiner Lämmle replied to Vikram Devaraj November 16, 2021 09:15 AM UTC

Hello! The bug report you have created was closed on GitHub, but not resolved and can still be reproduced with your provided example project upgraded to 5.0.0.2244. Would you mind re-reporting it?



SP SarathKumar Prakash Syncfusion Team November 17, 2021 06:08 PM UTC

Hi Reiner Lämmle,

We have reported that issue is not resolved in bug report.

https://github.com/xamarin/Xamarin.Forms/issues/14788
 


Regards,
Sarath Kumar


Loader.
Up arrow icon