aurelienRibonBackup / java-universal-tween-engine

Automatically exported from code.google.com/p/java-universal-tween-engine
0 stars 0 forks source link

TweenManager.getTimelinesCount getting exception #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create Several Object to be tweened
2. call TweenManager.getRunningTimelinesCount() before every tween creating( 
this must happen even during animations)
3. Keep doing animation until the exception happens

What is the expected output? What do you see instead?

We receive a array out of bounds exception during 
tweenManager.getRunningTimelinesCount().

What version of the product are you using? On what operating system?
6.3.3 on Android

Please provide any additional information below.

The method have this line of code:
"for (int i=0, n=objs.size(); i<n; i++)"
But during the for loop, it seems that an Tween has ended and are removed from 
the "objs" array, causing the array out of bounds.

Original issue reported on code.google.com by paulovic...@gmail.com on 31 Aug 2012 at 12:56

GoogleCodeExporter commented 9 years ago

Original comment by aurelien.ribon on 31 Aug 2012 at 1:01

GoogleCodeExporter commented 9 years ago
No. you're right, that is the problem. We are creating the Tween in the main 
thread and updating in a rendering thread. Sorry for the duplicated issue.

Original comment by paulovic...@gmail.com on 31 Aug 2012 at 1:12