We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

StackOverflowError Exception On Android 4.2.2

First I want to thank you for all of your work on the Xamarin Forms controls and for the customer support that has been given in this forum.

Receiving a StackOverflowError exception when my ContentPage loads with an SF Calendar control on it. This happens on an Android Galaxy SIII Mini running Android 4.2.2. Any ideas?

07-27 09:04:21.912 D/android.widget.GridLayout( 8960): horizontal constraints: x7-x0>=480, x7-x6<=68, x6-x5<=68, x5-x4<=68, x4-x3<=68, x3-x2<=68, x2-x1<=68, x1-x0<=68 are inconsistent; permanently removing: x7-x6<=68.
07-27 09:04:21.912 D/android.widget.GridLayout( 8960): vertical constraints: y1-y0>=370, y1-y0<=61 are inconsistent; permanently removing: y1-y0<=61.
07-27 09:04:21.920 D/android.widget.GridLayout( 8960): horizontal constraints: x7-x0>=480, x7-x6<=68, x6-x5<=68, x5-x4<=68, x4-x3<=68, x3-x2<=68, x2-x1<=68, x1-x0<=68 are inconsistent; permanently removing: x7-x6<=68.
07-27 09:04:21.920 D/android.widget.GridLayout( 8960): vertical constraints: y1-y0>=370, y1-y0<=61 are inconsistent; permanently removing: y1-y0<=61.
07-27 09:04:21.927 D/android.widget.GridLayout( 8960): horizontal constraints: x7-x0>=480, x7-x6<=68, x6-x5<=68, x5-x4<=68, x4-x3<=68, x3-x2<=68, x2-x1<=68, x1-x0<=68 are inconsistent; permanently removing: x7-x6<=68.
07-27 09:04:21.927 D/android.widget.GridLayout( 8960): vertical constraints: y1-y0>=370, y1-y0<=61 are inconsistent; permanently removing: y1-y0<=61.
07-27 09:04:21.935 D/android.widget.GridLayout( 8960): horizontal constraints: x7-x0>=480, x7-x6<=68, x6-x5<=68, x5-x4<=68, x4-x3<=68, x3-x2<=68, x2-x1<=68, x1-x0<=68 are inconsistent; permanently removing: x7-x6<=68.
07-27 09:04:21.935 D/android.widget.GridLayout( 8960): vertical constraints: y1-y0>=370, y1-y0<=61 are inconsistent; permanently removing: y1-y0<=61.
07-27 09:04:21.935 D/android.widget.GridLayout( 8960): horizontal constraints: x7-x0>=480, x7-x6<=68, x6-x5<=68, x5-x4<=68, x4-x3<=68, x3-x2<=68, x2-x1<=68, x1-x0<=68 are inconsistent; permanently removing: x7-x6<=68.
07-27 09:04:21.935 D/android.widget.GridLayout( 8960): vertical constraints: y1-y0>=370, y1-y0<=61 are inconsistent; permanently removing: y1-y0<=61.
07-27 09:04:21.943 D/android.widget.GridLayout( 8960): horizontal constraints: x7-x0>=480, x7-x6<=68, x6-x5<=68, x5-x4<=68, x4-x3<=68, x3-x2<=68, x2-x1<=68, x1-x0<=68 are inconsistent; permanently removing: x7-x6<=68.
07-27 09:04:21.943 D/android.widget.GridLayout( 8960): vertical constraints: y1-y0>=370, y1-y0<=61 are inconsistent; permanently removing: y1-y0<=61.
07-27 09:04:21.982 D/AbsListView( 8960): unregisterIRListener() is called
07-27 09:04:21.998 I/dalvikvm( 8960): threadid=1: stack overflow on call to Landroid/graphics/Paint;.getTextRunAdvances:FLIIIIILII
07-27 09:04:21.998 I/dalvikvm( 8960): method requires 92+20+40=152 bytes, fp is 0x4156236c (108 left)
07-27 09:04:21.998 I/dalvikvm( 8960): expanding stack end (0x41562300 to 0x41562000)
07-27 09:04:21.998 I/dalvikvm( 8960): Shrank stack (to 0x41562300, curFrame is 0x415629b8)
07-27 09:04:22.005 D/AndroidRuntime( 8960): Shutting down VM
07-27 09:04:22.005 W/dalvikvm( 8960): threadid=1: thread exiting with uncaught exception (group=0x41632960)
07-27 09:04:26.005 E/AndroidRuntime( 8960): FATAL EXCEPTION: main
07-27 09:04:26.005 E/AndroidRuntime( 8960): java.lang.StackOverflowError
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.graphics.Paint.getTextRunAdvances(Paint.java:2064)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.text.TextLine.handleText(TextLine.java:987)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.text.TextLine.handleRun(TextLine.java:1142)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.text.TextLine.measureRun(TextLine.java:635)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.text.TextLine.measure(TextLine.java:498)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.text.TextLine.metrics(TextLine.java:472)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.text.Layout.getLineExtent(Layout.java:993)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.text.Layout.drawText(Layout.java:344)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.text.Layout.draw(Layout.java:220)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.text.BoringLayout.draw(BoringLayout.java:400)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.widget.TextView.onDraw(TextView.java:5780)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.draw(View.java:14636)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13568)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13612)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.draw(View.java:14349)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.ViewGroup.drawChild(ViewGroup.java:3155)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3024)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13566)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13612)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.draw(View.java:14349)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.ViewGroup.drawChild(ViewGroup.java:3155)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3024)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.draw(View.java:14639)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.widget.FrameLayout.draw(FrameLayout.java:467)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13568)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13612)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.draw(View.java:14349)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.ViewGroup.drawChild(ViewGroup.java:3155)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3024)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.draw(View.java:14639)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.widget.FrameLayout.draw(FrameLayout.java:467)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13568)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13612)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.draw(View.java:14349)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.ViewGroup.drawChild(ViewGroup.java:3155)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3024)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13566)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13612)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.draw(View.java:14349)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.ViewGroup.drawChild(ViewGroup.java:3155)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3024)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13566)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13612)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.draw(View.java:14349)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.ViewGroup.drawChild(ViewGroup.java:3155)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3024)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13566)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13612)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.draw(View.java:14349)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.ViewGroup.drawChild(ViewGroup.java:3155)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3024)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13566)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13612)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.draw(View.java:14349)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.ViewGroup.drawChild(ViewGroup.java:3155)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3024)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13566)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13612)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.draw(View.java:14349)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.ViewGroup.drawChild(ViewGroup.java:3155)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3024)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13566)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13612)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.draw(View.java:14349)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.ViewGroup.drawChild(ViewGroup.java:3155)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3024)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13566)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13612)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.draw(View.java:14349)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.ViewGroup.drawChild(ViewGroup.java:3155)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3024)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.draw(View.java:14639)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.widget.FrameLayout.draw(FrameLayout.java:467)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.getDisplayList(View.java:13568)
07-27 09:04:26.005 E/AndroidRuntime( 8960): at android.view.View.

8 Replies

RK Rathana Kumar Sekar Syncfusion Team July 28, 2017 12:14 PM UTC

Hi Hines Vaughan,

Thanks for contacting Syncfusion Support.

We have checked the reported issue "StackOverflow exception on Android 4.22" and we were unable to reproduce the reported issue from our side. We have attached the sample, which we have checked the reported issue from our side.

Sample: http://www.syncfusion.com/downloads/support/forum/131793/ze/Sample498187481 

So, could you please provide below mentioned details, 
1)Modified sample which replicates the reported issue.
2)Currently using Xamarin Studio version.
3)ContentPage also contain the Listview component.

It will help us to provide appropriate solution on this.

Regards,
Rathanakumar S. 



HV Hines Vaughan III July 28, 2017 03:07 PM UTC

Well I tried creating a new project and could not replicate the same exception, very strange since it consistently occurs in my real project. The calendar control is in a Grid that is within a ListView.HeadTemplate. I did forget to say that the exception only happens when rotating the device. In my real project, when I remove the Grid, the exception no longer occurs so I will play around with that and see if I can get it working.

While attempting to recreate the issue in a new project, I came across a very similar exception that I can send over. It is still a StackOverflow and also happens when rotating the device, but it looks like it is originating from a different place than the original one I mentioned. I am attaching the full stacktrace for the new exception and a sample project. Below are instructions for causing the crash:


1. Run project

2. Click Open Main button

3. Rotate device from portrait to landscape

4. Rotate device back to portrait

5. Crash happens


Attachment: SfCalendarIssues_b3df7877.zip


RK Rathana Kumar Sekar Syncfusion Team August 1, 2017 02:27 PM UTC

Hi Hines Vaughan,

Thanks for the update.

We have checked the reported issue from your sample and we were able to reproduce the reported issue "StackOverflow exception on Android 4.22" from our side and we have logged bug report for this. This fix will be available our upcoming Volume 3 SP 1 release.

Please let us know if you have any other query.

Regards,
Rathanakumar S.


HV Hines Vaughan III replied to Rathana Kumar Sekar August 8, 2017 03:12 PM UTC

Hi Hines Vaughan,

Thanks for the update.

We have checked the reported issue from your sample and we were able to reproduce the reported issue "StackOverflow exception on Android 4.22" from our side and we have logged bug report for this. This fix will be available our upcoming Volume 3 SP 1 release.

Please let us know if you have any other query.

Regards,
Rathanakumar S.

@RathanaKumarSekar


Is there a bug number/link for that fix that I can monitor or any idea when the fix or update will be pushed out or even what version is might be included in? Thanks.



RK Rathana Kumar Sekar Syncfusion Team August 9, 2017 12:27 PM UTC

Hi Hines Vaughan,

Thanks for the update. 

The fix will be included our upcoming Volume 3 SP 1 release and which will be rolled out by the end of this month. 

We will let you know once our volume 3 SP 1 has been rolled out. 

Regards,
Rathanakumar S. 



ET Eswaran Thirugnanasambandam Syncfusion Team August 29, 2017 01:10 PM UTC

Hi Hines Vaughan,

Sorry for the inconvience.

In our future analysis, we found that the Syncfusion SfCalendar Component inside the ListView HeaderTemplate is working good in higher resolution Android devices. While checking with Android Version 4.2 and below version application gets crash with "StackOverFlow Exception" while changing the device orientation. It is found that the issue occurs only if the Calendar control is added to a ListView and the issue stacktrace shows that it is related to core Android. So, we have reported this issue in Xamarin bugzilla. Please find the Bugzilla link from the below link.

Bugzilla Link:
https://bugzilla.xamarin.com/show_bug.cgi?id=59091

Please follow this link for further detail.

Regards,
Eswaran AT.


HV Hines Vaughan III August 29, 2017 01:15 PM UTC

Thank you very much for your continued support on this problem. Truly appreciate your help.



ET Eswaran Thirugnanasambandam Syncfusion Team August 30, 2017 01:47 PM UTC

Hi Hines Vaughan, 
  
Thanks for the update. 

We are glad to know provided solution helps you. 

Please let us know if you have any other query. 
  
Regards, 
Eswaran AT. 


Loader.
Live Chat Icon For mobile
Up arrow icon