GameAnalytics / GA-SDK-UNITY

The GameAnalytics SDK for tracking events in Unity.
MIT License
120 stars 56 forks source link

Crash related to GameAnalytics #22

Closed juanblasco closed 11 months ago

juanblasco commented 11 months ago

Here's the stack trace, we are getting quite some of these:

`Exception java.lang.Error: FATAL EXCEPTION [UnityMain] Unity version : 2022.3.11f1 Device model : Xiaomi 21081111RG Device fingerprint: Xiaomi/amber_eea/:13/TP1A.220624.014/V14.0.6.0.TKWEUXM:user/release-keys CPU supported ABI : [arm64-v8a, armeabi-v7a, armeabi] Build Type : Release Scripting Backend : IL2CPP Libs loaded from : lib/arm64 Strip Engine Code : true

Caused by: java.lang.ArrayIndexOutOfBoundsException: length=4; index=256 at com.yahoo.sketches.quantiles.ItemsUpdateImpl.zipSize2KBuffer (ItemsUpdateImpl.java:90) at com.yahoo.sketches.quantiles.ItemsUpdateImpl.inPlacePropagateCarry (ItemsUpdateImpl.java:52) at com.yahoo.sketches.quantiles.ItemsUtil.processFullBaseBuffer (ItemsUtil.java:74) at com.yahoo.sketches.quantiles.ItemsSketch.update (ItemsSketch.java:245) at com.gameanalytics.sdk.state.GAState.lambda$logFPS$0$com-gameanalytics-sdk-state-GAState (GAState.java:169) at com.gameanalytics.sdk.state.GAState$$ExternalSyntheticLambda0.onAnimationUpdate at android.animation.ValueAnimator.animateValue (ValueAnimator.java:1653) at android.animation.ValueAnimator.animateBasedOnTime (ValueAnimator.java:1440) at android.animation.ValueAnimator.doAnimationFrame (ValueAnimator.java:1572) at android.animation.AnimationHandler.doAnimationFrame (AnimationHandler.java:307) at android.animation.AnimationHandler.-$$Nest$mdoAnimationFrame at android.animation.AnimationHandler$1.doFrame (AnimationHandler.java:86) at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1384) at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1394) at android.view.Choreographer.doCallbacks (Choreographer.java:1013) at android.view.Choreographer.doFrame (Choreographer.java:904) at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1366) at android.os.Handler.handleCallback (Handler.java:942) at android.os.Handler.dispatchMessage (Handler.java:99) at android.os.Looper.loopOnce (Looper.java:211) at android.os.Looper.loop (Looper.java:300) at com.unity3d.player.UnityPlayer$F.run`

Unity 2022.3.11 GA: v7.4.2.1

dorin-ga commented 11 months ago

Hello, this a known crash in version 7.4.2 related to fps sampling not occurring on the main thread on android. We strongly recommend updating to the latest version.