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

GitHub | huashigen | 3 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    Android has some problem with big images, so, probably, the image you're trying to use is too big for Canvas. You can either use Picasso or compress your image to reduce it's size (both pixel wise and filesize wise)
  2. 0

    GitHub comment 639#278534647

    GitHub | 3 months ago | huashigen
    java.lang.RuntimeException: Error during attachToGLContext (see logcat for details)
  3. 0

    一点击全屏播放就闪退,请问这个问题怎么解决?

    GitHub | 4 months ago | 103king
    java.lang.RuntimeException: Error during detachFromGLContext (see logcat for details)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    MediaPlayer skips forward somes seconds when surfaceview gets destroyed

    Stack Overflow | 2 years ago | mario
    java.lang.RuntimeException: Error during attachToGLContext (see logcat for details)
  6. 0

    GLConsumer is already attached to a context for new SurfaceTexture

    Stack Overflow | 1 month ago | dkarmazi
    java.lang.RuntimeException: Error during attachToGLContext (see logcat for details)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      Error during attachToGLContext (see logcat for details)

      at android.graphics.SurfaceTexture.attachToGLContext()
    2. Android Platform
      View.draw
      1. android.graphics.SurfaceTexture.attachToGLContext(SurfaceTexture.java:215)
      2. android.view.GLES20TextureLayer.setSurfaceTexture(GLES20TextureLayer.java:86)
      3. android.view.HardwareRenderer$Gl20Renderer.setSurfaceTexture(HardwareRenderer.java:2221)
      4. android.view.TextureView.getHardwareLayer(TextureView.java:401)
      5. android.view.View.getDisplayList(View.java:13328)
      6. android.view.View.getDisplayList(View.java:13404)
      7. android.view.View.draw(View.java:14182)
      8. android.view.ViewGroup.drawChild(ViewGroup.java:3103)
      9. android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
      10. android.view.View.getDisplayList(View.java:13357)
      11. android.view.View.getDisplayList(View.java:13404)
      12. android.view.View.draw(View.java:14182)
      13. android.view.ViewGroup.drawChild(ViewGroup.java:3103)
      14. android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
      15. android.view.View.draw(View.java:14468)
      16. android.view.View.getDisplayList(View.java:13362)
      17. android.view.View.getDisplayList(View.java:13404)
      18. android.view.View.draw(View.java:14182)
      19. android.view.ViewGroup.drawChild(ViewGroup.java:3103)
      20. android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
      21. android.view.View.getDisplayList(View.java:13357)
      22. android.view.View.getDisplayList(View.java:13404)
      23. android.view.View.draw(View.java:14182)
      24. android.view.ViewGroup.drawChild(ViewGroup.java:3103)
      25. android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
      26. android.view.View.getDisplayList(View.java:13357)
      27. android.view.View.getDisplayList(View.java:13404)
      28. android.view.View.draw(View.java:14182)
      29. android.view.ViewGroup.drawChild(ViewGroup.java:3103)
      30. android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
      31. android.view.View.draw(View.java:14468)
      32. android.widget.FrameLayout.draw(FrameLayout.java:472)
      33. android.widget.ScrollView.draw(ScrollView.java:1603)
      34. android.view.View.getDisplayList(View.java:13362)
      35. android.view.View.getDisplayList(View.java:13404)
      36. android.view.View.draw(View.java:14182)
      37. android.view.ViewGroup.drawChild(ViewGroup.java:3103)
      38. android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
      39. android.view.View.getDisplayList(View.java:13357)
      40. android.view.View.getDisplayList(View.java:13404)
      41. android.view.View.draw(View.java:14182)
      42. android.view.ViewGroup.drawChild(ViewGroup.java:3103)
      43. android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
      44. android.view.View.draw(View.java:14468)
      45. android.widget.FrameLayout.draw(FrameLayout.java:472)
      46. android.view.View.getDisplayList(View.java:13362)
      47. android.view.View.getDisplayList(View.java:13404)
      48. android.view.View.draw(View.java:14182)
      49. android.view.ViewGroup.drawChild(ViewGroup.java:3103)
      50. android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
      51. android.view.View.draw(View.java:14468)
      51 frames
    3. Android v7
      ActionBarOverlayLayout.draw
      1. android.support.v7.widget.ActionBarOverlayLayout.draw(ActionBarOverlayLayout.java:444)
      1 frame
    4. Android Platform
      FrameLayout.draw
      1. android.view.View.getDisplayList(View.java:13362)
      2. android.view.View.getDisplayList(View.java:13404)
      3. android.view.View.draw(View.java:14182)
      4. android.view.ViewGroup.drawChild(ViewGroup.java:3103)
      5. android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
      6. android.view.View.getDisplayList(View.java:13357)
      7. android.view.View.getDisplayList(View.java:13404)
      8. android.view.View.draw(View.java:14182)
      9. android.view.ViewGroup.drawChild(ViewGroup.java:3103)
      10. android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
      11. android.view.View.getDisplayList(View.java:13357)
      12. android.view.View.getDisplayList(View.java:13404)
      13. android.view.View.draw(View.java:14182)
      14. android.view.ViewGroup.drawChild(ViewGroup.java:3103)
      15. android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
      16. android.view.View.draw(View.java:14468)
      17. android.widget.FrameLayout.draw(FrameLayout.java:472)
      17 frames