New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non-fatal Exception: NullReferenceException on firebase crashlytics #603
Comments
Ahoy! That indeed means that a tween's target was NULL when trying to set its position. Safe mode will capture that and prevent the error, but on iOS safe mode works only if stripping level is set to Strip Assemblies or Script Call Optimization is set to Slow and Safe (because otherwise try-catch calls are disabled). |
Thanks, @Demigiant for your response! |
UPDATE: I found that the bug still happens on Android. The safe mode still enable on iOS (I tried to add a bug something like the object target was destroyed while tween playing. I made an iOS build with this bug but no error happen) |
stack trace error I found on Android crashlystic: |
I'm very puzzled. I just checked the code and that part is indeed inside a safe mode try-catch (if enabled), so it should be captured no matter what happens. The only possibility is that for some reason safe mode is indeed not enabled, but on iOS your settings look good. P.S. I'm not familiar with Crashlytics, but is it possible that it reports exceptions even if they're try-caught? |
Thanks, @Demigiant we decided to use SetLink() API to put on some suspect points and keep modifying the metrics |
I got this issue from firebase crashlytics and not sure where this log came from:
Non-fatal Exception: NullReferenceException
0 ??? 0x0 set_localPosition (UnityEngine.Transform)
1 ??? 0x0 Invoke (DG.Tweening.Core.DOSetter
1[T])3[T1,T2,TPlugOptions])
3 ??? 0x0 DoGoto (DG.Tweening.Tween)
4 ??? 0x0 Update (DG.Tweening.Core.TweenManager)
5 ??? 0x0 Update (DG.Tweening.Core.TweenManager)
6 ??? 0x0 Update (DG.Tweening.Core.DOTweenComponent)
I can not reproduce this bug. The game object seemed destroyed when a tween was in sequence. I enabled safe mode.
I used Unity 2019.4.38f1 and DOTWeen version v1.2.632
Any suggestions for me? Thanks!
The text was updated successfully, but these errors were encountered: