restmade.blogg.se

WindowManager Destroying surface
WindowManager Destroying surface












WindowManager Destroying surface WindowManager Destroying surface

First of all, it results in a Fatal error 6 (SIGABRT), which is just altogether unhelpful. This is causing some very strange behavior. 07-19 17:38:32.350 E/Surface: queueBuffer (handle=0x7ffeec230f50) failed (Operation not permitted)Ġ7-19 17:38:32.350 E/AndroidRuntime: FATAL EXCEPTION: Thread-4Īt (Native Method)Īt (Surface.java:331)Īt (Surface.java:312)Īt $4.unlockCanvasAndPost(SurfaceView.java:954)Īt .n(AndroidFastRenderView.java:109) However, I still get an IllegalArgumentException when attempting to call holder.unlockCanvasAndPost() (which should never be called if the canvas wasn't already locked).

WindowManager Destroying surface code#

As you can see from the code below, I am checking to make sure the SurfaceView's holder has a valid Surface and that the Canvas can be locked before attempting to draw on it. The thread is created once, and it's supposed to draw onto the SurfaceView until it's destroyed. I have a class called AndroidFastRenderView that extends SurfaceView and implements Runnable.

WindowManager Destroying surface

I cannot figure out this problem for the life of me.














WindowManager Destroying surface