StackOverflowError at Android View.setTranslationX - android

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.

Related

koush/ion Crash in Android gradle 4.1.1

I upgraded the build Gradle to 4.1.1 and the app is crashed. Please check the following log. Is there any solution for it? I opened an issue in Github.
Fatal Exception: java.lang.AssertionError
at com.koushikdutta.async.AsyncSSLSocketWrapper.write(AsyncSSLSocketWrapper.java:492)
at com.koushikdutta.async.AsyncSSLSocketWrapper.handleHandshakeStatus(AsyncSSLSocketWrapper.java:378)
at com.koushikdutta.async.AsyncSSLSocketWrapper.handshake(AsyncSSLSocketWrapper.java:182)
at com.koushikdutta.async.http.AsyncSSLSocketMiddleware.tryHandshake(AsyncSSLSocketMiddleware.java:89)
at com.koushikdutta.async.http.AsyncSSLSocketMiddleware$2.onConnectCompleted(AsyncSSLSocketMiddleware.java:106)
at com.koushikdutta.async.http.AsyncSocketMiddleware.lambda$getSocket$3$AsyncSocketMiddleware(AsyncSocketMiddleware.java:217)
at com.koushikdutta.async.http.-$$Lambda$AsyncSocketMiddleware$glazjOxu-iNIRY4N890Wl1ngyGo.onCompleted(:12)
at com.koushikdutta.async.future.SimpleFuture.lambda$setCallback$0(SimpleFuture.java:212)
at com.koushikdutta.async.future.-$$Lambda$SimpleFuture$h_gK5Y1XHZI1H8JTE2xOg4dXbp8.onCompleted(:2)
at com.koushikdutta.async.future.SimpleFuture$FutureCallsite.loop(SimpleFuture.java:130)
at com.koushikdutta.async.future.SimpleFuture.handleCallbackUnlocked(SimpleFuture.java:153)
at com.koushikdutta.async.future.SimpleFuture.setComplete(SimpleFuture.java:191)
at com.koushikdutta.async.future.SimpleFuture.setComplete(SimpleFuture.java:174)
at com.koushikdutta.async.future.-$$Lambda$VNAuWcttAhMr3VsWCERbmWE6yR0.success(:2)
at com.koushikdutta.async.future.SimpleFuture.lambda$success$4(SimpleFuture.java:279)
at com.koushikdutta.async.future.-$$Lambda$SimpleFuture$DxIsaj7NQi76eWgOKS4iviWPLV0.onCompleted(:4)
at com.koushikdutta.async.future.SimpleFuture$FutureCallsite.loop(SimpleFuture.java:130)
at com.koushikdutta.async.future.SimpleFuture.handleCallbackUnlocked(SimpleFuture.java:153)
at com.koushikdutta.async.future.SimpleFuture.setComplete(SimpleFuture.java:191)
at com.koushikdutta.async.future.SimpleFuture.setComplete(SimpleFuture.java:178)
at com.koushikdutta.async.http.-$$Lambda$cBC5du-82c5EcL72rP5wNK7Y2Y4.onConnectCompleted(:2)
at com.koushikdutta.async.AsyncServer.runLoop(AsyncServer.java:896)
at com.koushikdutta.async.AsyncServer.run(AsyncServer.java:717)
at com.koushikdutta.async.AsyncServer.access$800(AsyncServer.java:46)
at com.koushikdutta.async.AsyncServer$11.run(AsyncServer.java:671)

How to solve this issue "java.lang.IllegalStateException: 2 built-in Robo scripts are applicable."

Recently i got this crash in pre-launch report from google. I have searched but found nothing about this. i'm adding below details which i got from googleplay console.
Issue: java.lang.IllegalStateException: 2 built-in Robo scripts are applicable.
FATAL EXCEPTION: Thread-1077
Process: androidx.test.tools.crawler:robov2crawldriver, PID: 21158
at androidx.test.tools.crawler.obfuscated.z.q.b(PatternCompiler.java:43)
at androidx.test.tools.crawler.controller.intelligence.BuiltInRoboScriptsActionController.getBuiltinRoboscriptFromCandidates(BuiltInRoboScriptsActionController.java:92)
at androidx.test.tools.crawler.controller.intelligence.BuiltInRoboScriptsActionController.getNextAction(BuiltInRoboScriptsActionController.java:33)
at androidx.test.tools.crawler.controller.intelligence.DelegatingActionController.getNextAction(DelegatingActionController.java:5)
at androidx.test.tools.crawler.controller.CoreController.performActions(CoreController.java:129)
at androidx.test.tools.crawler.controller.CoreController.crawl(CoreController.java:105)
at androidx.test.tools.crawler.controller.CoreController.run(CoreController.java:34)

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?

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