Giter VIP home page Giter VIP logo

Comments (4)

waahm7 avatar waahm7 commented on September 25, 2024

AwsCommonRuntime.cleanUp() awaits all threads to join to ensure everything is cleaned up. If there are any Swift object keeping a reference to CRT resources like HostResolver, it will keep waiting for it to release so that it can finish the clean-up. Cleanup is an opt-in feature if someone wants to make sure everything gets cleaned up and there aren’t any memory leaks at the end of application.

I would suggest updating to latest version of crt-swift as we have fixed a lot of memory leaks and reference cycles which might also be causing an issue.

from aws-crt-swift.

thisisabhash avatar thisisabhash commented on September 25, 2024

Just a quick update - still seeing this issue after updating to Swift SDK 0.6.1 with CRT version 0.4.0.

from aws-crt-swift.

waahm7 avatar waahm7 commented on September 25, 2024

@thisisabhash Hi,

I have updated the docs to explain the cleanup behavior. It is an optional feature to make sure that there are no resources alive at the end. It is expected to hang if there is any resource still holding reference to CRT resource. You do not need to call cleanup normally and the Swift SDK never calls cleanup.

Also, some reference cycles bugs were fixed in CRT version 0.5.0, so that might cause an issue with cleanup if there are no CRT resources held before calling cleanup.

from aws-crt-swift.

thisisabhash avatar thisisabhash commented on September 25, 2024

Thank you for the confirmation. Will remove the call to this optional feature.

from aws-crt-swift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.