onier / java-universal-tween-engine

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

Crash on Pool.get() #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
There are no way to reproduce the problem - it happens extremely rare and in 
different places.

What is the expected output? What do you see instead?
IndexOutOfBoundsException when pushing to Timeline Tween.set() action

What version of the product are you using? On what operating system?
Android, different versions.

Please provide any additional information below.

I'm using TweenEngine in combination with libGDX. There are many animations in 
our game - and this bug appears in different places.

Stack trace
java.lang.IndexOutOfBoundsException: Invalid index 161, size is 161
11-14 14:36:41.124: E/AndroidRuntime(7876):     at 
java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:251)
11-14 14:36:41.124: E/AndroidRuntime(7876):     at 
java.util.ArrayList.remove(ArrayList.java:399)
11-14 14:36:41.124: E/AndroidRuntime(7876):     at 
aurelienribon.tweenengine.Pool.get(Pool.java:21)
11-14 14:36:41.124: E/AndroidRuntime(7876):     at 
aurelienribon.tweenengine.Tween.set(Tween.java:284)
11-14 14:36:41.124: E/AndroidRuntime(7876):     at 
com.steelkiwi.bubblepiratequest.game.graphics.ScreenEffectsDrawer$BarrelPointsAn
imation.<init>(ScreenEffectsDrawer.java:327)

Original issue reported on code.google.com by synda...@gmail.com on 20 Nov 2012 at 10:25

GoogleCodeExporter commented 9 years ago
Hello! I have some news about this bug. 
Sometimes i've been got NullPointerException at Tween.java line 22: 

@Override public void onUnPool(Tween obj) {obj.reset();}

As I understand onUnPool() was called from Pool.java (line 22)

if (callback != null) callback.onUnPool(obj);

which is similar to issue that I've been described early. Hope it will help to 
solve this problem.

Full trace 

java.lang.NullPointerException
at aurelienribon.tweenengine.Tween$1.onUnPool(Tween.java:122)
at aurelienribon.tweenengine.Tween$1.onUnPool(Tween.java:120)
at aurelienribon.tweenengine.Pool.get(Pool.java:22)
at aurelienribon.tweenengine.Tween.to(Tween.java:208)
at CALL TWEEN CREATE FROM MY CODE

Original comment by ltd.mur...@gmail.com on 7 Dec 2012 at 8:43

GoogleCodeExporter commented 9 years ago
+1 for this. I am getting the same two exceptions repeatedly in my latest app 
on Google Play, and would like to know if anyone is working on it.
Thank you!

Original comment by daniele....@gmail.com on 3 Jun 2013 at 4:39

GoogleCodeExporter commented 9 years ago
I've got at aurelienribon.tweenengine.Tween.to(Tween.java:208) too. It happens 
very often. Please fix it.

Original comment by tian...@gmail.com on 18 Jun 2013 at 6:04

GoogleCodeExporter commented 9 years ago
I posted a fix for this issue at the github repository. You can have a look at 
it here: https://github.com/marzapower/universal-tween-engine

Please, try it and let me know if this works.
Thank you!

Original comment by daniele....@gmail.com on 7 Jul 2013 at 10:03