java.lang.IllegalStateException

Can't copy a recycled bitmap

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web36

  • via GitHub by xtools-at
    ,
  • via GitHub by TommyVisic
    ,
  • Stack trace

    • java.lang.IllegalStateException: Can't copy a recycled bitmap at android.graphics.Bitmap.checkRecycled(Bitmap.java:239) at android.graphics.Bitmap.copy(Bitmap.java:428) at android.support.v4.media.session.MediaSessionCompat$MediaSessionImplBase.cloneMetadataIfNeeded(MediaSessionCompat.java:1436) at android.support.v4.media.session.MediaSessionCompat$MediaSessionImplBase.setMetadata(MediaSessionCompat.java:1450) at android.support.v4.media.session.MediaSessionCompat.setMetadata(MediaSessionCompat.java:419) at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager.updateMediaSessionMetadata(VideoCastManager.java:2415) at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager.setUpMediaSession(VideoCastManager.java:2249) at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager.updateMediaSession(VideoCastManager.java:2354) at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager.onRemoteMediaPlayerStatusUpdated(VideoCastManager.java:2058) at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager.access$200(VideoCastManager.java:140) at com.google.android.libraries.cast.companionlibrary.cast.VideoCastManager$22.onStatusUpdated(VideoCastManager.java:1795) at com.google.android.gms.cast.RemoteMediaPlayer.onStatusUpdated(Unknown Source) at com.google.android.gms.cast.RemoteMediaPlayer.zza(Unknown Source) at com.google.android.gms.cast.RemoteMediaPlayer$1.onStatusUpdated(Unknown Source) at com.google.android.gms.cast.internal.zzm.zza(Unknown Source) at com.google.android.gms.cast.internal.zzm.zzbZ(Unknown Source) at com.google.android.gms.cast.RemoteMediaPlayer.onMessageReceived(Unknown Source) at com.google.android.gms.cast.internal.zze$zzb$4.run(Unknown Source) at android.os.Handler.handleCallback(Handler.java:615) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:153) at android.app.ActivityThread.main(ActivityThread.java:4987) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:821) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    ruberube
    28 times, last one
    th3teacherth3teacher
    2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    balajivaishnavbalajivaishnav
    1200 times, last one
    3 more bugmates