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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by liuyuejinqiu
, 1 year ago
Cannot setSurfaceTexture to a released SurfaceTexture
via GitHub by martin90s
, 1 year ago
Cannot setSurfaceTexture to a released SurfaceTexture
java.lang.IllegalArgumentException: Cannot setSurfaceTexture to a released SurfaceTexture
at tv.danmaku.ijk.media.sample.widget.media.TextureRenderView$InternalSurfaceHolder.bindToMediaPlayer(TextureRenderView.java:156)
at tv.danmaku.ijk.media.sample.widget.media.IjkVideoView.bindSurfaceHolder(IjkVideoView.java:629)
at tv.danmaku.ijk.media.sample.widget.media.IjkVideoView.access$2000(IjkVideoView.java:53)
at tv.danmaku.ijk.media.sample.widget.media.IjkVideoView$7.onSurfaceCreated(IjkVideoView.java:661)
at tv.danmaku.ijk.media.sample.widget.media.TextureRenderView$SurfaceCallback.onSurfaceTextureAvailable(TextureRenderView.java:260)
at android.view.TextureView.getHardwareLayer(TextureView.java:368)
at android.view.View.updateDisplayListIfDirty(View.java:15161)
at android.view.View.draw(View.java:15957)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.draw(View.java:16190)
at android.view.View.updateDisplayListIfDirty(View.java:15184)
at android.view.View.draw(View.java:15957)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.updateDisplayListIfDirty(View.java:15179)
at android.view.View.draw(View.java:15957)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.updateDisplayListIfDirty(View.java:15179)
at android.view.View.draw(View.java:15957)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.updateDisplayListIfDirty(View.java:15179)
at android.view.View.draw(View.java:15957)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.updateDisplayListIfDirty(View.java:15179)
at android.view.View.draw(View.java:15957)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.updateDisplayListIfDirty(View.java:15179)
at android.view.View.draw(View.java:15957)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.draw(View.java:16190)
at android.view.View.updateDisplayListIfDirty(View.java:15184)
at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:282)
at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:288)
at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:323)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:2651)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2470)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2103)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1143)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6054)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:860)
at android.view.Choreographer.doCallbacks(Choreographer.java:672)
at android.view.Choreographer.doFrame(Choreographer.java:608)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:846)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5459)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.