Open brennanMKE opened 2 years ago
The log at the bottom was collected with the Leaks profiler in Instruments. There appears to be memory accumulating while an app is working.
Xcode, macOS running on macOS (latest release versions)
Run an app which uses the code listed in the log.
Memory appears to accumulate.
Memory should level out after work is done.
There may be memory allocations which are acquired but not always released in the Swift CRT integration.
Any update on this? I am seeing Memory Allocation crashes that appear to stem from the aws-crt-swift package.
aws-crt-swift
Description
The log at the bottom was collected with the Leaks profiler in Instruments. There appears to be memory accumulating while an app is working.
Context
Environment
Xcode, macOS running on macOS (latest release versions)
Reproduction Steps
Run an app which uses the code listed in the log.
Observed Behavior
Memory appears to accumulate.
Expected Behavior
Memory should level out after work is done.
Possible Solution
There may be memory allocations which are acquired but not always released in the Swift CRT integration.
leaks.log
``` s_default_malloc /ROOT/PROJECT/Local/aws-crt-swift/aws-common-runtime/aws-c-common/source/allocator.c:54 aws_mem_acquire /ROOT/PROJECT/Local/aws-crt-swift/aws-common-runtime/aws-c-common/source/allocator.c:126 aws_string_new_from_array /ROOT/PROJECT/Local/aws-crt-swift/aws-common-runtime/aws-c-common/source/string.c:196 $sSS19AwsCommonRuntimeKitE6asCStrSPys4Int8VGSgyF /ROOT/PROJECT/Local/aws-crt-swift/Source/AwsCommonRuntimeKit/crt/AWSString.swift:47 $sSS19AwsCommonRuntimeKitE13awsByteCursorSo0E12_byte_cursorVvg /ROOT/PROJECT/Local/aws-crt-swift/Source/AwsCommonRuntimeKit/Utilities.swift:27 specialized CRTCredentials.init(accessKey:secret:sessionToken:expirationTimeout:allocator:) /ROOT/PROJECT/Local/aws-crt-swift/Source/AwsCommonRuntimeKit/auth/credentials/CRTCredentials.swift:24 CRTCredentials.init(accessKey:secret:sessionToken:expirationTimeout:allocator:) /ROOT/PROJECT/Local/aws-crt-swift/