Skip to content

It malfunctioned after being used for a short period of time. #1953

@hoang-anh-0405

Description

@hoang-anh-0405

Duplicate Check

  • I confirm I searched for existing reports and found no duplicates.

Describe the Bug

OOM crash when frequently switching songs/activities due to MediaCodec instance leak

Steps to Reproduce

  1. Open the SimpMusic app.

  2. Play any song.

  3. Press the Home button to exit to the home screen, then reopen the app immediately.

  4. Repeat step 3 about 5-7 times OR press the "Next" button (B)

Expected Behavior

The music playback app is smooth, doesn't cause sudden RAM spikes, and doesn't crash when switching between background and foreground modes multiple times.

App Version

1.1.0

Android Version

Android 16

Device Model

Meizu 20

Custom ROM

  • I am using a custom ROM

Custom ROM Name (if applicable)

No response

Screenshots (optional)

No response

Log / Error Details

Build version: 1.1.1
Current date: 2026-04-14 11:42:09
Device: Meizu MEIZU 20
OS version: Android 16 (SDK 36)

Stack trace:
java.lang.OutOfMemoryError: Failed to allocate a 64 byte allocation with 329216 free bytes and 321KB until OOM, target footprint 268435456, growth limit 268435456; giving up on allocation because <1% of heap free after GC.
at android.media.MediaCodec.getBuffer(Native Method)
at android.media.MediaCodec.getInputBuffer(MediaCodec.java:4821)
at t7.c.p(r8-map-id-3c5db09a77b14f996c26362322e1ef2be37fb38d6e9c13eab77a818cf1c6ea07:3)
at t7.s.M(r8-map-id-3c5db09a77b14f996c26362322e1ef2be37fb38d6e9c13eab77a818cf1c6ea07:35)
at t7.s.z(r8-map-id-3c5db09a77b14f996c26362322e1ef2be37fb38d6e9c13eab77a818cf1c6ea07:122)
at i8.l.z(r8-map-id-3c5db09a77b14f996c26362322e1ef2be37fb38d6e9c13eab77a818cf1c6ea07:20)
at i7.r0.h(r8-map-id-3c5db09a77b14f996c26362322e1ef2be37fb38d6e9c13eab77a818cf1c6ea07:133)
at i7.r0.handleMessage(r8-map-id-3c5db09a77b14f996c26362322e1ef2be37fb38d6e9c13eab77a818cf1c6ea07:378)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:248)
at android.os.Looper.loop(Looper.java:338)
at android.os.HandlerThread.run(HandlerThread.java:85)

User actions:
2026-04-14 11:32:40: MainActivity created
2026-04-14 11:32:40: MainActivity resumed
2026-04-14 11:33:07: MainActivity paused
2026-04-14 11:34:40: MainActivity destroyed
2026-04-14 11:34:50: MainActivity created
2026-04-14 11:34:50: MainActivity resumed
2026-04-14 11:35:46: MainActivity paused
2026-04-14 11:35:54: MainActivity resumed
2026-04-14 11:36:36: MainActivity paused
2026-04-14 11:36:36: MainActivity resumed
2026-04-14 11:36:39: MainActivity paused
2026-04-14 11:36:41: MainActivity resumed
2026-04-14 11:36:44: MainActivity paused
2026-04-14 11:37:39: MainActivity resumed
2026-04-14 11:37:45: MainActivity paused
2026-04-14 11:40:07: MainActivity resumed
2026-04-14 11:40:11: MainActivity paused
2026-04-14 11:40:11: MainActivity resumed
2026-04-14 11:40:11: MainActivity paused
2026-04-14 11:40:21: MainActivity resumed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions