gpt4 book ai didi

android - okio.Base64.encode ArrayIndexOutOfBoundsException 为什么会发生这种情况?

转载 作者:太空宇宙 更新时间:2023-11-03 13:10:04 26 4
gpt4 key购买 nike

我注意到 fabric 中有这样的异常,这种异常很少发生,但每次构建时,每周 2-3 个用户(约 500 DAU)会发生 3-5 次崩溃我没有找到有关此类崩溃的任何信息,有人知道是什么原因造成的吗?

我只发现了一个关于此类问题的问题,但它被删除为“重复”https://stackoverflow.com/questions/45868217/arrayindexoutofboundsexception-trying-to-cache-certificate-list-in-okhttp3

Fatal Exception: java.lang.ArrayIndexOutOfBoundsException
length=1305; index=1953974520

okio.Base64.encode (Base64.java:137)
okio.Base64.encode (Base64.java:125)
okio.ByteString.base64 (ByteString.java:105)
okhttp3.Cache$Entry.writeCertList (Cache.java:686)
okhttp3.Cache$Entry.writeTo (Cache.java:645)
okhttp3.Cache.put (Cache.java:249)
okhttp3.Cache.access$000 (Cache.java:136)
okhttp3.Cache$1.put (Cache.java:148)
okhttp3.internal.cache.CacheInterceptor.maybeCache (CacheInterceptor.java:173)
okhttp3.internal.cache.CacheInterceptor.intercept (CacheInterceptor.java:143)
okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:92)
okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:67)
okhttp3.internal.http.BridgeInterceptor.intercept (BridgeInterceptor.java:93)
okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:92)
okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept (RetryAndFollowUpInterceptor.java:124)
okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:92)
okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:67)

更新:

https://github.com/square/okio/issues/325本期Okio票 https://issuetracker.google.com/issues/69364976这个问题的谷歌票

更新 2:已在 Android Studio 3.1 Canary 6 Build 中修复

最佳答案

这可能是从 11 月 8 日开始仅在 Android 5.1 上的特定设备的 VM 中的错误。

我们查明问题是使用dex编译器D8引起的。解决方案是通过以下行在 gradle.properties 中禁用它:android.enableD8=false

工单已在此处创建

Okio issue tracker

它正在影响除三星设备之外的几乎所有低成本手机

关于android - okio.Base64.encode ArrayIndexOutOfBoundsException 为什么会发生这种情况?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47280751/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com