Page 1 of 2

(Android) historyPos out of range

Posted: Wed Nov 13, 2013 8:48 am
by 16967658
I am having the same problem as the owner of the topic below.
www.teechart.net/support/viewtopic.php?f=10&t=13275
As answer on the last question in the topic.
It seem to happen when i touch 2 different places in the chart very fast after each other.
I was able to reproduce the problem on your example app.
I am getting this problem on the Motorola Xoom and the Motorola Xoom 2.
android version : 4.0.4

Re: (Android) historyPos out of range

Posted: Wed Nov 13, 2013 9:01 am
by narcis
Hello,

Thanks for the info. I have tried to reproduce this unsuccessfully here with a Nexus 4 and a Nexus 7 (2012). What I do is opening one of the examples in the demo and start touching the chart very quickly with one finger and also tried with multi-touch. Is this what I am supposed to do? Could you provide more detailed instructions on how to reproduce it? Should I touch on a series or anywhere on the chart? Any specific series?

Thanks in advance.

Re: (Android) historyPos out of range

Posted: Wed Nov 13, 2013 9:08 am
by 16967658
Update :
I am able to reproduce the problem everytime by touching and not releasing the chart with my index finger (with your whole finger not with the top of your finger).
I tested it on the Line and Bar chart.

Re: (Android) historyPos out of range

Posted: Wed Nov 13, 2013 9:46 am
by narcis
Hello,

Thanks for the update. Both Nexus devices tested use Android 4.3. I also tried with a Motorola Defy (Android 2.1) and Samsung Galaxy Ace (Android 2.3.6) but worked fine there as well. Will keep investigating.

Re: (Android) historyPos out of range

Posted: Wed Nov 13, 2013 10:42 am
by 16967658
I have been searching for some answers .

there is a chance that you are calling the following code in your onTouch;

Code: Select all

event.getX()
which is probably causing errors
.
I can't see any Source Code so i wouldn't know.

Thanks for your help.

Re: (Android) historyPos out of range

Posted: Thu Nov 14, 2013 2:06 pm
by narcis
Hello,

Thanks for your feedback. We haven't been able to reproduce the issue here yet. However, we are investigating it and we will try to modify the code to catch the error. Would you mind adding this issue to bugzilla? Doing so you'll be identified as the creator of the issue and therefore notified about its evolution.

Thanks in advance.

Re: (Android) historyPos out of range

Posted: Fri Nov 15, 2013 8:02 am
by 16967658
I am not able to make a Bugzilla account everytime i try to register the email never arrives.

Re: (Android) historyPos out of range

Posted: Fri Nov 15, 2013 9:26 am
by narcis
Hello,

Have you checked your spam folder for bugzilla emails being filtered there?

Anyway, I have submitted the issue (ID103) myself. If you sign up to our bugzilla platform please let us know, we will be glad to add you to the CC List so that you can be notified about updates on the issue.

Re: (Android) historyPos out of range

Posted: Fri Nov 15, 2013 11:26 am
by 16967658
Hello,

I have checked the spam folder but it is not in there.

Also is there a way to disable the OnTouch event of the chart.
So that i can temporary disable the cursor tool untill the problem is fixed.
Because if i disable the cursor tool the ontouch still remains.

If you want to reproduce the problem you should really get a Motorola Xoom tablet.
I think that the problem is only for some of the tablets.
So that you need to change something only for those tablets.

Re: (Android) historyPos out of range

Posted: Tue Dec 10, 2013 2:52 am
by 17066957
After our apps released to Google Market, we also found this issue through customer feedback.
Even I haven't get a chance to reproduce, the crash log message is almost the same as posted here.

Re: (Android) historyPos out of range

Posted: Tue Dec 10, 2013 4:03 pm
by yeray
Hello eoinoc,

Do you know in what devices it was reproduced, and in what devices not?

Re: (Android) historyPos out of range

Posted: Mon Dec 16, 2013 2:26 am
by 17066957
No I don't.
But I don't think it's a device-specific problem.

Re: (Android) historyPos out of range

Posted: Mon Dec 16, 2013 10:37 am
by yeray
Hello,
eoinoc wrote:No I don't.
But I don't think it's a device-specific problem.
This wouldn't explain why we can't reproduce the problem here following the same steps some customers indicated us, in the same demo application. The only difference we found was on the devices. Do you have any other clue?

I understand you haven't been able to reproduce the problem, but if you are aware of any step-by-step instructions we can follow to reproduce the problem in any device, please, don't hesitate to tell us.

Re: (Android) historyPos out of range

Posted: Fri Dec 20, 2013 11:18 am
by 16967658
Hello
I have reproduced the problem and i used a tool to see what kind of motion was made before it crashed.
Reproduced on : Motorola Xoom 2

Re: (Android) historyPos out of range

Posted: Fri Dec 20, 2013 11:20 am
by 16967658
Here is the fourth picture.