Tweens stop working on iOS device
« on: October 09, 2015, 12:18:42 PM »
Hello :)

We are using DOTween and it is AWESOME. I love the power that give us. The integration with coroutines is awesome.

We have one issue though that is virtually impossible to debug. Of course we leave tweens to work on dead objects as cleaning up is really hard. We get this weird thing that sometimes (rarely) tweens simply stop working. Not a single tween gets executed until we do not restart the game. We are using Unity 5.1.2.
We have safe mode working with assemblies stripped and "safe and slow".

1. Anyone have any hints what to do and how to debug this?
2. Is there anyway to hook to DOTween to get logs from it? We have log file saver but I do not know how to hook to DOTween logs.

Evgeni

Re: Tweens stop working on iOS device
« Reply #1 on: October 12, 2015, 01:36:50 PM »
As added question:

How to deal with exception like the following?

[Exception] MissingReferenceException: The object of type 'RectTransform' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
0. UnityEngine.Transform.set_localScale()
1. DG.Tweening.ShortcutExtensions+<>c__DisplayClass48_0.<DOScale>b__1() at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/ShortcutExtensions.cs:633
2. DG.Tweening.Plugins.Vector3Plugin.EvaluateAndApply() at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Plugins/Vector3Plugin.cs:121
3. DG.Tweening.Core.TweenerCore`3[UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions].ApplyTween() at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/TweenerCore.cs:181
4. DG.Tweening.Tween.DoGoto() at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Tween.cs:238
5. DG.Tweening.Core.TweenManager.Goto() at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/TweenManager.cs:554
6. DG.Tweening.Sequence.ApplyInternalCycle() at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Sequence.cs:302
7. DG.Tweening.Sequence.DoApplyTween() at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Sequence.cs:213
8. DG.Tweening.Sequence.ApplyTween() at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Sequence.cs:140
9. DG.Tweening.Tween.DoGoto() at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Tween.cs:238
10. DG.Tweening.Core.TweenManager.Update() at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/TweenManager.cs:391
11. DG.Tweening.Core.DOTweenComponent.Update() at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/DOTweenComponent.cs:50

It gives me zero information where the problem is. How do you guys deal with those?

Re: Tweens stop working on iOS device
« Reply #2 on: October 19, 2015, 11:02:07 AM »
Bump?! :/

Re: Tweens stop working on iOS device
« Reply #3 on: November 26, 2015, 06:47:27 PM »
Bump :(

Re: Tweens stop working on iOS device
« Reply #4 on: December 07, 2015, 01:19:09 PM »
Last bump and I give up. I think the issue I have raised should be common for everyone. Don't you have similar issues?

Re: Tweens stop working on iOS device
« Reply #5 on: December 10, 2015, 06:13:09 PM »
I'd like to know the answer to this as well. Thanks

*

Daniele

  • Dr. Admin, I presume
  • *****
  • 378
    • View Profile
    • Demigiant
Re: Tweens stop working on iOS device
« Reply #6 on: January 09, 2016, 02:15:41 AM »
Hi,

I am so sorry for answering so incredibly late. I just discovered that some (actually a lot) forum notifications never reached me, while others did, argh :(

About the first issue, I believe it might be caused by an error which was happening in older versions, for which I implemented a fix some weeks ago. Can you try the latest version?

About the MissingReferenceException instead, there is no way to give more details about it, but it's caused by a RectTransform being the target of a running tween, and being destroyed while the tween is still running. That should be caught by the safe mode though, so I assume you disabled it (or changed the iOS build settings so it doesn't work anymore?).

Cheers and sorry again,
Daniele