Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS app doesn't crash when throw exception in CoroutineScope with Dispatchers.Default #2723

Closed
belousovgm opened this issue May 21, 2021 · 3 comments

Comments

@belousovgm
Copy link

Hi!
Why code like this:

CoroutineScope(Dispatchers.Default).launch {
throw IllegalStateException()
}

doesn't crash iOS app?

But

CoroutineScope(Dispatcher.Main).launch {
    withContext(Dispatcher.Default) {
        throw IllegalStateException()
    }
}

crashes.

Kotlin: 1.4.31
Coroutines: 1.4.2-native-mt

@Thomas-Vos
Copy link
Contributor

See the following: #2398

@qwwdfsad
Copy link
Member

Fixed in 1.5.1-native-mt. For an additional explanation of the behaviour see #2804 (comment)

@YoussefHachicha
Copy link

if fixed in 1.5.1-native-mt should it not happen in 1.8.0? because the issue is happening to me in 1.8.0 ??

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

No branches or pull requests

4 participants