Native LockCanvas error in lockCanvas. Tell me how to fix it. please

  Kiến thức lập trình

I’m doing lockCanvas on the surface I received via idl from another app, but the error below appears. It’s already lockedCanvas, so I don’t think there’s an error. There’s no logic like that.

If you know any of these cases, please let me know the solution. Thank you

04-16 12:06:24.401 21416 21416 E AndroidRuntime: java.lang.IllegalArgumentException
04-16 12:06:24.401 21416 21416 E AndroidRuntime:    at android.view.Surface.nativeLockCanvas(Native Method)
04-16 12:06:24.401 21416 21416 E AndroidRuntime:    at android.view.Surface.lockCanvas(Surface.java:405)

LEAVE A COMMENT