macrobin / dotween

Automatically exported from code.google.com/p/dotween
0 stars 0 forks source link

IndexOutOfRangeException: Array index is out of range. #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello! I have this exception 
in 1.0.030 DOTween 
in Unity 5 Version 5.0.0f4 (5b98b70ebeb9)
This happens in my method MyMethod in this order 

MyMethod () // workds
// one gazillion other tweens
// some time
DOTween.Clear(true)
MyMethod () // crashes

IndexOutOfRangeException: Array index is out of range.
(wrapper stelemref) object:stelemref (object,intptr,object)
DG.Tweening.Core.TweenManager.AddActiveTween (DG.Tweening.Tween t) (at 
D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween.Assembly/DOTween/Core/Tween
Manager.cs:661)
DG.Tweening.Core.TweenManager.GetTweener[Single,Single,FloatOptions] () (at 
D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween.Assembly/DOTween/Core/Tween
Manager.cs:95)
DG.Tweening.DOTween.ApplyTo[Single,Single,FloatOptions] 
(DG.Tweening.Core.DOGetter`1 getter, DG.Tweening.Core.DOSetter`1 setter, Single 
endValue, Single duration, DG.Tweening.Plugins.Core.ABSTweenPlugin`3 plugin) 
(at 
D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween.Assembly/DOTween/DOTween.cs
:785)
DG.Tweening.DOTween.To (DG.Tweening.Core.DOGetter`1 getter, 
DG.Tweening.Core.DOSetter`1 setter, Single endValue, Single duration) (at 
D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween.Assembly/DOTween/DOTween.cs
:228)
GameInsight.uGui.PreloaderLogo..ctor (UnityEngine.UI.Image image) (at 
Assets/_Develop/code/GameInsight/uGui/PreloaderLogo.cs:17)

Original issue reported on code.google.com by pavel.ol...@gmail.com on 13 Mar 2015 at 12:43

GoogleCodeExporter commented 9 years ago
Hi Pavel,

this is a very weird issue that was reported a couple times, but then 
disappeared and I was never able to reproduce it. Now that it resurfaced for 
you, I'd like to ask you a couple things because I really want to fix it once 
and for all:

1) Can you change DOTween.Clear(true) to DOTween.Clear(false) and let me know 
if this happens again? If it doesn't, it will help me a lot to pinpoint the 
issue.

2) If it still happens, can you upgrade to the version I've attached here, so 
we have the same lines in case of error logs, and write me again the log result?

Thanks & sorry for this problem.

Original comment by daniele....@gmail.com on 13 Mar 2015 at 6:10

Attachments: