每次都有这个报错,但是程序一直没问题,不知道什么情况。。。。
2023-03-23 10:26:08.216 24868-24868/com.example.jstifiled E/SurfaceHolder: Exception locking surface
java.lang.IllegalArgumentException: Surface was already locked
at android.view.Surface.lockCanvas(Surface.java:405)
at android.view.SurfaceView$2.internalLockCanvas(SurfaceView.java:1681)
at android.view.SurfaceView$2.lockCanvas(SurfaceView.java:1641)
at com.supermap.mapping.MapControl1.c(MapControl1.java:365)
at com.supermap.mapping.MapControl1.refreshCallback(MapControl1.java:1072)
at com.supermap.mapping.MapControlNative.jni_SetSize(Native Method)
at com.supermap.mapping.MapControl1.a(MapControl1.java:1218)
at com.supermap.mapping.MapControl1.c(MapControl1.java:375)
at com.supermap.mapping.MapControl1$3.surfaceCreated(MapControl1.java:338)
at android.view.SurfaceView.updateSurface(SurfaceView.java:1275)
at android.view.SurfaceView.lambda$new$0$SurfaceView(SurfaceView.java:179)
at android.view.-$$Lambda$SurfaceView$w68OV7dB_zKVNsA-r0IrAUtyWas.onPreDraw(Unknown Source:2)
at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:1093)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3260)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2091)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8582)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1076)
at android.view.Choreographer.doCallbacks(Choreographer.java:897)
at android.view.Choreographer.doFrame(Choreographer.java:826)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1061)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:236)
at android.app.ActivityThread.main(ActivityThread.java:8164)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)