Android: ObjectDisposedException on PdfViewer unload

This was fine in 16.2.0.50 but it's broken in 16.3.0.21 (I confirmed this by reverting my nuget package).

I have a ContentPage with Content set to a PdfViewer. When I leave the page the Android app crashes with this error:

System.ObjectDisposedException: Cannot access a disposed object. 
Object name: 'Syncfusion.SfPdfViewer.Android.SfPdfViewer'.


4 Replies

KK Karthik Krishnaraj Syncfusion Team October 29, 2018 10:05 AM UTC

Hi Peter, 
 
Greetings from Syncfusion, 
 
We couldn’t reproduce the issue “Object disposed exception while leaving the page” with the provided information. I have attached a simple sample which we tried to reproduce the issue from our side. Can you please modify the shared sample to replicate the issue? It will be helpful for us to analyze further and provide better solution. 
 
Sample Link: 
 
Regards, 
Karthik. 



PE Peter October 31, 2018 10:01 PM UTC

Please find the updated project attached. 

Please note this issue only affects Android as we use the iOS internal/webview pdf viewer (because the SF one was giving us grief) and don't have a UWP version of our app, as such: 
  • I've removed the nuget reference for the forms version of the control and replaced with the Android version
  • This sample won't run on iOS or UWP
As such, this may be in the wrong forum. Apologies if this is the case, but I would assume the Android version of the control would be very similar to the Forms one? I posted in here because I originally used the Xamarin Forms version but forgot I ended up using just the Android control.

Attachment: NavigationSampleupdated_97492a44.zip


PE Peter November 7, 2018 10:01 PM UTC

Hi, has there been any progress on this issue? Thanks!


KK Karthik Krishnaraj Syncfusion Team November 8, 2018 11:27 AM UTC

Hi Peter, 
 
We were able to reproduce the issue with “Object disposed exception occurs while leaving the page” and confirmed as a defect from our side. We will resolve this issue and include it in our Essential studio Volume 4 release which will be rolled out in the month of December 2018. 
 
Regards, 
Karthik. 


Loader.
Up arrow icon