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 Memory Leak Issue #2869

Closed
1 task done
NilayDagdemir opened this issue Aug 11, 2021 · 3 comments
Closed
1 task done

iOS Memory Leak Issue #2869

NilayDagdemir opened this issue Aug 11, 2021 · 3 comments
Labels

Comments

@NilayDagdemir
Copy link

NilayDagdemir commented Aug 11, 2021

New Issue Checklist

  • I searched for existing GitHub issues

Info

I'm using:

kotlin: 1.5.20
ktor: 1.6.0
kotlinx-coroutines: 1.4.3-native-mt

for a Kotlin Multiplatform project.

Describe the bug

kotlinx-coroutines creates memory leaks in our iOS part of the project. Here are the places of the leaks:

>  kotlinx-coroutines-core/common/src/JobSupport.kt:989 (on attachChild(..) function)
>  kotlinx-coroutines-core/common/src/Job.kt:379 (on Job(..) function)

And ss for the last line of the memory leaks' stack trace in case you need them:

Kotlinx Coroutines Leaks 1

Kotlinx Coroutines Leaks 2

### Expected behavior
kotlinx-coroutines shouldn't create any memory leaks in iOS.

@qwwdfsad
Copy link
Collaborator

It seems like this issue is fixed in 1.5.x-native-mt, please try it and check if the problem still reproduces

@NilayDagdemir
Copy link
Author

New Issue Checklist

  • I updated kotlinx-coroutines version but memory leaks problem is still persists

Info

I'm using:

kotlin: 1.5.20
ktor: 1.6.0
kotlinx-coroutines: 1.5.2-native-mt

for a Kotlin Multiplatform project.

Describe the bug

kotlinx-coroutines creates memory leaks in our iOS part of the project. Here are the places of the leaks:

>  kotlinx-coroutines-core/common/src/JobSupport.kt:989 (on attachChild(..) function)
>  kotlinx-coroutines-core/common/src/Job.kt:379 (on Job(..) function)

And ss for the last line of the memory leaks' stack trace in case you need them:

Kotlinx Coroutines Leaks 1

Kotlinx Coroutines Leaks 2

### Expected behavior
kotlinx-coroutines shouldn't create any memory leaks in iOS.

@qwwdfsad qwwdfsad reopened this Oct 25, 2021
@qwwdfsad
Copy link
Collaborator

qwwdfsad commented Aug 2, 2022

native-mt is no longer supported, so closing it as won't fix. See #462 (comment)

@qwwdfsad qwwdfsad closed this as completed Aug 2, 2022
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