闪退

glide加载图片坑问题,最好加个try catch,直接判生命周期不一定有用
java.lang.IllegalArgumentException: You cannot start a load for a destroyed activity
at com.bumptech.glide.manager.RequestManagerRetriever.assertNotDestroyed(Unknown Source:11)
at com.bumptech.glide.manager.RequestManagerRetriever.get(SourceFile:13)
at com.bumptech.glide.manager.RequestManagerRetriever.get(SourceFile:3)
at com.bumptech.glide.Glide.with(SourceFile:1)
at com.arcblock.sphere.view.CoreWebView$refreshLoginStatus$2$1.invokeSuspend(Unknown Source:18)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:11)
at kotlinx.coroutines.internal.DispatchedContinuationKt.resumeCancellableWith(Unknown Source:130)
at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(SourceFile:3)
at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable$default(Unknown Source:5)
at kotlinx.coroutines.CoroutineStart.invoke(SourceFile:10)
at kotlinx.coroutines.AbstractCoroutine.start(Unknown Source:0)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Unknown Source:22)
at kotlinx.coroutines.BuildersKt.launch(Unknown Source:0)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default(Unknown Source:12)
at kotlinx.coroutines.BuildersKt.launch$default(Unknown Source:0)
at com.arcblock.sphere.view.CoreWebView.refreshLoginStatus(Unknown Source:50)
at com.arcblock.sphere.mvp.ui.fragment.ScaleWebFragment$showToUser$2.invokeSuspend(Unknown Source:38)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:11)
at kotlinx.coroutines.DispatchedTask.run(Unknown Source:128)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:222)
at android.os.Looper.loop(Looper.java:314)
at android.app.ActivityThread.main(ActivityThread.java:8857)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:565)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@c5a7e22, Dispatchers.Main.immediate]
3 replies
什么时候出新版?一天闪几次啦
本周应该会有一个新版本。 你这个有什么明确的路径吗?虽然我们修复了这个问题,我们都不能复现这个问题
基本都是在后台的时候,重新点开app 导致的