java.lang.IllegalArgumentException: Cannot setSurfaceTexture to a released SurfaceTexture

GitHub | liuyuejinqiu | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Player pause and start (When Activity from background to foreground) on Android

    GitHub | 8 months ago | liuyuejinqiu
    java.lang.IllegalArgumentException: Cannot setSurfaceTexture to a released SurfaceTexture
  2. 0

    Crash in demo when i make getEnableDetachedSurfaceTextureView() return true.

    GitHub | 4 months ago | martin90s
    java.lang.IllegalArgumentException: Cannot setSurfaceTexture to a released SurfaceTexture

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Cannot setSurfaceTexture to a released SurfaceTexture

      at android.view.TextureView.setSurfaceTexture()
    2. Android Platform
      TextureView.setSurfaceTexture
      1. android.view.TextureView.setSurfaceTexture(TextureView.java:725)
      1 frame
    3. tv.danmaku.ijk
      TextureRenderView$SurfaceCallback.onSurfaceTextureAvailable
      1. tv.danmaku.ijk.media.sample.widget.media.TextureRenderView$InternalSurfaceHolder.bindToMediaPlayer(TextureRenderView.java:156)
      2. tv.danmaku.ijk.media.sample.widget.media.IjkVideoView.bindSurfaceHolder(IjkVideoView.java:629)
      3. tv.danmaku.ijk.media.sample.widget.media.IjkVideoView.access$2000(IjkVideoView.java:53)
      4. tv.danmaku.ijk.media.sample.widget.media.IjkVideoView$7.onSurfaceCreated(IjkVideoView.java:661)
      5. tv.danmaku.ijk.media.sample.widget.media.TextureRenderView$SurfaceCallback.onSurfaceTextureAvailable(TextureRenderView.java:260)
      5 frames
    4. Android Platform
      View.draw
      1. android.view.TextureView.getHardwareLayer(TextureView.java:368)
      2. android.view.View.updateDisplayListIfDirty(View.java:15161)
      3. android.view.View.draw(View.java:15957)
      4. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
      5. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
      6. android.view.View.draw(View.java:16190)
      7. android.view.View.updateDisplayListIfDirty(View.java:15184)
      8. android.view.View.draw(View.java:15957)
      9. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
      10. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
      11. android.view.View.updateDisplayListIfDirty(View.java:15179)
      12. android.view.View.draw(View.java:15957)
      13. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
      14. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
      15. android.view.View.updateDisplayListIfDirty(View.java:15179)
      16. android.view.View.draw(View.java:15957)
      17. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
      18. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
      19. android.view.View.updateDisplayListIfDirty(View.java:15179)
      20. android.view.View.draw(View.java:15957)
      21. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
      22. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
      23. android.view.View.updateDisplayListIfDirty(View.java:15179)
      24. android.view.View.draw(View.java:15957)
      25. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
      26. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
      27. android.view.View.updateDisplayListIfDirty(View.java:15179)
      28. android.view.View.draw(View.java:15957)
      29. android.view.ViewGroup.drawChild(ViewGroup.java:3609)
      30. android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
      31. android.view.View.draw(View.java:16190)
      31 frames
    5. Android
      PhoneWindow$DecorView.draw
      1. com.android.internal.policy.PhoneWindow$DecorView.draw(PhoneWindow.java:2692)
      1 frame
    6. Android Platform
      ActivityThread.main
      1. android.view.View.updateDisplayListIfDirty(View.java:15184)
      2. android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:282)
      3. android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:288)
      4. android.view.ThreadedRenderer.draw(ThreadedRenderer.java:323)
      5. android.view.ViewRootImpl.draw(ViewRootImpl.java:2651)
      6. android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2470)
      7. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2103)
      8. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1143)
      9. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6054)
      10. android.view.Choreographer$CallbackRecord.run(Choreographer.java:860)
      11. android.view.Choreographer.doCallbacks(Choreographer.java:672)
      12. android.view.Choreographer.doFrame(Choreographer.java:608)
      13. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:846)
      14. android.os.Handler.handleCallback(Handler.java:739)
      15. android.os.Handler.dispatchMessage(Handler.java:95)
      16. android.os.Looper.loop(Looper.java:148)
      17. android.app.ActivityThread.main(ActivityThread.java:5459)
      17 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    8. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)
      2 frames