SfRichTextEditor Throws an error when a page is "Hot Reloaded" on Android

<PackageReference Include="Syncfusion.Xamarin.SfRichTextEditor" Version="19.2.0.59" />
<PackageReference Include="Xamarin.Forms" Version="5.0.0.2012" /


Error thrown is

Cannot access a disposed object. Object name: 'Syncfusion.XForms.Android.RichTextEditor.WebViewExt'.




System.ObjectDisposedException: Cannot access a disposed object.

Object name: 'Syncfusion.XForms.Android.RichTextEditor.WebViewExt'.

  at Java.Interop.JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self) [0x00029] in <bd6bd528a8784b7caf03e9f25c9f0d7b>:0

  at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00000] in <bd6bd528a8784b7caf03e9f25c9f0d7b>:0

  at Android.Webkit.WebView.EvaluateJavascript (System.String script, Android.Webkit.IValueCallback resultCallback) [0x00046] in /Users/builder/azdo/_work/1/s/xamarin-android/src/Mono.Android/obj/Release/monoandroid10/android-30/mcw/Android.Webkit.WebView.cs:2231

  at Syncfusion.XForms.Android.RichTextEditor.ScriptRunnable.Run () [0x00000] in <ee54c3ba04d2485797fdbf87f73f669f>:0

  at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00008] in /Users/builder/azdo/_work/1/s/xamarin-android/src/Mono.Android/obj/Release/monoandroid10/android-30/mcw/Java.Lang.IRunnable.cs:90

  at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.81(intptr,intptr)


3 Replies

GR Gayathri Ramalingam Syncfusion Team September 3, 2021 09:22 AM UTC

Hi Jaden,  
 
We tried to reproduce the issue “SfRichTextEditor Throws an error when a page is "Hot Reloaded" on Android, but it is working fine as expected. 
  
We have created a simple sample based on the provided information and the sample can be downloaded from the below link.  
 
We created a video for illustrating the same and it can be downloaded from the below links, 
 
  
Kindly provide the following details to investigate further on this issue.   
1.      Modify / Simple sample with which the issue could be reproduced. 
2.      Replication procedure to reproduce the issue or screen shot illustrating the issue. 
3.      Android device specification with the OS version. 
The above details will be more helpful for us to reproduce the issue in our side and assist you with the better solution at the earliest.   
 
 
With Regards, 
Gayathri R 
 





JA Jaden September 5, 2021 10:34 PM UTC

Thanks, I can't replicate it in a clean solution so there must be something else going on. I will try and locate the trigger and post more.


Please close for now.



GR Gayathri Ramalingam Syncfusion Team September 6, 2021 10:12 AM UTC

Hi Jaden,  
 
Thank you for your update. We are glad to know that the issue is resolved.  
 
With Regards, 
Gayathri R 
 


Loader.
Up arrow icon