java.lang.RuntimeException: Error during detachFromGLContext (see logcat for details)

GitHub | shidongdi | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    TextureRenderView onDetachedFromWindow error

    GitHub | 7 months ago | shidongdi
    java.lang.RuntimeException: Error during detachFromGLContext (see logcat for details)
  2. 0

    Error during detachFromGLContext when using TextureView

    Stack Overflow | 1 year ago | RogueBaneling
    java.lang.RuntimeException: Error during detachFromGLContext (see logcat for details)

    Root Cause Analysis

    1. java.lang.RuntimeException

      Error during detachFromGLContext (see logcat for details)

      at android.graphics.SurfaceTexture.detachFromGLContext()
    2. Android Platform
      TextureView.onDetachedFromWindow
      1. android.graphics.SurfaceTexture.detachFromGLContext(SurfaceTexture.java:195)
      2. android.view.TextureView.destroySurface(TextureView.java:232)
      3. android.view.TextureView.access$000(TextureView.java:105)
      4. android.view.TextureView$1.run(TextureView.java:220)
      5. android.view.HardwareRenderer$Gl20Renderer.safelyRun(HardwareRenderer.java:2291)
      6. android.view.View.executeHardwareAction(View.java:12501)
      7. android.view.TextureView.onDetachedFromWindow(TextureView.java:217)
      7 frames
    3. com.videoplayer.widget
      TextureRenderView.onDetachedFromWindow
      1. com.videoplayer.widget.media.TextureRenderView.onDetachedFromWindow(TextureRenderView.java:87)
      1 frame
    4. Android Platform
      ViewGroup.removeAllViews
      1. android.view.View.dispatchDetachedFromWindow(View.java:12642)
      2. android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2587)
      3. android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2587)
      4. android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2587)
      5. android.view.ViewGroup.removeAllViewsInLayout(ViewGroup.java:4047)
      6. android.view.ViewGroup.removeAllViews(ViewGroup.java:3991)
      6 frames