AccessibilityNodeInfo ArrayIndexOutOfBoundsException - android

Using the Android Accessibility Service.
On Android 8.0 (only) I have a lot of crash with:
Fatal Exception: java.lang.ArrayIndexOutOfBoundsException: src.length=5 srcPos=0 dst.length=5 dstPos=3 length=5
at java.lang.System.arraycopy(System.java)
at java.util.ArrayList.addAll(ArrayList.java:591)
at android.view.accessibility.AccessibilityNodeInfo.init(AccessibilityNodeInfo.java:3212)
at android.view.accessibility.AccessibilityNodeInfo.refresh(AccessibilityNodeInfo.java:867)
at android.view.accessibility.AccessibilityCache$AccessibilityNodeRefresher.refreshNode(AccessibilityCache.java:564)
at android.view.accessibility.AccessibilityCache.refreshCachedNodeLocked(AccessibilityCache.java:206)
at android.view.accessibility.AccessibilityCache.onAccessibilityEvent(AccessibilityCache.java:170)
at android.view.accessibility.AccessibilityInteractionClient.onAccessibilityEvent(AccessibilityInteractionClient.java:541)
at android.accessibilityservice.AccessibilityService$IAccessibilityServiceClientWrapper.executeMessage(AccessibilityService.java:1709)
This Stacktrace doesn't contain any line from my own code.
I cannot reproduce it on my side and I have no idea on how to fix it. Do you?

Related

Getting error while using LookAtMe feature in Android-

I am trying to use the LookAtMe feature, when running from MainActivity, it runs absolutely fime but while trying to run on a button click from a different activity , I getting below error. tried all possible options but not able to resolve it, any help is highly appreciated-
I am getting this error on line : lookAtMe.init(com.example.videoexample.VVedio.this);
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.videoexample, PID: 12517
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/zzbgl;
at com.pd.lookatme.LookAtMe.createCameraSource(LookAtMe.java:222)
at com.pd.lookatme.LookAtMe.init(LookAtMe.java:35)
at com.example.videoexample.VVedio$1.onClick(VVedio.java:40)
at android.view.View.performClick(View.java:6642)
at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:1119)
at android.view.View.performClickInternal(View.java:6619)
at android.view.View.access$3100(View.java:790)
at android.view.View$PerformClick.run(View.java:26189)

Error in Huawei phone. Fatal Exception: java.lang.NullPointerException at com.google.android.gms.ads.internal.video.exoplayer3.a.b

I only get errors on the huawei phone
Fatal Exception: java.lang.NullPointerException at com.google.android.gms.ads.internal.video.exoplayer3.a.b.
I'm not an intern. So I know what is the usual NullPointerException error. In my question, the error only occurs on 1 single device and can not find details in the crashlytics report. So if you can not provide a help answer, please do not flag or report duplicates when you do not know what it is.

java.lang.noclassdeffounderror with libgdx and Android studio on the androidLauncher

I imported a package of my own called server (the logic of my program) and was going to use libgdx for the graphics/cross platform. The desktop launcher works fine but when I run the android launcher I get this nasty error referring to my own library.
E/AndroidRuntime: FATAL EXCEPTION: GLThread 187
Process: com.mygdx.game, PID: 8093
java.lang.NoClassDefFoundError: server.Point
at server.Shape.<init>(Shape.java:9)
at server.T.<init>(T.java:7)
at server.Stack.<init>(Stack.java:28)
at server.Logic.<init>(Logic.java:14)
at com.mygdx.game.GameLoop.create(GameLoop.java:43)
at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:275)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1511)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1239)
any help would be great
I solved it!
It was because I was using java.awt.point in the android build. So I basically wrote a new point class, replace it, and then cleaned my project. Everything works now

StackOverflowError at Android View.setTranslationX

Our app crashed with the following stack trace:
Fatal Exception: java.lang.StackOverflowError
at android.view.View.setTranslationX(View.java:10287)
at android.view.View.setX(View.java:10237)
at <project-package>.ui.misc.FractionalFrameLayout.setXFraction(FractionalFrameLayout.java:44)
at android.animation.PropertyValuesHolder.nCallFloatMethod(PropertyValuesHolder.java)
at android.animation.PropertyValuesHolder.access$400(PropertyValuesHolder.java:35)
at android.animation.PropertyValuesHolder$FloatPropertyValuesHolder.setAnimatedValue(PropertyValuesHolder.java:962)
at android.animation.ObjectAnimator.animateValue(ObjectAnimator.java:571)
at android.animation.ValueAnimator.end(ValueAnimator.java:984)
at android.animation.AnimatorSet.end(AnimatorSet.java:357)
We weren't able to reproduce the crash but there's one logged in crashlytics and it occurred in a Quanta device android version 4.4.2. Has anyone encountered such crash? Any help is appreciated.
EDIT
I checked the source code for android.view.View.java from GrepCode but the line on 10287 is only an initialization of the class TransformationInfo.

ArrayIndexOutOfBoundsException inside Android SharedPreference

I am using newrelic for crash reports. In newrelic crash list I can see a exception inside Android SharedPreferenceImpl. Can someone help me debug the crash cause ?
crash:
EXCEPTION java.lang.ArrayIndexOutOfBoundsException
LOCATION FastXmlSerializer.java line 70 in FastXmlSerializer.append()
TIME Today, xx:yy
MESSAGE length=0; index=699
Huawei Device (HUAWEI Y320-U30) Android 4.2.2 (C307B600)
Below is complete stack trace provided by newrelic
java.lang.ArrayIndexOutOfBoundsException: length=0; index=699
at com.android.internal.util.FastXmlSerializer.append()(FastXmlSerializer.java:70)
at com.android.internal.util.FastXmlSerializer.startTag()(FastXmlSerializer.java:335)
at com.android.internal.util.XmlUtils.writeValueXml()(XmlUtils.java:468)
at com.android.internal.util.XmlUtils.writeMapXml()(XmlUtils.java:245)
at com.android.internal.util.XmlUtils.writeMapXml()(XmlUtils.java:185)
at android.app.SharedPreferencesImpl.writeToFile()(SharedPreferencesImpl.java:598)
at android.app.SharedPreferencesImpl.access$800()(SharedPreferencesImpl.java:52)
at android.app.SharedPreferencesImpl$2.run()(SharedPreferencesImpl.java:513)
at java.util.concurrent.ThreadPoolExecutor.runWorker()(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run()(ThreadPoolExecutor.java:573)
at java.lang.Thread.run()(Thread.java:838)

Categories

Resources