Comments (4)
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.
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.
@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.
Thank you for the confirmation. Will remove the call to this optional feature.
from aws-crt-swift.
Related Issues (20)
- Fix `ecs` credential provider HOT 1
- Expose additional API for creating a STS Web Identity Credential Provider HOT 1
- Process Credentials Provider HOT 1
- Use of GCD in asynchronous context
- Provide public init for TracingAllocator that doesn't require access to default allocator HOT 1
- Cognito Credential Provider - CRT Analysis HOT 3
- feat: Create Swift bindings for Cognito Credentials Provider
- Concurrent SES and DynamoDB use in Lambda causes Fatal error: Tls Context failed to create. HOT 4
- Add Swift support for flexible checksums HOT 2
- Support for AssumeRole Chain HOT 2
- Disable Fallback to IMDSv1 HOT 1
- posix_memalign failed to allocate memory when calling SDK with expired or missing credentials HOT 3
- Drop Swift 5.5 & 5.6 support HOT 1
- Access to private Apple APIs prevents acceptance to App Store HOT 4
- Enable HW Based Implementation for Checksum Algorithms HOT 2
- Specialize HTTP client for Apple platform to fix the connection issue while running in the background HOT 3
- Crash occurring when trying to force unwrap possible nil response header HOT 7
- Add support for writeChunk HOT 1
- Move MD5 hashing to a Data extension and return Data type directly + rename all checksum functions with `compute` prefix HOT 1
- AwsCommonRuntimeKit potentially needs a privacy manifest HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-crt-swift.