This is a migrated thread and some comments may be shown as answers.

pan and zoom arrangeAxes crash

5 Answers 56 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kiril.Stanoev
Top achievements
Rank 1
Kiril.Stanoev asked on 19 Jun 2014, 05:26 PM
Hi guys,
The following stack trace was posted on our feedback portal: http://feedback.telerik.com/Project/158/Feedback/Details/128065-pan-and-zoom-arrangeaxes-crash

Stacktrace:

junit.framework.AssertionFailedError: Entering endless loop
at junit.framework.Assert.fail(Assert.java:50)
at com.telerik.widget.chart.engine.chartAreas.CartesianChartAreaModel.arrangeAxes(CartesianChartAreaModel.java:115)
at com.telerik.widget.chart.engine.chartAreas.ChartAreaModelWithAxes.arrangeOverride(ChartAreaModelWithAxes.java:194)
at com.telerik.widget.chart.engine.elementTree.ChartNode.arrange(ChartNode.java:189)
at com.telerik.widget.chart.engine.elementTree.ChartNode.arrange(ChartNode.java:170)
at com.telerik.widget.chart.visualization.common.RadChartBase.updateChartArea(RadChartBase.java:933)
at com.telerik.widget.chart.visualization.common.RadChartBase.callUpdateUI(RadChartBase.java:322)
at com.telerik.widget.chart.visualization.common.RadChartBase.onInvalidated(RadChartBase.java:317)
at com.telerik.widget.chart.visualization.common.RadChartBase.invalidateArrange(RadChartBase.java:551)
at com.telerik.widget.chart.visualization.common.PresenterBase.refreshNodeCore(PresenterBase.java:289)
at com.telerik.widget.chart.visualization.common.PresenterBase.refreshNode(PresenterBase.java:115)
at com.telerik.widget.chart.engine.chartAreas.ChartAreaModel.invalidateNode(ChartAreaModel.java:166)
at com.telerik.widget.chart.engine.elementTree.ChartNode.invalidate(ChartNode.java:221)
at com.telerik.widget.chart.engine.chartAreas.ChartAreaModel.processPanOffsetChanged(ChartAreaModel.java:251)
at com.telerik.widget.chart.engine.chartAreas.ChartAreaModelWithAxes.processPanOffsetChanged(ChartAreaModelWithAxes.java:249)
at com.telerik.widget.chart.engine.chartAreas.ChartAreaModel.onPanOffsetChanged(ChartAreaModel.java:109)
at com.telerik.widget.chart.visualization.common.RadChartBase.onPanOffsetChanged(RadChartBase.java:1020)
at com.telerik.widget.chart.visualization.common.RadChartBase.setPanOffset(RadChartBase.java:997)
at com.telerik.widget.chart.visualization.behaviors.ChartPanAndZoomBehavior.onDrag(ChartPanAndZoomBehavior.java:160)
at com.telerik.widget.chart.visualization.behaviors.ChartPanAndZoomBehavior.onGesture(ChartPanAndZoomBehavior.java:108)
at com.telerik.widget.chart.visualization.common.RadChartBase$1.apply(RadChartBase.java:422)
at com.telerik.widget.chart.visualization.common.RadChartBase$1.apply(RadChartBase.java:417)
at com.telerik.common.gesture.GestureBehavior.handleGesture(GestureBehavior.java:323)
at com.telerik.common.gesture.GestureBehavior.handleManipulationDelta(GestureBehavior.java:297)
at com.telerik.common.gesture.GestureBehavior.onManipulationDelta(GestureBehavior.java:221)
at com.telerik.common.gesture.GestureBehavior.access$800(GestureBehavior.java:16)
at com.telerik.common.gesture.GestureBehavior$MyGestureDetector.onScroll(GestureBehavior.java:402)
at android.view.GestureDetector.onTouchEvent(GestureDetector.java:1397)
at com.telerik.common.gesture.GestureBehavior$1.onTouch(GestureBehavior.java:150)
at android.view.View.dispatchTouchEvent(View.java:7492)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2285)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2013)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2291)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2028)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2291)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2028)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2291)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2028)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2291)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2028)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2291)


Could you please take a look at it?

Thanks,
Kiril

5 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 25 Jun 2014, 07:08 AM
Hello Kiril,

We'll have a look at it. Thanks for the feedback.

Regards,
Victor
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Mike
Top achievements
Rank 1
answered on 13 Jul 2014, 05:15 AM
I'm seeing the same crash from from my app.  I can't repro myself (the crash was from my users).

Error Messagejunit.framework.AssertionFailedError: Entering endless loop
WhereAssert.java:50
Short Stacktrace0junit.framework.AssertionFailedError: Entering endless loop1at junit.framework.Assert.fail(Assert.java:50)2at com.telerik.widget.chart.a.b.a.b_(CartesianChartAreaModel.java:115)3at com.telerik.widget.chart.a.b.d.b(ChartAreaModelWithAxes.java:193)4at com.telerik.widget.chart.a.f.d.a(ChartNode.java:188)5at com.telerik.widget.chart.a.f.d.a(ChartNode.java:169)

Thanks,
Mike


0
Victor
Telerik team
answered on 14 Jul 2014, 01:54 PM
Hi Mike,

We have never been able to reproduce this scenario. Theoretically it should be impossible and we have never experienced it even in the many test case that we have for the chart. If we manage to reproduce it somehow we will surely think of a way to fix/work around it.

If you have any more info about this we'd be grateful.

Regards,
Victor
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Mike
Top achievements
Rank 1
answered on 16 Jul 2014, 06:48 AM
I wonder if this is caused by setData being called while something else is going on, like pinch-zoom/panning?  In my app I allow the user to filter on different ranges on the chart and it is also pinch-zoom/trackball enabled.  I am not able to repro myself, but seeing more reports of this in production.

Here's more info on where I'm seeing the crashes:

Device:
GT-N7100 - 2
SM-N900V - 2

OS:
4.3 - 2
4.4.2 - 2

Country:
GR - 2
US - 2
0
Victor
Telerik team
answered on 21 Jul 2014, 07:35 AM
Hi Mike,

We will try to figure out how to avoid this, however if we can't find a reproducible case it would be difficult.

Regards,
Victor
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussion
Asked by
Kiril.Stanoev
Top achievements
Rank 1
Answers by
Victor
Telerik team
Mike
Top achievements
Rank 1
Share this question
or