grantland / android-autofittextview

A TextView that automatically resizes text to fit perfectly within its bounds.
Apache License 2.0
4.27k stars 688 forks source link

Crash on long press for copy/ paste #37

Open SemaphoreMetaphor opened 9 years ago

SemaphoreMetaphor commented 9 years ago

I get a crash in the hardware layer on pre lollipop devices when trying to copy and paste. All I do is long press on the view to get this to happen.

java.lang.RuntimeException: createWindowSurface failed EGL_BAD_ALLOC
        at android.view.HardwareRenderer$GlRenderer.createSurface(HardwareRenderer.java:1351)
        at android.view.HardwareRenderer$GlRenderer.createEglSurface(HardwareRenderer.java:1243)
        at android.view.HardwareRenderer$GlRenderer.initialize(HardwareRenderer.java:1060)
        at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1546)
        at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:996)
        at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5600)
        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
        at android.view.Choreographer.doCallbacks(Choreographer.java:574)
        at android.view.Choreographer.doFrame(Choreographer.java:544)
        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
        at android.os.Handler.handleCallback(Handler.java:733)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:136)
        at android.app.ActivityThread.main(ActivityThread.java:5139)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:515)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
        at dalvik.system.NativeStart.main(Native Method)