Skip to content

Resource Leak or Mismanagement #12693

@Yuge-Nie

Description

@Yuge-Nie

Checklist

  • I am able to reproduce the bug with the latest version given here: CLICK THIS LINK.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have read the FAQ and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected version

0.28.0

Steps to reproduce the bug

Describe the bug:
Our team is developing a tool that can automatically identify potential resource issues in Android applications.

To detect resource anomalies, we designed five neutral cycles—GUI event sequences that should not increase resource usage:

DOC (Double Orientation Change)
Home (Return to Home Screen → Resume AUT)
Notification (Open Notification Bar → Close Notification Bar)
Text (Input Text → Clear Text)
Scroll (Swipe Down/Right → Swipe Up/Left)

The first three cycles are designed to trigger 3 main pairs of lifecycle callback functions (i.e., onCreate() and onDestroy(), onStart()/onRestart() and onStop(), onResume() and onPause()), while cycles ④ and ⑤ are based on UI interaction semantics, covering user input and scrolling scenarios that may also affect resource usage.

If executing a specific neutral cycle 50 times in a given state leads to continuous growth in certain resource metrics, we regard it as a potential resource leak or mismanagement issue that may cause software aging.

The bugs that have been successfully reproduced are uploaded here.newpipe.zip
There may be some inaccuracies in state recognition, which could lead to duplicate reports. We apologize for any inconvenience this may cause.

Each bug corresponds to one screenshot (A)—the image shows the page where the issue occurs.
Other information is encoded in the image filename as follows:

{ActivityName (B)}_{ExecutedNeutralCycle (C)}_{ResourcesWithContinuousGrowth (D)}

We would greatly appreciate it if the developers could help us verify whether these issues truly exist. Your timely confirmation would be extremely valuable to our research and development efforts.

To Reproduce:
Steps to reproduce the behavior:

  1. Open the Android app under test.
  2. Execute the specified neutral cycle (based on C) 50 times in the indicated activity/state (based on A & B).
  3. Observe the monitored resource metrics (based on D).
  4. Identify whether any metric shows continuous growth.

Expected behavior

Neutral cycles should not cause resource metrics to continuously increase.

Actual behavior

Neutral cycles cause resource metrics to continuously increase.

Screenshots/Screen recordings

No response

Logs

No response

Affected Android/Custom ROM version

Android 11

Affected device model

Google Pixel

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue is related to a bugperformanceRelated to performance and optimisation; affects the speed or memory efficiency of the application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions