Skip to content

[BUG] Crash: cannot use a recycled source in createBitmap #1441

@ThatAnnoyingVegan

Description

@ThatAnnoyingVegan

Describe the bug
Playing a video results in the app crashing.

Device info (please complete the following information):

  • Device: [Poco F1]
  • Android version: [15]
  • App version: [version 0.14.0
    dev.anilbeesetti.nextplayer]

FATAL EXCEPTION: main
Process: dev.anilbeesetti.nextplayer, PID: 7737
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 v3.F0.E(SourceFile:145)
at v3.D0.i(SourceFile:32)
at V4.s.run(SourceFile:430)
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:8934)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:591)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions