Syncfusion.SfPdfViewer.XForms.Droid.ScrollViewEx.DispatchConfigurationChanged

Hello, 

My application is facing this failure, I am having this failure since the implementation of the package in my project. I wonder if I'm doing something wrong or if it's something wrong with the package?
android.runtime.JavaProxyThrowable: at Syncfusion.SfPdfViewer.XForms.Droid.ScrollViewEx.DispatchConfigurationChanged (Android.Content.Res.Configuration newConfig) [0x00075] in <a08e4f287e4241ba82c48e94b7494c98>:0
at Android.Views.View.n_DispatchConfigurationChanged_Landroid_content_res_Configuration_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_newConfig) [0x0000f] in <36ad1e9bdd3c4b2987af2db8a950ccaf>:0
at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.137(intptr,intptr,intptr)
  at crc64f0d106695cb1f69e.ScrollViewEx.n_dispatchConfigurationChanged (Native Method)
  at crc64f0d106695cb1f69e.ScrollViewEx.dispatchConfigurationChanged (ScrollViewEx.java:70)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1580)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1580)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1580)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1580)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1580)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1580)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1580)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1580)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1580)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1580)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1580)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1580)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1580)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1580)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1580)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1580)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1580)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1580)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1580)
  at android.view.ViewRootImpl.updateConfiguration (ViewRootImpl.java:4102)
  at android.app.ActivityThread.handleActivityConfigurationChanged (ActivityThread.java:5276)
  at android.app.servertransaction.ActivityConfigurationChangeItem.execute (ActivityConfigurationChangeItem.java:43)
  at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:108)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:68)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1836)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:193)
  at android.app.ActivityThread.main (ActivityThread.java:6704)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:916)

11 Replies 1 reply marked as answer

MK Muralitharan Karikalan Syncfusion Team January 29, 2021 09:09 AM UTC

Hi David, 
 
Greetings from Syncfusion support, 
 
We were unable to reproduce the issue, “Application crashes exception while Loading a Pdf document in Android Platform” in our end. Could you please try the below-provided sample and let us know whether we have missed out anything while replicating the issue. 
 
Please find the sample in the below link, which we have used to reproduce the issue in our end 
 
Kindly share the following details to analyze more on this issue and assist you with the better solution   
1.Simple sample/ modify the above sample to reproduce the issue.  
2.PDF document.  
3.Replication video/ procedure to reproduce the issue.  
4.SfPdfViewer and Xamarin.Forms version 
5.Device Information(OS, Model) 
 
Regards, 
Muralitharan K. 



DA David February 3, 2021 12:53 AM UTC

I have a failure like this every 2 hours at least
I don't know what to do to correct or work around
On many different device types

Ocorrência 1 de 116
Falha
Samsung Galaxy J4
brightness_1
Android 10 (SDK 29)
brightness_1
30.aab
brightness_1
28 horas atrás
Tipo
android.runtime.JavaProxyThrowable
android.runtime.JavaProxyThrowable: at Syncfusion.SfPdfViewer.XForms.Droid.ScrollViewEx.DispatchConfigurationChanged (Android.Content.Res.Configuration newConfig) [0x00075] in <86deb62cf9054b20818d6ea281d6ba04>:0
at Android.Views.View.n_DispatchConfigurationChanged_Landroid_content_res_Configuration_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_newConfig) [0x0000f] in <aa8e42b554284148ba8a4b5113e63407>:0
at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.128(intptr,intptr,intptr)
  at crc64f0d106695cb1f69e.ScrollViewEx.n_dispatchConfigurationChanged (Native Method)
  at crc64f0d106695cb1f69e.ScrollViewEx.dispatchConfigurationChanged (ScrollViewEx.java:70)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1623)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1623)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1623)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1623)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1623)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1623)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1623)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1623)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1623)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1623)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1623)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1623)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1623)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1623)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1623)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1623)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1623)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1623)
  at android.view.ViewGroup.dispatchConfigurationChanged (ViewGroup.java:1623)
  at android.view.ViewRootImpl.updateConfiguration (ViewRootImpl.java:5043)
  at android.app.ActivityThread.handleActivityConfigurationChanged (ActivityThread.java:6269)
  at android.app.servertransaction.ActivityConfigurationChangeItem.execute (ActivityConfigurationChangeItem.java:48)
  at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:135)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:95)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2216)
  at android.os.Handler.dispatchMessage (Handler.java:107)
  at android.os.Looper.loop (Looper.java:237)
  at android.app.ActivityThread.main (ActivityThread.java:7948)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1075)


TK Tushar Koshti February 3, 2021 10:11 AM UTC

Hello,

I am also facing this issue. Below is the stack trace. Can you please help me with this error?

ScrollViewEx.DispatchConfigurationChanged (Android.Content.Res.Configuration newConfig)
System.NullReferenceException: Object reference not set to an instance of an object
Syncfusion.SfPdfViewer.Android
ScrollViewEx.DispatchConfigurationChanged (Android.Content.Res.Configuration newConfig)
Android.Views
View.n_DispatchConfigurationChanged_Landroid_content_res_Configuration_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_newConfig)
(wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.20(intptr,intptr,intptr)

Thanks,
Tushar


MK Muralitharan Karikalan Syncfusion Team February 3, 2021 02:00 PM UTC

Hi David,  
We are still unable to reproduce the issue,” Application crashes exception while Loading a Pdf document in Android Platform in our end with the details you are provided. However, based on the provided stack trace, we suspect that this issue may be same the issue which we have faced recently, where application crashes with exception while changing the device orientation when SfPdfViewer control is placed inside the SfNavigation drawer control. 
Kindly let us know whether your replication scenario is same as above one?. If it is different from the issue which you are facing, kindly share the following details to analyze more on this issue and assist you with the better solution   
1.Simple sample/ modify the above sample to reproduce the issue.   
2.Replication video/ procedure to reproduce the issue.   
3.SfPdfViewer and Xamarin.Forms version  
 
Regards, 
Muralitharan K 



TS tarun sharma February 5, 2021 06:42 AM UTC

for more information visit ozoweb


DA David February 5, 2021 10:03 PM UTC

After many tests I ended up discovering what is causing this failure, when the device is enabled the screen orientation function and you change it causes this failure I inserted the video with the failure.

Attachment: WhatsApp_Video_20210205_at_18.55.16_f1009656.zip


MK Muralitharan Karikalan Syncfusion Team February 8, 2021 03:19 PM UTC

Hi David, 
 
we are unable to reproduce the issue from our end with the provided details. While analyzing your replication video we found that you are using SfPdfViewer inside the SfTabview. Could you please try the below-provided sample and let us know whether we have missed out anything while replicating the issue. 
 
Please find the sample in the below link, which we have used to reproduce the issue in our end 
 
Kindly share the following details to analyze more on this issue and assist you with the better solution   
1.Simple sample/ modify the above sample to reproduce the issue.  
2.How you are using SfPdfViewer as a child of others in your sample. 
 
Regards, 
Muralitharan K. 



TK Tushar Koshti February 11, 2021 06:54 AM UTC

Hi Muralitharan,

I'm also facing this issue quite a lot.

I think the root cause of this issue is related to Syncfusion.SfPdfViewer.XForms.Droid.ScrollViewEx.DispatchConfigurationChanged (Android.Content.Res.Configuration newConfig) method.

Can you please add all the required safety checks in this method related to the null reference error?

Thanks,
Tushar


MK Muralitharan Karikalan Syncfusion Team February 12, 2021 02:46 PM UTC

Hi Tushar, 
 
We will resolve and include a text fix for the issue, “Application crashes exception while Loading a Pdf document in Android Platform” in our upcoming  weekly NuGet release which is expected to be available on February 16, 2021.  
 
Regards, 
Muralitharan k  



TK Tushar Koshti February 16, 2021 08:11 AM UTC

Hi Muralitharan,

Is the fix is released?

Thanks,
Tushar


AV Ashokkumar Viswanathan Syncfusion Team February 17, 2021 05:34 AM UTC

Hi Tushar, 
 
Based on the provided stack trace, we have included the fix for the issue, “Application crashes exception while Loading a Pdf document in Android Platform” in our weekly NuGet release v18.4.0.43. Kindly update to the mentioned version and let us know whether the issue is resolved in your end?. 
 
Please find the packages link below, 
 
Regards, 
Ashok Kumar Viswanathan. 


Marked as answer
Loader.
Up arrow icon