Android: App Crash occurs if you select the current year twice in the calendar on Android

Hi,

When I select the year in the calendar multiple times , the app crashes and I am getting the below error:

Unhandled exception - Java.Lang.NullPointerException: Attempt to read from field 'int android.view.View.mViewFlags' on a null object reference

--- End of managed Java.Lang.NullPointerException stack trace ---

java.lang.NullPointerException: Attempt to read from field 'int android.view.View.mViewFlags' on a null object reference

at android.view.ViewGroup.dispatchCollectViewAttributes(ViewGroup.java:1687)

at android.view.ViewGroup.dispatchCollectViewAttributes(ViewGroup.java:1687)

at android.view.ViewGroup.dispatchCollectViewAttributes(ViewGroup.java:1687)

at android.view.ViewGroup.dispatchCollectViewAttributes(ViewGroup.java:1687)

at android.view.ViewGroup.dispatchCollectViewAttributes(ViewGroup.java:1687)

at android.view.ViewGroup.dispatchCollectViewAttributes(ViewGroup.java:1687)

at android.view.ViewGroup.dispatchCollectViewAttributes(ViewGroup.java:1687)

at android.view.ViewGroup.dispatchCollectViewAttributes(ViewGroup.java:1687)

at android.view.ViewGroup.dispatchCollectViewAttributes(ViewGroup.java:1687)

at android.view.ViewGroup.dispatchCollectViewAttributes(ViewGroup.java:1687)

at android.view.ViewGroup.dispatchCollectViewAttributes(ViewGroup.java:1687)

at android.view.ViewGroup.dispatchCollectViewAttributes(ViewGroup.java:1687)

at android.view.ViewGroup.dispatchCollectViewAttributes(ViewGroup.java:1687)

at android.view.ViewGroup.dispatchCollectViewAttributes(ViewGroup.java:1687)

at android.view.ViewGroup.dispatchCollectViewAttributes(ViewGroup.java:1687)

at android.view.ViewGroup.dispatchCollectViewAttributes(ViewGroup.java:1687)

at android.view.ViewGroup.dispatchCollectViewAttributes(ViewGroup.java:1687)

at android.view.ViewGroup.dispatchCollectViewAttributes(ViewGroup.java:1687)

at android.view.ViewRootImpl.collectViewAttributes(ViewRootImpl.java:2698)

at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3263)

at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2669)

at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:10092)

at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1010)

at android.view.Choreographer.doCallbacks(Choreographer.java:809)

at android.view.Choreographer.doFrame(Choreographer.java:744)

at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:995)

at android.os.Handler.handleCallback(Handler.java:938)

at android.os.Handler.dispatchMessage(Handler.java:99)

at android.os.Looper.loop(Looper.java:247)

at android.app.ActivityThread.main(ActivityThread.java:8656)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130).


Could you please help me with a solution.


Thanks

Sonal



17 Replies

SS SaiGanesh Sakthivel Syncfusion Team December 14, 2021 09:37 AM UTC

Hi Sonal, 
 
We were unable to replicate the reported ‘Android: App crash occurs if you select the current year’ scenario from our side. We have prepared the sample as per given information and checked with the android 9 API 28 (Honor 9N) device. We have attached the tested sample and sample video in the following locations. 
 
 
 
Please check the sample and let us know if you still facing the same issue? If not, please modify our sample based on your scenario and revert us back with the following details,  
  
·       Share the device configuration details. 
·       Share the Xamarin form and syncfusion version. 
·       Share the issue reproduce video. 
  
It will be helpful for us to check on it and provide you the solution at the earliest.  
   
Regards,
SaiGanesh Sakthivel 
 



SK sonal khatri December 15, 2021 04:30 AM UTC

Hi,

It happens when we select the same year multiple times.

I have changed the Xamarin form and Syncfusion version in the sample application you shared and I am able to reproduce the issue.

Note: We need to select the year multiple times to reproduce the issue.

Xamarin form version - 5.0.0.1874

Syncfusion verion - 19.3.0.56

Device - Redmi Note 7S Android 10 API 29


Thanks

Sonal


Attachment: AppCrash_cfd167bc.zip



SS SaiGanesh Sakthivel Syncfusion Team December 15, 2021 11:50 AM UTC

Hi Sonal, 
 
We have been able to replicate the reported scenario when we click from year to month several times. We also have analysis at the source level. We found the reported scenario is a framework issue. We have raised the question to the framework side in the already logged issue report. Kindly refer to the following link for the same. 
 
  
We are having following up with the reported bug. We will update you further details once we got the solution from the Xamarin team. We appreciate your patience until then.  
   
Regards,  
SaiGanesh Sakthivel  



SK sonal khatri December 21, 2021 04:19 AM UTC

Hi SaiGanesh,


Could you please let me know the estimated time on fixing the bug.


Thanks

Sonal




SS SaiGanesh Sakthivel Syncfusion Team December 22, 2021 10:12 AM UTC

Hi Sonal, 
 
We are following the reported framework bug. Once we get the solution from the Xamarin team, we will update you with further details. We appreciate your patience until then. 
   
Regards, 
SaiGanesh Sakthivel 



SK sonal khatri January 9, 2022 09:51 AM UTC

Hi SaiGanesh,


Any update on this bug?


Thanks

Sonal



SS SaiGanesh Sakthivel Syncfusion Team January 10, 2022 01:08 PM UTC

Hi Sonal, 
 
Currently, we are preparing the prototype model to replicate the reported scenario in the simple sample level. We have already logged the issue in framework issue from our side. once we have prepared the simple sample prototype, we will update to the framework side.

Bug: https://github.com/xamarin/Xamarin.Forms/issues/15038
 
 
We will update you once we have got a solution. We appreciate your patience until then.  
 
Regards, 
SaiGanesh Sakthivel 



SK sonal khatri February 4, 2022 05:50 AM UTC

Hi SaiGanesh,


Any update on this bug?


Thanks

Sonal



SS SaiGanesh Sakthivel Syncfusion Team February 7, 2022 12:51 PM UTC

Hi Sonal, 
 
We are following the reported framework bug. Once we get the solution from the Xamarin team, we will update you with further details. We appreciate your patience until then. 
   
Regards, 
SaiGanesh Sakthivel 



SK sonal khatri February 22, 2022 12:33 PM UTC

Hi SaiGanesh,


Could you please let me know the exact timeframe to resolve this bug. This has been going on for a while now and there are no updates.


Thanks

Sonal



SK sonal khatri February 23, 2022 09:20 AM UTC

Hi SaiGanesh,


Can we connect to discuss the progress on this bug and how much time is required to fix this.

We need to update our end customers accordingly.


Please let me know your availability and how can I connect with you.


Thanks

Sonal



SS SaiGanesh Sakthivel Syncfusion Team February 23, 2022 03:32 PM UTC

Hi Sonal,

The reported issue thrown from the framework side. Due to the unique architecture, we are unable to reproduce the reported issue in a simple sample. We have asked the possible fix from the framework. Also, created a bug task to track the reported issue “[Bug] Java.Lang.NullPointerException: 'Attempt to invoke virtual method 'boolean android.view.View.isLayoutDirectionInherited()' on a null object reference”. Kindly follow up with the below feedback link for further updates.

Link: 
https://www.syncfusion.com/feedback/32947/framework-issue-virtual-method-android-view-view-islayoutdirectioninherited-thrown

Framework link: 
https://github.com/xamarin/Xamarin.Forms/issues/15038

We will keep you posted through this feedback once we get any update from framework side.

Regards,
SaiGanesh Sakthivel
 



SK sonal khatri March 1, 2022 08:42 AM UTC

Hi SaiGanesh,


Could you please let me know the temporary fix for this bug until it gets resolved.


Thanks

Sonal



SS SaiGanesh Sakthivel Syncfusion Team March 1, 2022 01:23 PM UTC

Hi Sonal, 
 
We have analysis the reported scenario in our source level. It is not possible to fix the reported issue from our side. Once we get the solution from the framework side, we will update you with further details. We appreciate your patience until then. 
   
Regards, 
SaiGanesh Sakthivel


SK sonal khatri March 14, 2022 08:58 AM UTC

Hi SaiGanesh,


We are the Microsoft Partners and can connect you directly to Microsoft representative regarding your issue with Xamarin framework.

Please let us know when can we connect to discuss about the call setup with Microsoft.


Thanks

Sonal



SP Sangavi Periyannan Syncfusion Team March 15, 2022 10:54 AM UTC

Hi Sonal, 
  
We have created a new ticket under your account. Please check and have a further follow-up related to this forum on a new ticket. 
  
Regards, 
Sangavi 



SP Sangavi Periyannan Syncfusion Team March 17, 2022 04:53 PM UTC

Hi Sonal,


This is not Syncfusion's issue. Our obligation is to report this issue to Microsoft, and we have done so. If you need to follow up on this issue, you can contact the Microsoft team separately. If you need any other assistance related to Syncfusion controls, please let us know. We will be happy to assist you.


Regards,

Sangavi



Loader.
Up arrow icon