Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

StackOverflowError only on Android 4.0.4

$
0
0

I'm getting some Insight crashes with a Java.Lang.Error StackOverflowError from a ScrollViewRenderer only on 4.0.4
The stack has a bunch of:
at android.view.ViewGroup.drawChild(ViewGroup.java:2850)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
at android.view.View.getDisplayList(View.java:10459)
at android.view.ViewGroup.drawChild(ViewGroup.java:2850)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
at android.view.View.getDisplayList(View.java:10459)
at android.view.ViewGroup.drawChild(ViewGroup.java:2850)

I don't know which view is causing this issue, and I don't have too many views that have a deep hierarchy.
I see that others have reported similar issues"
https://bugzilla.xamarin.com/show_bug.cgi?id=33239
http://stackoverflow.com/questions/42524902/getting-a-java-lang-stackoverflowerror-for-android-4-0-4-samsungtablet-in-xamari

I don't know of this is simply caused by a smaller stack on 4.0.4, or of there is a possible issue here that causes the stack to go so deep.

The last portion of the stack before the crash:
java.lang.StackOverflowError
at android.graphics.Canvas$CanvasFinalizer.(Canvas.java:94)
at android.graphics.Canvas.(Canvas.java:119)
at android.view.HardwareCanvas.(HardwareCanvas.java:29)
at android.view.GLES20Canvas.(GLES20Canvas.java:98)
at android.view.GLES20RecordingCanvas.(GLES20RecordingCanvas.java:62)
at android.view.GLES20RecordingCanvas.(GLES20RecordingCanvas.java:38)
at android.view.GLES20RecordingCanvas$1.newInstance(GLES20RecordingCanvas.java:46)
at android.view.GLES20RecordingCanvas$1.newInstance(GLES20RecordingCanvas.java:44)
at android.util.FinitePool.acquire(FinitePool.java:69)
at android.util.SynchronizedPool.acquire(SynchronizedPool.java:39)
at android.view.GLES20RecordingCanvas.obtain(GLES20RecordingCanvas.java:66)
at android.view.GLES20DisplayList.start(GLES20DisplayList.java:52)
at android.view.View.getDisplayList(View.java:10440)
at android.view.ViewGroup.drawChild(ViewGroup.java:2850)
...

There is a call to ScollViewRenderer.java:51 mixed in

Is this a bug in xamarin, or in Android? Or is my listview just too complicated?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>