Skip to content

[Bug] UI Error causing app to crash loading any YT video #2776

Description

@Celestia74

Checklist

  • I make sure that the issue is NOT a duplicate of pinned issues
  • I make sure I am using the LATEST version - check here
  • I understand that issues with limited impact, such as those occurring on specific devices or under specific network conditions, will not be fixed
  • I have attached the error report in the issue

Describe the bug

Exception

  • User Action: ui error
  • Request: ACRA report
  • Content Country: GB
  • Content Language: en-GB
  • App Language: en_GB_#u-fw-mon-mu-fahrenhe
  • Service: none
  • Endpoint: mweb
  • Version: 5.2.4
  • OS: Linux Android 15 - 35
Crash log

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 org.schabi.newpipe.player.helper.MediaSessionManager.updateMetadata(r8-map-id-8ea17fc67480248e4ceedc4e283da07abed19deadaf8cd0b4ac6c27cc2a30247:366)
	at org.ocpsoft.prettytime.PrettyTime$$ExternalSyntheticLambda0.accept(r8-map-id-8ea17fc67480248e4ceedc4e283da07abed19deadaf8cd0b4ac6c27cc2a30247:236)
	at j$.util.Optional.ifPresent(r8-map-id-8ea17fc67480248e4ceedc4e283da07abed19deadaf8cd0b4ac6c27cc2a30247:5)
	at org.schabi.newpipe.player.Player$$ExternalSyntheticLambda2.accept(r8-map-id-8ea17fc67480248e4ceedc4e283da07abed19deadaf8cd0b4ac6c27cc2a30247:200)
	at j$.util.Optional.ifPresent(r8-map-id-8ea17fc67480248e4ceedc4e283da07abed19deadaf8cd0b4ac6c27cc2a30247:5)
	at org.schabi.newpipe.player.Player.onEvents(r8-map-id-8ea17fc67480248e4ceedc4e283da07abed19deadaf8cd0b4ac6c27cc2a30247:37)
	at androidx.media3.exoplayer.ExoPlayerImpl$$ExternalSyntheticLambda21.invoke(r8-map-id-8ea17fc67480248e4ceedc4e283da07abed19deadaf8cd0b4ac6c27cc2a30247:12)
	at androidx.media3.common.util.ListenerSet$$ExternalSyntheticLambda0.handleMessage(r8-map-id-8ea17fc67480248e4ceedc4e283da07abed19deadaf8cd0b4ac6c27cc2a30247:951)
	at android.os.Handler.dispatchMessage(Handler.java:105)
	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:594)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)


Version

5.2.4 from F-Droid

Frequency

Always (100% of the time)

Device

POCO X5 Pro 5G, Android 15

Steps to reproduce the bug

click on any video
try to play
crash

Additional context

No response

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