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

EventLoopBase.schedule StackOverflowError #692

Closed
qwwdfsad opened this issue Oct 9, 2018 · 0 comments
Closed

EventLoopBase.schedule StackOverflowError #692

qwwdfsad opened this issue Oct 9, 2018 · 0 comments
Labels

Comments

@qwwdfsad
Copy link
Collaborator

qwwdfsad commented Oct 9, 2018

fun main(args: Array<String>) = runBlocking<Unit> {
    val machineJob = Job()

    coroutineScope {
        launch {
            while (true) {
                launch(machineJob) {
                    while (true) {
                        delay(1000)
                    }
                }
                delay(800)
            }
        }

        launch {
            throw EndWorkError()
        }
    }
    machineJob.cancel()
}

class EndWorkError() : Throwable()

Reported as https://youtrack.jetbrains.net/issue/KT-27474

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

No branches or pull requests

2 participants