How to fix Surface View Runtime Error “start face detection failed”?

Hello Koders

when I compile the APK everything works fine for the first time and then whether I activate Face detection or not the bug comes back.

Need to help PLEASE