Open rouzbeh-abadi opened 1 year ago
Hi @rouzbeh-abadi, thanks for reporting this, currently we have an issue tracking the work for memory leak: https://github.com/aws/amazon-chime-sdk-ios/issues/216 Could you confirm if the leak you're seeing is from AmazonChimeSDKMedia?
Also what's the purpose of this CustomVideoSource
seems it's simply passing the buffers. Do you see this leak when you're not using a customer video source instead?
Hi @linsang21, Thanks for your response, It seems the leaks occurs in the start function. It's part of AmazonChimeSDK
/// Start AudioVideo Controller
///
/// - Throws: `PermissionError.audioPermissionError` if `RecordPermission` is not given
/// - Throws: `MediaError.audioFailedToStart` if audio client failed to start
/// - Throws: `MediaError.illegalState` if audio client is already started before calling start()
@objc func start() throws
And I can see these leaks when I use a custom VideoSource and when I don't, in both cases these leak occur.
Still facing this issue in iOS
Hi, I'm using this framework to establish a video call with a custom VideoSource
Here is my video source class :
I created this custom video source with frames that come from iOS's vision framework . Without publishing the stream, the memory usage of the app is about 100 mb and there is no memory leak according to the instruments app in Xcode.
But as soon as I start streaming with
meetingSession.audioVideo.start()
a number of memory leaks occursThis memory leak doesn't impact that much when no customise video source is using for the stream, but when I feed it with the customize video source the memory starts to increase to >2gb that crashes the app
And here is how I start the stream
And here is the logs if it is helpful
And tested it on different iPhones from iPhone 11 to iPhone 14 pro max
and the podfile:
Thanks and looking forward to your response