i use this example, because there is the error too.
If you swtich to video mode and then to the front camera, then record a video and stop the video. The Error is on line 134 in the "CamEx2" class.
The following error message:
Logger connected to: samsung SM-G935F