AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
WindowManager Destroying surface9/21/2023 However, I have a sneaking suspicion that this error is unrelated, because I also get this SIGABRT message when I attempt to use a MediaPlayer to play music. 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). 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. I cannot figure out this problem for the life of me.
0 Comments
Read More
Leave a Reply. |