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

Easy Crash to cause using scrollToIndex

3 Answers 91 Views
ListView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
NathanaelA
Top achievements
Rank 1
NathanaelA asked on 09 Nov 2016, 11:09 PM

I see this crash frequently (started wrapping it in a try/catch); but if you do RLV.scrollToIndex(x) it can frequently crash when the component is still being internally setup.  (From my point of view and NS's point of view the ._android exists; but apparently internally you aren't fully configured and this should get fixed so that it doesn't crash...

 

W/System.err( 7454): Error: java.lang.Exception: Failed resolving method scrollToPosition on class com.telerik.widget.list.RadListView
W/System.err( 7454):     com.tns.Runtime.resolveMethodOverload(Runtime.java:983)
W/System.err( 7454):     com.tns.Runtime.callJSMethodNative(Native Method)
W/System.err( 7454):     com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1022)
W/System.err( 7454):     com.tns.Runtime.callJSMethodImpl(Runtime.java:907)
W/System.err( 7454):     com.tns.Runtime.callJSMethod(Runtime.java:895)
W/System.err( 7454):     com.tns.Runtime.callJSMethod(Runtime.java:879)
W/System.err( 7454):     com.tns.Runtime.callJSMethod(Runtime.java:871)

 

3 Answers, 1 is accepted

Sort by
0
Nick Iliev
Telerik team
answered on 10 Nov 2016, 04:09 PM
Hi Nathanael,

Thank you for your reports regarding RadListView - we will investigate the described behavior.
Meanwhile, can you provide us with a real life example which can reproduce this case?

Regards,
Nikolay Iliev
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
NathanaelA
Top achievements
Rank 1
answered on 10 Nov 2016, 06:04 PM

I have two places that I can normally see it; it seems to be _timing_ related.   Because it doesn't always crash.

1. On orientation change, was the report from yesterday -- I used my last saved location and attempted to reset it back.

2. On NavigatedTo event, shortly after doing a listview.refresh (I believe the refresh is the cause).    

0
Nick Iliev
Telerik team
answered on 11 Nov 2016, 07:54 AM
Hi Nathanael,

Once again thank you for your report and information - I have logged this issue here where you can track it and discuss it with the developer team. Meanwhile, I will update you on any new information regarding this behavior.

Regards,
Nikolay Iliev
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ListView
Asked by
NathanaelA
Top achievements
Rank 1
Answers by
Nick Iliev
Telerik team
NathanaelA
Top achievements
Rank 1
Share this question
or