[Moto X4 Questions & Answers] Abomb:
Edit: clear data on Camera app fixed it, totally forgot to try that first :/

I'm on Magisk rooted Oreo and as the title says when taking pictures the camera hangs for a few seconds. I checked logcat and get the following errors when taking pictures, I tried google but could not find anything on those errors. Perhaps someone has any ideas what's wrong?

03-07 14:46:21.212 945 25005 E mm-camera: <MCT ><ERROR> 2474: mct_stream_get_metadata_buffer: Failed to get_buf - errno: Invalid argument!!!
03-07 14:46:21.213 945 25005 E mm-camera: <MCT ><ERROR> 1002: mct_controller_proc_bus_msg_internal: Failed to issue SOF cmd to all modules.
03-07 14:46:21.241 945 25005 E mm-camera: <MCT ><ERROR> 2474: mct_stream_get_metadata_buffer: Failed to get_buf - errno: Invalid argument!!!
03-07 14:46:21.242 945 25005 E mm-camera: <MCT ><ERROR> 1002: mct_controller_proc_bus_msg_internal: Failed to issue SOF cmd to all modules.
03-07 14:46:21.275 945 25005 E mm-camera: <MCT ><ERROR> 2474: mct_stream_get_metadata_buffer: Failed to get_buf - errno: Invalid argument!!!
03-07 14:46:21.276 945 25005 E mm-camera: <MCT ><ERROR> 1002: mct_controller_proc_bus_msg_internal: Failed to issue SOF cmd to all modules.
03-07 14:46:21.309 945 25005 E mm-camera: <MCT ><ERROR> 2474: mct_stream_get_metadata_buffer: Failed to get_buf - errno: Invalid argument!!!
03-07 14:46:21.315 945 25005 E mm-camera: <MCT ><ERROR> 1002: mct_controller_proc_bus_msg_internal: Failed to issue SOF cmd to all modules.
03-07 14:46:21.345 945 25005 E mm-camera: <MCT ><ERROR> 2474: mct_stream_get_metadata_buffer: Failed to get_buf - errno: Invalid argument!!!
03-07 14:46:21.346 945 25005 I mm-camera: <MCT >< INFO> 297: mct_bus_post_msg: Discarded the bus msgs that got stagnated in the queue
03-07 14:46:21.348 945 25005 E mm-camera: <MCT ><ERROR> 1002: mct_controller_proc_bus_msg_internal: Failed to issue SOF cmd to all modules.
03-07 14:46:21.377 945 25005 E mm-camera: <MCT ><ERROR> 2474: mct_stream_get_metadata_buffer: Failed to get_buf - errno: Invalid argument!!!
03-07 14:46:21.378 945 25005 E mm-camera: <MCT ><ERROR> 1002: mct_controller_proc_bus_msg_internal: Failed to issue SOF cmd to all modules.
03-07 14:46:21.408 945 25005 E mm-camera: <MCT ><ERROR> 2474: mct_stream_get_metadata_buffer: Failed to get_buf - errno: Invalid argument!!!
03-07 14:46:21.409 945 25005 E mm-camera: <MCT ><ERROR> 1002: mct_controller_proc_bus_msg_internal: Failed to issue SOF cmd to all modules.
03-07 14:46:21.442 945 25005 E mm-camera: <MCT ><ERROR> 2474: mct_stream_get_metadata_buffer: Failed to get_buf - errno: Invalid argument!!!
03-07 14:46:21.444 945 25005 E mm-camera: <MCT ><ERROR> 1002: mct_controller_proc_bus_msg_internal: Failed to issue SOF cmd to all modules.
03-07 14:46:21.477 945 25005 E mm-camera: <MCT ><ERROR> 2474: mct_stream_get_metadata_buffer: Failed to get_buf - errno: Invalid argument!!!
03-07 14:46:21.478 945 25005 E mm-camera: <MCT ><ERROR> 1002: mct_controller_proc_bus_msg_internal: Failed to issue SOF cmd to all modules.
03-07 14:46:21.508 945 25005 E mm-camera: <MCT ><ERROR> 2474: mct_stream_get_metadata_buffer: Failed to get_buf - errno: Invalid argument!!!
03-07 14:46:21.512 945 25005 E mm-camera: <MCT ><ERROR> 1002: mct_controller_proc_bus_msg_internal: Failed to issue SOF cmd to all modules.
03-07 14:46:21.541 945 25005 E mm-camera: <MCT ><ERROR> 2474: mct_stream_get_metadata_buffer: Failed to get_buf - errno: Invalid argument!!!
03-07 14:46:21.543 945 25005 E mm-camera: <MCT ><ERROR> 1002: mct_controller_proc_bus_msg_internal: Failed to issue SOF cmd to all modules.
03-07 14:46:21.574 945 25005 E mm-camera: <MCT ><ERROR> 2474: mct_stream_get_metadata_buffer: Failed to get_buf - errno: Invalid argument!!!
03-07 14:46:21.576 945 25005 E mm-camera: <MCT ><ERROR> 1002: mct_controller_proc_bus_msg_internal: Failed to issue SOF cmd to all modules.
03-07 14:46:21.608 945 25005 E mm-camera: <MCT ><ERROR> 2474: mct_stream_get_metadata_buffer: Failed to get_buf - errno: Invalid argument!!!
03-07 14:46:21.609 945 25005 E mm-camera: <MCT ><ERROR> 1002: mct_controller_proc_bus_msg_internal: Failed to issue SOF cmd to all modules.