Skip to content

NetworkKMM 中网络异常无法捕获引起崩溃 #43

Description

@LiPengfei0106

IVBTransportService 发起请求使用的协程Scope为CoroutineScope(Dispatchers.IO),网络异常发生在 Dispatchers.IO 的协程任务中,且没有被正确处理,最终被 CoroutineScheduler 抛出,导致了应用的 Uncaught Exception ,从而引起崩溃。
是否考虑使用 CoroutineExceptionHandler来处理异常 或者 使用suspend方法替代callback,由调用者来提供scope

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions