android / android/camera-samples

PSS for Camera2Basic is getting increased once you launched the app.

Open
#368 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
5.5k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

Pre-Req: I am using Android Q version.
Steps to reproduce:
1. Open the Camera2Basic app.
2. Select any camera say Back JPEG (0)
3. Keep the app running.
4. On the device collect PSS for this app. Something like this.
target:/ # procrank | grep -i camera2
5455 5381720K 219916K **111828K** 104916K com.android.example.camera2.basic
target:/ # procrank | grep -i camera2
5455 5414488K 230008K **121916K** 115000K com.android.example.camera2.basic
procrank | grep -i camera2
5455 5815896K 411812K **303704K** 296772K com.android.example.camera2.basic

You will notice that PSS of this app is increasing continuously till 900 MBand after 5-6 min it will come down to 200 MB. Which is not good for Low mem targets.

I did some investigation and found that Android Native heap is increasing. Please provide your thoughts.

Contributor guide

Open the contributing guide

Research direction

Start with the Camera2Basic app entry point and reproduce the issue on Android Q using the listed camera-selection steps. Run procrank repeatedly while the app remains active and compare PSS with native heap growth. Done means the reported continuous memory increase is explained and the behavior is verified against the low-memory concern.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile-dev, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.