ArrayIndexOutOfBoundsException inside Android SharedPreference - android

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)

Related

Errors occur in some specific mobiles on crashlytics

There are some errors which only occur in some specific mobiles and that are shown in crashlytics. In my mobile device app working fine but there are some mobiles where the screen is crashing. I am unable to identify how to resolve that issue without knowing the cause of error. For now it is showing me this error which I have pasted below.
This is the title on Crashlytics .
ConsumerSingleObserver.java line 49
and this exception is showing
Fatal Exception: io.reactivex.rxjava3.exceptions.CompositeException: 2 exceptions occurred.
at io.reactivex.rxjava3.internal.observers.ConsumerSingleObserver.onError(ConsumerSingleObserver.java:49)
at io.reactivex.rxjava3.internal.operators.single.SingleObserveOn$ObserveOnSingleObserver.run(SingleObserveOn.java:79)
at io.reactivex.rxjava3.android.schedulers.HandlerScheduler$ScheduledRunnable.run(HandlerScheduler.java:123)
at android.os.Handler.handleCallback(Handler.java:914)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:225)
at android.app.ActivityThread.main(ActivityThread.java:7563)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:994)
Caused by io.reactivex.rxjava3.exceptions.CompositeException$a: Multiple exceptions (2)
|-- androidx.room.rxjava3.EmptyResultSetException: Query returned empty result set: select * from FamilyDetails where serverId=?
at b.g.i.a.f.i$g.call(FamilyDetailsDao_Impl.java:90)
|-- java.lang.NullPointerException: null
at b.g.n.d.q.i.k(ConsentStepViewModel.kt:2)
CompositeException is usually thrown when your error handler itself throws an exception when it's handling an error thrown in the stream.
Make sure your error handling code is not throwing any exceptions.
Usually the stack trace will have the root cause below the CompositeException, prefixed with Caused by.

Crash received with :com.google.android.gms.dynamite_measurementdynamite#222413097#22.24.13 (190400-0) line 11

I have used gms.ads dependency 20.6.0
I am receiving the below crash in the app. Any solution for this?
:com.google.android.gms.dynamite_measurementdynamite#222413097#22.24.13 (190400-0) line 11

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.

AccessibilityNodeInfo ArrayIndexOutOfBoundsException

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?

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.

Categories

Resources