Any updates on: - The memory leak issues and the i...
# ktor
j
Any updates on: • The memory leak issues and the issues with users with Ktor iOS • Consumers of ktor not being able to set coroutine context ? My team has started porting our socket implementation to native sockets instead of using ktor
e
Hey @jQrgen, the memory leak is fixed in
3.0.0-beta-1
. Coroutine context fix is in the PR and will be merged soon. Sorry for the delay
🙌 1
j
`srcmacosArm64Main: Could not find ktor-client-cio.klib (io.ktorktor client cio macosarm643.0.0-beta-1).``
Sync failure
+ around 15 other dependencies from that are not found in a similar manner
Copy code
:src:macosArm64Main: Could not find ktor-client-core.klib (io.ktor:ktor-client-core-macosarm64:3.0.0-beta-1).
Searched in the following locations:
    <https://plugins.gradle.org/m2/io/ktor/ktor-client-core-macosarm64/3.0.0-beta-1/ktor-client-core-macosarm64-3.0.0-beta-1.klib>

Possible solution:
 - Declare repository providing the artifact, see the documentation at <https://docs.gradle.org/current/userguide/declaring_repositories.html>
Copy code
:src:macosArm64Main: Could not find ktor-http.klib (io.ktor:ktor-http-macosarm64:3.0.0-beta-1).
Searched in the following locations:
    <https://plugins.gradle.org/m2/io/ktor/ktor-http-macosarm64/3.0.0-beta-1/ktor-http-macosarm64-3.0.0-beta-1.klib>

Possible solution:
 - Declare repository providing the artifact, see the documentation at <https://docs.gradle.org/current/userguide/declaring_repositories.html>
etc
Neither works with latest eap version: `Could not GET 'https://mvnrepository.com/artifact/androidx.test/core/io/ktor/ktor-client-core-macosarm64/3.0.0-eap-852/ktor-client-core-macosarm64-3.0.0-eap-852.pom'. Received status code 403 from server: Forbidden``
c
Did you specify the EAP repo url?
e
It looks like the dependency for 3.0.0-beta-1 is in place: https://central.sonatype.com/artifact/io.ktor/ktor-client-cio-macosarm64. It could be a gradle tooling issue. Let me check if I can find someone to handle this.
j
Yes, I have added the eap url
e
Could you share the build.gradle.kts file?
j
Ok. The current version of
settings.gradle.kt
does not include the eap url to test importing
3.0.0-beta-1
https://gitlab.com/jQrgen/wally/-/blob/ktor-3-beta/settings.gradle.kts App level `build.gradle.kts`: https://gitlab.com/jQrgen/wally/-/blob/ktor-3-beta/build.gradle.kts Module level
build.gradle.kts
that contains the ktor version: https://gitlab.com/jQrgen/wally/-/blob/ktor-3-beta/src/build.gradle.kts
e
could you try to move
Copy code
mavenLocal()
as the last repo in all files?
it can cause a problem if the dependency was partially resolved and cached before
j
I did that and still have the same problem
:src:macosArm64Main: Could not find ktor-client-content-negotiation.klib (io.ktor:ktor-client-content-negotiation-macosarm64:3.0.0-beta-1).
Screenshot 2024-05-29 at 12.24.23.png
e
Could you try building it from CLI?
j
implementation("io.ktor:ktor-utils:$ktorVersion")
was commented
h
https://youtrack.jetbrains.com/issue/KTOR-7024 Ktor(iOS) memory leaks still exist in 3.0.0-beta🫠 Hope this issue can be solved as soon as possible😭