maxrave-dev / maxrave-dev/SimpMusic
Crash on playing any songs
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 11.4k
- Forks
- 599
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 7
Description
Duplicate Check
- I confirm I searched for existing reports and found no duplicates.
Describe the Bug
"The error occurs when playing any song that is not a YouTube video."
Steps to Reproduce
Steps to reproduce:
- Open the application.
- Search for any song.
- Play the song.
- Error occurs.
Reporte completo estructurado (listo para enviar al soporte o desarrollador):
Bug Report: App crash when playing non-YouTube songs (IllegalArgumentException: cannot use a recycled source in createBitmap)
Description:
The error occurs when playing any song that is not a YouTube video.
Device & Environment:
- Build version: 2.1.0
- Device: Xiaomi Redmi Note 8
- OS Version: Android 15 (SDK 35)
Steps to reproduce:- Open the application.
- Search for any song (non-YouTube video).
- Play the song.
- The application crashes.
Stack trace:
java.lang.IllegalArgumentException: cannot use a recycled source in createBitmap
at android.graphics.Bitmap.createBitmap(Bitmap.java:942)
at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:864)
at android.media.MediaMetadata$Builder.scaleBitmap(MediaMetadata.java:996)
at android.media.MediaMetadata$Builder.build(MediaMetadata.java:970)
at android.media.session.MediaSession.setMetadata(MediaSession.java:512)
Expected Behavior
Listen music
App Version
2.1.0
Android Version
Android 15
Device Model
Redmi Note 8
Custom ROM
- I am using a custom ROM
Custom ROM Name (if applicable)
Evolution X Ver. 10.6
Screenshots (optional)
No response
Log / Error Details
Build version: 2.1.0
Current date: 2026-09-13 20:58:08
Device: Xiaomi Redmi Note 8
OS version: Android 15 (SDK 35)
Stack trace:
java.lang.IllegalArgumentException: cannot use a recycled source in createBitmap
at android.graphics.Bitmap.createBitmap(Bitmap.java:942)
at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:864)
at android.media.MediaMetadata$Builder.scaleBitmap(MediaMetadata.java:996)
at android.media.MediaMetadata$Builder.build(MediaMetadata.java:970)
at android.media.session.MediaSession.setMetadata(MediaSession.java:512)
at n68.R(r8-map-id-6b001c8d3278979ee9e094b2ae5bc79c484a9ccfa9aabca443b711ca1f62bdff:155)
at g54.e(r8-map-id-6b001c8d3278979ee9e094b2ae5bc79c484a9ccfa9aabca443b711ca1f62bdff:37)
at yn4.run(r8-map-id-6b001c8d3278979ee9e094b2ae5bc79c484a9ccfa9aabca443b711ca1f62bdff:1474)
at android.os.Handler.handleCallback(Handler.java:991)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.app.ActivityThread.main(ActivityThread.java:8930)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:595)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
User actions:
2026-09-13 20:57:46: MainActivity created
2026-09-13 20:57:46: MainActivity resumed
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the MediaSession.setMetadata entry in the stack trace and trace the app frame n68.R during non-YouTube playback; MainActivity is only shown as the initial lifecycle entry point. Reproduce on Android 15 with the listed device or environment, then verify that playing non-YouTube songs no longer crashes with the recycled bitmap error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100