Android: on call end the memory claimed by SDK is not deallocated

Open
#305 1 comment 0 reactions 3 assignees View on GitHub

@jsaurezlee-msft is already working on this.

Since Jul 19, 2021.

Assessment

This issue has not been assessed yet.

Description

ADO Linked Android Bug Calling

Describe the bug

On call end, the application memory usage is not same as before starting call.

Application memory usage:
Before starting call - 150 mb
On start call - 240 mb
After call end - 182 mb

Tested on azure-communication-calling-1.0.0-beta.1.aar

Disposing call agent & call client to cleanup memory.

return call.hangUp(HangUpOptions()).thenRun {
            callAgent.close()
            callClient.close()
            call = null
        }

To Reproduce
Steps to reproduce the behaviour:

  1. Start call
  2. Attach android studio profiler
  3. End call
  4. Explore memory

Expected behavior
After call end, the memory claimed by application may be equal to before call.

Desktop (please complete the following information):

  • OS: Mac

Smartphone (please complete the following information):

  • Device: Google Pixel 4
  • OS: Android 11
  • Version azure-communication-calling-1.0.0-beta.1.aar

https://skype.visualstudio.com/SPOOL/_workitems/edit/2464754

Dominant language
No language data
Stars
340
Forks
113
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/Communication

All issues in Azure/Communication

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.