I will assume that those who read will not understand much of what I am going to say, about the process that the camera will do until the moment it gets stuck. But well...
When I open the camera and when I take a photo it gets stuck, and assuming that I have to check in logcat or dmesg and there is this what happens to me:
sudo lxc-attach -n android -- /system/bin/logcat -c && sudo lxc-attach -n android -- /system/bin/logcat > > stuck-camera-log.log
It's very long, I'm going to put what NotKit mentioned to me:
TheKit:
from here, it seems like it did finish capturing the frame and even encoded it to JPEG:
10-04 00:09:23.592 184 3217 I ExynosCameraSec: [CAM(0)][Back_0]-(m_captureStreamThreadFunc[25888]):[F61 T4]YUV capture done. entityID 227, FrameState(0) (227)
10-04 00:09:23.592 184 3217 I ExynosCameraSec: [CAM(0)][Back_0]-(m_handleJpegFrame[25748]):Jpeg output done, jpeg size(2128085)
10-04 00:09:23.592 184 3217 I ExynosCamera: [CAM(0)][Back_0]-(m_sendJpegStreamResult[3234]):Set JPEG result Done. streamId 3, frameCount 61
10-04 00:09:23.592 184 3217 I ExynosCameraSec: [CAM(0)][Back_0]-(m_captureStreamThreadFunc[27795]):frame complete. framecount 61, frameType 4, pipeId(227)
TheKit:
and then
10-04 00:09:23.643 184 3194 W ExynosCameraMCPipe: [CAM(0)][PIPE_ISP]-(m_getBuffer[2303]):HAL(54, 54, pbt(1) size(0)) requestFrameQ wait timeout,Duration(1),LogCnt(6) FrameQ_size(0, 0)
10-04 00:09:23.702 184 3201 E ExynosCamera: [CAM(0)][Back_0]-(m_monitorThreadFunc[9685]):Sensor PIPE ID(6) ESD Detected. pipeCountRenew(16), lastMipiErr(0x0)
Why wasn't it saved?