capacitor
capacitor copied to clipboard
bug: Camera plugin restart app when take a photo
Bug Report
Capacitor Version
npx cap doctor
output:
Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 2.1.0
@capacitor/core: 2.1.0
@capacitor/android: 2.1.0
@capacitor/electron: 2.1.0
@capacitor/ios: 2.1.0
Installed Dependencies:
@capacitor/electron not installed
@capacitor/cli 2.1.0
@capacitor/android 2.1.0
@capacitor/ios 2.1.0
@capacitor/core 2.1.0
[success] Android looking great! 👌 Found 3 Capacitor plugins for ios: @codetrix-studio/capacitor-google-auth (2.1.1) @rdlabo/capacitor-facebook-login (2.0.2) cordova-plugin-nativegeocoder (3.4.1) [success] iOS looking great! 👌
Affected Platform(s)
- [x] Android
- [ ] iOS
- [ ] Electron
- [ ] Web
Current Behavior
When calling the method const image = await Camera.getPhoto ({ quality: 70, allowEditing: false, resultType: CameraResultType.Uri, promptLabelHeader: 'Camera', promptLabelCancel: 'Cancel', promptLabelPhoto: 'Image Gallery', promptLabelPicture: 'Take Photo' });
The application to take photography is shown. When the photo is taken, the application restarts. Reviewing in Android Studio, the app process dies, and another instance of the app opens.
Expected Behavior
The application takes the photo and returns the url to the controller without restarting the app.
Sample Code or Sample Application Repo
const image = await Camera.getPhoto ({ quality: 70, allowEditing: false, resultType: CameraResultType.Uri, promptLabelHeader: 'Camera', promptLabelCancel: 'Cancel', promptLabelPhoto: 'Image Gallery', promptLabelPicture: 'Take Photo' });
Reproduction Steps
Other Technical Details
npm --version
output: 6.13.7
node --version
output: v10.15.1
pod --version
output (iOS issues only):
Other Information
In this video you can see how when trying to take a photo from a xiaomi, the app process stops and restarts after taking the photo. Sometimes the method works correctly. YouTube link: https://youtu.be/GfvSIJ5SpwE
How much memory does your device have? Are there any crash logs in logcat?
No crash log in the logcat.
It is a XIAOMI REDMI NOTE 8T with 3 GB of ram
I have noticed phones with low memory ~2GB experience this exact behaviour, so possibly a OutOfMemory exception? You can debug the application and step through lines in returnResult() method. It's unusal for exception to not show up in logs, maybe don't use your app process as filter in logcat; let it display system wide logs and try to crash the application.
This appears to happen on older iOS devices as well, independent of Capacitor verisons: https://github.com/ionic-team/capacitor/issues/2897 ... that issue has a sample project that intermittently repro's the bug.
https://capacitor.ionicframework.com/docs/apis/camera There is information about this in the documentation
Additionally, because the Camera API launches a separate Activity to handle taking the photo, you should listen for appRestoredResult in the App plugin to handle any camera data that was sent in the case your app was terminated by the operating system while the Activity was running.
I have noticed phones with low memory ~2GB experience this exact behaviour, so possibly a OutOfMemory exception? You can debug the application and step through lines in returnResult() method. It's unusal for exception to not show up in logs, maybe don't use your app process as filter in logcat; let it display system wide logs and try to crash the application.
I have copied the logcat for you. Just the process when i clicked to the capture button, until the app process is dead.
Error logcat:
2020-05-27 15:18:53.935 606-29140/? E/CamComm1.0-MD: Mismatched tag type when updating entry enable (-2146762752) of type byte; got type int32 data instead 2020-05-27 15:18:53.935 606-29140/? E/CamComm1.0-MD: Mismatched tag type when updating entry is_main (-2146762751) of type byte; got type int32 data instead 2020-05-27 15:18:54.164 606-9481/? E/mm-camera: <STATS_AEC ><ERROR> 579: aec_led_cal_apply_calibration: Calibrate data size 0 not expected with tuning size: 0 2020-05-27 15:18:54.164 606-9482/? E/mm-camera: <STATS_AF ><ERROR> 874: af_haf_util_update_force_scan_end_params: force scan timeout enabled,max th: 40 2020-05-27 15:18:54.167 606-9466/? E/mm-camera: <IFACE ><ERROR> 2264: iface_util_set_chromatix: iface_util_set_chromatix:2264 failed: iface_hvx_open rc 0 2020-05-27 15:18:54.209 606-9482/? E/mm-camera: <STATS_AF ><ERROR> 874: af_haf_util_update_force_scan_end_params: force scan timeout enabled,max th: 40 2020-05-27 15:18:54.209 606-9481/? E/mm-camera: <STATS_AEC ><ERROR> 579: aec_led_cal_apply_calibration: Calibrate data size 0 not expected with tuning size: 0 2020-05-27 15:18:54.215 606-9466/? E/mm-camera: <IFACE ><ERROR> 2264: iface_util_set_chromatix: iface_util_set_chromatix:2264 failed: iface_hvx_open rc 0 2020-05-27 15:18:54.226 606-9548/? E/QCamera: <HAL><ERROR> ProcessBuffer: 602: morhht cam_index =3 2020-05-27 15:18:54.226 606-9548/? E/QCamera: <HAL><ERROR> ProcessBuffer: 605: morhht y_weight= 0.0 ,c_weight= 0 2020-05-27 15:18:54.226 606-9548/? E/QCamera: <HAL><ERROR> ProcessBuffer: 605: morhht y_weight= 12.0 ,c_weight= 11 2020-05-27 15:18:54.226 606-9548/? E/QCamera: <HAL><ERROR> ProcessBuffer: 605: morhht y_weight= 8.0 ,c_weight= 9 2020-05-27 15:18:54.226 606-9548/? E/QCamera: <HAL><ERROR> ProcessBuffer: 605: morhht y_weight= 5.0 ,c_weight= 7 2020-05-27 15:18:54.226 606-9548/? E/QCamera: <HAL><ERROR> ProcessBuffer: 605: morhht y_weight= 3.0 ,c_weight= 4 2020-05-27 15:18:54.226 606-9548/? E/QCamera: <HAL><ERROR> ProcessBuffer: 605: morhht y_weight= 3.0 ,c_weight= 3 2020-05-27 15:18:54.226 606-9548/? E/QCamera: <HAL><ERROR> ProcessBuffer: 605: morhht y_weight= 1.0 ,c_weight= 2 2020-05-27 15:18:54.226 606-9548/? E/QCamera: <HAL><ERROR> ProcessBuffer: 605: morhht y_weight= 1.0 ,c_weight= 2 2020-05-27 15:18:54.258 606-9481/? E/mm-camera: <STATS_AEC ><ERROR> 579: aec_led_cal_apply_calibration: Calibrate data size 0 not expected with tuning size: 0 2020-05-27 15:18:54.258 606-9482/? E/mm-camera: <STATS_AF ><ERROR> 874: af_haf_util_update_force_scan_end_params: force scan timeout enabled,max th: 40 2020-05-27 15:18:54.260 606-9466/? E/mm-camera: <IFACE ><ERROR> 2264: iface_util_set_chromatix: iface_util_set_chromatix:2264 failed: iface_hvx_open rc 0 2020-05-27 15:18:54.313 606-9482/? E/mm-camera: <STATS_AF ><ERROR> 874: af_haf_util_update_force_scan_end_params: force scan timeout enabled,max th: 40 2020-05-27 15:18:54.318 606-9481/? E/mm-camera: <STATS_AEC ><ERROR> 579: aec_led_cal_apply_calibration: Calibrate data size 0 not expected with tuning size: 0 2020-05-27 15:18:54.320 606-9466/? E/mm-camera: <IFACE ><ERROR> 2264: iface_util_set_chromatix: iface_util_set_chromatix:2264 failed: iface_hvx_open rc 0 2020-05-27 15:18:54.357 606-9482/? E/mm-camera: <STATS_AF ><ERROR> 874: af_haf_util_update_force_scan_end_params: force scan timeout enabled,max th: 40 2020-05-27 15:18:54.361 606-9481/? E/mm-camera: <STATS_AEC ><ERROR> 579: aec_led_cal_apply_calibration: Calibrate data size 0 not expected with tuning size: 0 2020-05-27 15:18:54.365 606-9466/? E/mm-camera: <IFACE ><ERROR> 2264: iface_util_set_chromatix: iface_util_set_chromatix:2264 failed: iface_hvx_open rc 0 2020-05-27 15:18:54.366 9802-9802/? E/d.process.acor: Not starting debugger since process cannot load the jdwp agent. 2020-05-27 15:18:54.408 1677-2197/? E/InputDispatcher: channel 'a704e56 es.inforapps.alkinder/es.inforapps.alkinder.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 2020-05-27 15:18:54.417 606-9481/? E/mm-camera: <STATS_AEC ><ERROR> 579: aec_led_cal_apply_calibration: Calibrate data size 0 not expected with tuning size: 0 2020-05-27 15:18:54.417 606-9466/? E/mm-camera: <IFACE ><ERROR> 2264: iface_util_set_chromatix: iface_util_set_chromatix:2264 failed: iface_hvx_open rc 0 2020-05-27 15:18:54.417 606-9482/? E/mm-camera: <STATS_AF ><ERROR> 874: af_haf_util_update_force_scan_end_params: force scan timeout enabled,max th: 40 2020-05-27 15:18:54.465 1677-1833/? E/libprocessgroup: Error encountered killing process cgroup uid 99037 pid 9109: No such file or directory 2020-05-27 15:18:54.536 1677-1835/? E/KernelCpuSpeedReader: Failed to read cpu-freq: /sys/devices/system/cpu/cpu4/cpufreq/stats/time_in_state (No such file or directory) 2020-05-27 15:18:54.536 1677-1835/? E/KernelCpuSpeedReader: Failed to read cpu-freq: /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state (No such file or directory) 2020-05-27 15:18:54.674 606-9548/? E/QCamera: <HAL><ERROR> ProcessBuffer: 706: hht ProcessBuffer 706 LINK_morpho_lowlight_finalize error = 0 2020-05-27 15:18:54.740 9802-9802/? E/libc: Access denied finding property "ro.vendor.display.type" 2020-05-27 15:18:54.786 606-9783/? E/QCamera: <HAL><ERROR> handleInputBufferWithLock: 6109: Could not find input request for frame number 873 2020-05-27 15:18:54.927 606-9834/? E/mm-still: EncodeComplete:945] Exif length: 3704 2020-05-27 15:18:55.243 9841-9841/? E/ti.diagservice: Not starting debugger since process cannot load the jdwp agent. 2020-05-27 15:18:55.452 9841-9841/? E/DiagJNIInterface: Trying to load libDiagService
Verbose logcat:
2020-05-27 15:18:52.634 9668-9668/? D/SigquitBasedANRDetector: Registered 2020-05-27 15:18:52.653 9668-9668/? D/SigquitBasedANRDetector: Initialized 2020-05-27 15:18:52.662 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:52.662 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:52.663 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:52.663 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:52.663 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:52.663 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:52.663 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:52.712 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:52.713 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:52.713 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:52.713 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:52.714 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:52.714 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:52.714 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:52.763 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:52.763 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:52.764 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:52.764 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:52.764 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:52.764 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:52.764 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:52.813 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:52.814 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:52.815 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:52.815 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:52.815 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:52.815 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:52.815 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:52.825 606-9482/? I/mm-camera: <STATS_AF >< INFO> 439: af_util_done: MainCamera=1 final lens pos 441 2020-05-27 15:18:52.862 7401-7815/? D/CAM_MiCamera2: afState changed from 1 to 2 2020-05-27 15:18:52.869 7401-7815/? D/CAM_FocusTask: warning. set the focus result before the request is processed. 2020-05-27 15:18:52.869 7401-7401/? V/CAM_FocusManager: focusResult: 2|true|false|1 2020-05-27 15:18:52.869 7401-7401/? D/CAM_FocusManager: getFocusMode=continuous-picture 2020-05-27 15:18:52.869 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:52.869 7401-7401/? D/CAM_FocusManager: onAutoFocusMoving: mode=continuous-picture show=true 2020-05-27 15:18:52.869 7401-7401/? D/CAM_FocusManager: getFocusMode=continuous-picture 2020-05-27 15:18:52.869 7401-7401/? V/CAM_FocusManager: Camera KPI: CAF stop: Focus time: 1398 2020-05-27 15:18:52.869 7401-7401/? V/CAM_FocusManager: setFocusState: 3 2020-05-27 15:18:52.869 7401-7401/? D/CAM_FocusView: showSuccess 2020-05-27 15:18:52.869 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:52.870 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:52.870 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:52.870 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:52.870 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:52.871 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:52.914 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:52.914 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:52.916 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:52.916 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:52.916 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:52.917 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:52.917 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:52.964 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:52.965 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:52.966 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:52.966 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:52.966 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:52.966 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:52.966 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.015 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.015 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.016 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:53.017 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:53.017 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:53.017 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.017 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.032 9668-9668/? I/SigquitBasedANRDetector: Function _ZN3art13SignalCatcher6OutputERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE hooked with result=0 2020-05-27 15:18:53.032 9668-9668/? D/SigquitBasedANRDetector: Detector started 2020-05-27 15:18:53.066 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.066 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.067 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:53.067 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:53.067 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:53.067 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.068 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.116 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.116 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.117 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:53.117 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:53.117 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:53.117 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.117 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.121 9668-9668/? D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization. 2020-05-27 15:18:53.122 9668-9668/? D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization. 2020-05-27 15:18:53.127 9668-9668/? D/FirebaseApp: com.google.android.gms.measurement.AppMeasurement is not linked. Skipping initialization. 2020-05-27 15:18:53.128 9668-9668/? I/FirebaseInitProvider: FirebaseApp initialization successful 2020-05-27 15:18:53.167 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.168 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.168 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:53.169 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:53.169 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:53.169 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.169 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.194 9668-9668/? D/SoLoader: init start 2020-05-27 15:18:53.194 9668-9668/? D/SoLoader: adding system library source: /vendor/lib 2020-05-27 15:18:53.194 9668-9668/? D/SoLoader: adding system library source: /system/lib 2020-05-27 15:18:53.195 9668-9668/? D/SoLoader: adding application source: X.26r[root = /data/app/com.whatsapp-FceGevmG1kBnw-sDn8hUBQ==/lib/arm64 flags = 0] 2020-05-27 15:18:53.197 9668-9668/? D/SoLoader: adding backup source from : X.2iE[root = /data/data/com.whatsapp/lib-main flags = 1] 2020-05-27 15:18:53.198 9668-9668/? D/SoLoader: Preparing SO source: X.26r[root = /system/lib flags = 2] 2020-05-27 15:18:53.200 9668-9668/? D/SoLoader: Preparing SO source: X.26r[root = /vendor/lib flags = 2] 2020-05-27 15:18:53.200 9668-9668/? D/SoLoader: Preparing SO source: X.26r[root = /data/app/com.whatsapp-FceGevmG1kBnw-sDn8hUBQ==/lib/arm64 flags = 0] 2020-05-27 15:18:53.200 9668-9668/? D/SoLoader: Preparing SO source: X.2iE[root = /data/data/com.whatsapp/lib-main flags = 1] 2020-05-27 15:18:53.202 9668-9668/? V/fb-UnpackingSoSource: locked dso store /data/user/0/com.whatsapp/lib-main 2020-05-27 15:18:53.207 9668-9668/? I/fb-UnpackingSoSource: dso store is up-to-date: /data/user/0/com.whatsapp/lib-main 2020-05-27 15:18:53.207 9668-9668/? V/fb-UnpackingSoSource: releasing dso store lock for /data/user/0/com.whatsapp/lib-main 2020-05-27 15:18:53.207 9668-9668/? D/SoLoader: init finish: 4 SO sources prepared 2020-05-27 15:18:53.207 9668-9668/? D/SoLoader: init exiting 2020-05-27 15:18:53.208 9668-9668/? D/SoLoader: Prepending to SO sources: X.26r[root = /data/data/com.whatsapp/files/decompressed/libs.spk.zst flags = 1] 2020-05-27 15:18:53.208 9668-9668/? D/SoLoader: Prepended to SO sources: X.26r[root = /data/data/com.whatsapp/files/decompressed/libs.spk.zst flags = 1] 2020-05-27 15:18:53.216 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.216 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.217 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:53.218 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:53.218 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:53.218 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.218 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.267 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.267 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.268 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:53.268 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:53.269 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:53.269 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.269 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.271 9668-9718/? I/DpmTcmClient: RegisterTcmMonitor from: $Proxy0 2020-05-27 15:18:53.282 9668-9668/? D/Event: No subscribers registered for event class X.0QQ 2020-05-27 15:18:53.283 9668-9668/? D/Event: No subscribers registered for event class X.0K4 2020-05-27 15:18:53.312 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.312 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.313 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:53.313 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:53.313 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:53.313 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.313 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.339 9668-9718/? D/NetworkSecurityConfig: Using Network Security Config from resource network_security_config debugBuild: false 2020-05-27 15:18:53.366 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.366 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.367 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:53.367 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:53.367 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:53.367 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.368 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.417 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.417 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.419 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:53.419 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:53.420 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:53.420 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.420 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.462 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.462 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.463 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:53.463 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:53.464 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:53.464 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.464 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.518 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.519 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.519 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:53.520 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:53.520 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:53.520 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.520 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.563 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.564 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.565 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:53.566 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:53.566 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:53.566 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.567 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.567 1677-2931/? D/BaseLooper: dump anr message took 3ms 2020-05-27 15:18:53.618 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.618 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.619 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:53.619 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:53.619 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:53.619 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.619 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.665 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.665 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.667 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:53.667 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:53.667 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:53.668 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.668 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.670 7401-7401/? D/CAM_FocusView: msg=5 true 2020-05-27 15:18:53.694 9668-9668/? D/Event: No subscribers registered for event class X.0QQ 2020-05-27 15:18:53.694 9668-9668/? D/Event: No subscribers registered for event class X.0K4 2020-05-27 15:18:53.715 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.716 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.717 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:53.718 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:53.718 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:53.718 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.718 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.766 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.766 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.767 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:53.767 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:53.767 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:53.768 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.768 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.811 642-642/? I//vendor/bin/hw/[email protected]: bindService is called for service : com.whatsapp/.AlarmService and for client system 2020-05-27 15:18:53.811 642-642/? I//vendor/bin/hw/[email protected]: total connections for service : com.whatsapp/.AlarmServiceare :1 2020-05-27 15:18:53.811 642-642/? I//vendor/bin/hw/[email protected]: total connections for client : systemare :20 2020-05-27 15:18:53.818 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.818 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.819 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist. 2020-05-27 15:18:53.819 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected 2020-05-27 15:18:53.819 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false 2020-05-27 15:18:53.819 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist. 2020-05-27 15:18:53.819 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion 2020-05-27 15:18:53.824 1677-2931/? D/CompatibilityInfo: mCompatibilityFlags - 0 2020-05-27 15:18:53.824 1677-2931/? D/CompatibilityInfo: applicationDensity - 440 2020-05-27 15:18:53.824 1677-2931/? D/CompatibilityInfo: applicationScale - 1.0 2020-05-27 15:18:53.827 642-642/? I//vendor/bin/hw/[email protected]: startService() is called for servicecom.whatsapp/.AlarmService 2020-05-27 15:18:53.863 7401-7401/? D/CAM_Camera@87410256: onUserInteraction
--------- beginning of system
2020-05-27 15:18:53.864 1677-2673/? W/MiuiGesturePointerEventListener: onActionDown end: mGestureStatus = 0
2020-05-27 15:18:53.865 7401-7401/? D/ViberatorContext: performSnapClick: ignore...
2020-05-27 15:18:53.867 7401-7401/? D/CAM_CameraSnapView: snap click action_down
2020-05-27 15:18:53.867 7401-7401/? D/CAM_FragmentBottomActio: onSnapPrepare
2020-05-27 15:18:53.871 9668-9773/? D/WM-PackageManagerHelper: androidx.work.impl.background.systemjob.SystemJobService enabled
2020-05-27 15:18:53.871 9668-9773/? D/WM-Schedulers: Created SystemJobScheduler and enabled SystemJobService
2020-05-27 15:18:53.874 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist.
2020-05-27 15:18:53.874 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion
2020-05-27 15:18:53.875 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist.
2020-05-27 15:18:53.875 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected
2020-05-27 15:18:53.875 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false
2020-05-27 15:18:53.875 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist.
2020-05-27 15:18:53.875 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion
2020-05-27 15:18:53.879 9668-9775/? D/WM-ForceStopRunnable: Performing cleanup operations.
2020-05-27 15:18:53.915 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist.
2020-05-27 15:18:53.916 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion
2020-05-27 15:18:53.916 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist.
2020-05-27 15:18:53.917 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected
2020-05-27 15:18:53.917 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false
2020-05-27 15:18:53.917 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist.
2020-05-27 15:18:53.917 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion
2020-05-27 15:18:53.927 7401-7401/? D/CAM_HybridZoomingSystem: setZoomingSourceIdentity(): 0
2020-05-27 15:18:53.927 7401-7401/? D/CAM_CameraSnapView: snap click action_up
2020-05-27 15:18:53.927 7401-7401/? D/ViberatorContext: performSnapClick: ignore...
2020-05-27 15:18:53.928 7401-7401/? D/CAM_FragmentBottomActio: onSnapClick
2020-05-27 15:18:53.928 7401-7401/? I/CAM_Storage: getLeftSpace() return 13686194176
2020-05-27 15:18:53.928 7401-7401/? D/CAM_Camera2Module: onShutterButtonClick 1
2020-05-27 15:18:53.928 7401-7401/? D/CAM_FocusManager: getFocusMode=continuous-picture
2020-05-27 15:18:53.928 7401-7401/? V/CAM_FocusManager: prepareCapture: false|2|continuous-picture
2020-05-27 15:18:53.928 7401-7401/? D/CAM_FocusManager: getFocusMode=continuous-picture
2020-05-27 15:18:53.929 7401-7401/? D/CAM_Camera2Module: startNormalCapture mode -> 10
2020-05-27 15:18:53.929 7401-7401/? D/CAM_Camera2Module: prepareNormalCapture
2020-05-27 15:18:53.929 7401-7401/? D/CAM_BaseModule: setCameraState: 3
2020-05-27 15:18:53.929 7401-7401/? D/CAM_Camera2Module: prepareNormalCapture: mOrientation = 0, mJpegRotation = 90
2020-05-27 15:18:53.931 7401-7401/? D/CAM_MiCamera2: setFrontMirror: false
2020-05-27 15:18:53.931 7401-7401/? D/CAM_Camera2Module: updateBeauty(): 3d beauty level: i:0 | ss: 0 |sf: 0 | ee: 0 | ns: 0 | rs: 0 | lp: 0 | cn: 0 | nk: 0 | se: 0 | sn: 0 | hl: 0 |ed: 0 | pl: 0 | jl: 0 | blusher: 0| headSlim: 0 | bodySlim: 0 | shoulderSlim: 0 | legSlim: 0
2020-05-27 15:18:53.931 7401-7401/? D/CAM_Camera2Module: enableParallel=false mEnableShot2Gallery=false shotType=-2
2020-05-27 15:18:53.931 7401-7401/? D/CAM_MiCamera2: setShotType: algo=-2
2020-05-27 15:18:53.931 7401-7401/? D/CAM_MiCamera2: setShot2Gallery: isShot2Gallery=false
2020-05-27 15:18:53.931 7401-7401/? D/CAM_MiCamera2: setShotSavePath: /storage/emulated/0/DCIM/Camera/IMG_20200527_151853.jpg, isParallel:false
2020-05-27 15:18:53.932 7401-7401/? D/CAM_CameraConfigs: setShotPath: /storage/emulated/0/DCIM/Camera/IMG_20200527_151853.jpg
2020-05-27 15:18:53.932 7401-7401/? D/CAM_ComponentConfigFilt: getComponentValue: isClosed(mode) = false, mode = 163
2020-05-27 15:18:53.933 7401-7401/? D/CAM_CameraSettings: getShaderEffect: mode = 163, value = 66048
2020-05-27 15:18:53.933 7401-7401/? D/CAM_ComponentConfigFilt: getComponentValue: isClosed(mode) = false, mode = 163
2020-05-27 15:18:53.933 7401-7401/? V/CAM_MiCamera2: takePicture
2020-05-27 15:18:53.933 7401-7401/? D/CAM_MiCamera2: startShot holder: 108566068
2020-05-27 15:18:53.933 7401-7401/? V/CAM_Camera2Module: mShutterLag = 4ms
2020-05-27 15:18:53.933 7401-7401/? D/CAM_CameraScreenNail: requestReadPixels state=0
2020-05-27 15:18:53.933 7401-7401/? D/CAM_Camera2Module: onCaptureStart: inputSize = 4000x3000
2020-05-27 15:18:53.933 7401-7401/? D/CAM_Camera2Module: isIn3OrMoreSatMode: opMode=0x8001 isIn3OrMore=true
2020-05-27 15:18:53.933 7401-7401/? D/CAM_Camera2Module: onCaptureStart: outputSize = 4000x3000
2020-05-27 15:18:53.934 7401-7401/? D/CAM_Camera2Module: getOperatingMode: operatingMode = 0x8001
2020-05-27 15:18:53.934 7401-7401/? D/CAM_ComponentConfigFilt: getComponentValue: isClosed(mode) = false, mode = 163
2020-05-27 15:18:53.934 7401-7401/? D/CAM_CameraSettings: getShaderEffect: mode = 163, value = 66048
2020-05-27 15:18:53.934 7401-7401/? D/CAM_ComponentConfigFilt: getComponentValue: isClosed(mode) = false, mode = 163
2020-05-27 15:18:53.934 7401-9454/? V/CAM_RawTexture: prepare textureSize=720x960 id=4
2020-05-27 15:18:53.934 7401-7401/? D/CAM_CameraCapabilities: isAdaptiveSnapshotSizeInSatModeSupported(): false
2020-05-27 15:18:53.934 7401-7401/? D/CAM_Camera2Module: onCaptureStart: isParallel = false, shotType = -2, isLiveShot = false
2020-05-27 15:18:53.935 7401-9454/? V/CAM_FrameBuffer: init@1: fbo=3 tex=4 720*960 thread=89525
2020-05-27 15:18:53.935 606-29140/? E/CamComm1.0-MD: Mismatched tag type when updating entry enable (-2146762752) of type byte; got type int32 data instead
2020-05-27 15:18:53.935 606-29140/? E/CamComm1.0-MD: Mismatched tag type when updating entry is_main (-2146762751) of type byte; got type int32 data instead
2020-05-27 15:18:53.944 7401-7401/? D/CAM_MiCamera2ShotStill: size=4000x3000
2020-05-27 15:18:53.944 7401-7401/? D/CAM_MiCamera2: applyFlashMode: request = android.hardware.camera2.CaptureRequest$Builder@f53fc5d, applyType = 3
2020-05-27 15:18:53.944 7401-7401/? D/CAM_MiCamera2: applyFlashMode: flashMode = 0, mScreenLightCallback = com.android.camera.module.Camera2Module@dc8e3ba
2020-05-27 15:18:53.944 7401-7401/? D/CAM_CaptureRequestBuild: applyScreenLightHint(): unsupported
2020-05-27 15:18:53.945 7401-7401/? D/CAM_CaptureRequestBuild: applyExposureCompensation: 0
2020-05-27 15:18:53.945 7401-7401/? D/CAM_HybridZoomingSystem: toCropRegion(): zoom ratio = 1.0, crop region = Rect(0, 0 - 4000, 3000)
2020-05-27 15:18:53.945 7401-7401/? V/CAM_CaptureRequestBuild: applyZoomRatio(): cameraId = 0, zoomRatio = 1.0, activeArraySize = Rect(8, 8 - 4008, 3008), cropRegion = Rect(0, 0 - 4000, 3000)
2020-05-27 15:18:53.949 7401-7401/? D/CAM_CaptureRequestBuild: applyAELock: false
2020-05-27 15:18:53.949 7401-7401/? D/CAM_CaptureRequestBuild: applyAWBLock: false
2020-05-27 15:18:53.951 7401-7401/? D/CAM_CaptureRequestBuild: applyWaterMark appliedList:
2020-05-27 15:18:53.951 7401-7401/? D/CAM_CaptureRequestBuild: applySuperNightScene: false
2020-05-27 15:18:53.951 7401-7401/? D/CAM_CaptureRequestBuild: applySuperResolution: false, applyType = 3
2020-05-27 15:18:53.951 7401-7401/? D/CAM_CaptureRequestBuild: applyMfnrEnable: false
2020-05-27 15:18:53.951 7401-7401/? D/CAM_CaptureRequestBuild: applySwMfnrEnable: true
2020-05-27 15:18:53.952 7401-7401/? D/CAM_CaptureRequestBuild: applyMiBokeh: false
2020-05-27 15:18:53.952 7401-7401/? D/CAM_CaptureRequestBuild: applyFrontMirror: false
2020-05-27 15:18:53.952 7401-7401/? D/CAM_CameraCapabilities: isSupportNormalWideLDC: false
2020-05-27 15:18:53.952 7401-7401/? D/CAM_CameraCapabilities: isSupportUltraWideLDC: true
2020-05-27 15:18:53.952 7401-7401/? D/CAM_MiCameraCompat: applyUltraWideLDC: false
2020-05-27 15:18:53.952 7401-7401/? D/CAM_MiCamera2: jpegRotation=90
2020-05-27 15:18:53.952 7401-7401/? V/CAM_CaptureRequestBuild: applyZsl(): true
2020-05-27 15:18:53.953 7401-7401/? V/CAM_CaptureRequestBuild: EIS: off
2020-05-27 15:18:53.953 7401-7401/? D/CAM_CaptureRequestBuild: applyFpsRange: fpsRange = null
2020-05-27 15:18:53.953 7401-7401/? D/CAM_CaptureRequestBuild: applyDepurpleEnable: isSupport = true, enadled = true
2020-05-27 15:18:53.953 7401-7401/? D/CAM_CaptureRequestBuild: applyBackwardCaptureHint(): unsupported
2020-05-27 15:18:53.953 7401-7401/? I/CAM_[PERFORMANCE]: [ PictureTaken][START][1590585533953]
2020-05-27 15:18:53.958 7401-9454/? D/CAM_CameraScreenNail: draw: state=STATE_READ_PIXELS mReadPixelsNum=0
2020-05-27 15:18:53.964 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist.
2020-05-27 15:18:53.965 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion
2020-05-27 15:18:53.972 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist.
2020-05-27 15:18:53.976 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected
2020-05-27 15:18:53.977 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false
2020-05-27 15:18:53.977 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist.
2020-05-27 15:18:53.977 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion
2020-05-27 15:18:53.986 7401-7414/? W/System: A resource failed to call release.
2020-05-27 15:18:54.014 7401-7815/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist.
2020-05-27 15:18:54.015 7401-7815/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion
2020-05-27 15:18:54.017 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'hdrmotionDetected' does not exist.
2020-05-27 15:18:54.017 7401-7423/? W/VendorTagHelper: caution: failed to try get value from capture result: <VTNF>, xiaomi.ai.misd.hdrmotionDetected
2020-05-27 15:18:54.017 7401-7423/? D/CAM_CameraCapabilities: isMotionDetectionSupported(): false
2020-05-27 15:18:54.018 7401-7423/? I/VendorTagDescriptor: lookupTag: Tag name 'MiAlgoAsdVersion' does not exist.
2020-05-27 15:18:54.018 7401-7423/? W/VendorTagHelper: caution: failed to try get value from camera characteristics: <VTNF>, xiaomi.ai.misd.MiAlgoAsdVersion
2020-05-27 15:18:54.026 642-642/? I//vendor/bin/hw/[email protected]: unbindService is called for service : com.whatsapp/.AlarmService and for client system
2020-05-27 15:18:54.027 642-642/? I//vendor/bin/hw/[email protected]: size of service connections for service: com.whatsapp/.AlarmServiceafter removal is 0
2020-05-27 15:18:54.028 642-642/? I//vendor/bin/hw/[email protected]: size of client connections for client: systemafter removal is 19
2020-05-27 15:18:54.029 642-642/? I//vendor/bin/hw/[email protected]: destroyService is called for service : com.whatsapp/.AlarmService
2020-05-27 15:18:54.030 606-32191/? I/QCamera: <HAL><INFO> translateToHalMetadata: 18327: Saturation value use_saturation 5
2020-05-27 15:18:54.032 606-9465/? I/mm-camera: <MCT >< INFO> 4225: mct_pipeline_process_set: command=800000a
2020-05-27 15:18:54.033 642-642/? I//vendor/bin/hw/[email protected]: bindService is called for service : com.whatsapp/.util.crash.JavaCrashesUploadService and for client system
2020-05-27 15:18:54.033 642-642/? I//vendor/bin/hw/[email protected]: total connections for service : com.whatsapp/.util.crash.JavaCrashesUploadServiceare :1
2020-05-27 15:18:54.033 642-642/? I//vendor/bin/hw/[email protected]: total connections for client : systemare :20
2020-05-27 15:18:54.037 1677-2654/? D/CompatibilityInfo: mCompatibilityFlags - 0
2020-05-27 15:18:54.037 1677-2654/? D/CompatibilityInfo: applicationDensity - 440
2020-05-27 15:18:54.037 1677-2654/? D/CompatibilityInfo: applicationScale - 1.0
2020-05-27 15:18:54.038 642-642/? I//vendor/bin/hw/[email protected]: startService() is called for servicecom.whatsapp/.util.crash.JavaCrashesUploadService
2020-05-27 15:18:54.038 606-9465/? I/mm-camera: <MCT >< INFO> 4225: mct_pipeline_process_set: command=8000018
2020-05-27 15:18:54.038 606-9465/? I/mm-camera: <MCT >< INFO> 633: mct_stream_start_link: Start linking offline stream 0x30005
2020-05-27 15:18:54.038 606-9465/? I/mm-camera: <MCT >< INFO> 704: mct_stream_start_link: iface=0x0, isp=0x0, pproc=0xecfed180, imglib=0x0
2020-05-27 15:18:54.038 606-9465/? I/mm-camera: <PPROC >< INFO> 449: pproc_port_add_modules_to_stream: in identity 30005 stream 9 int_link = 0xdf277200
2020-05-27 15:18:54.038 606-9465/? I/mm-camera: <PPROC >< INFO> 461: pproc_port_add_modules_to_stream: :LINK linking mods tmod and cpp for identity 30005
2020-05-27 15:18:54.038 606-9465/? I/mm-camera: <CPP >< INFO> 3709: cpp_module_util_update_dim: offset_x 0, offset_y 0, offset 0, meta_len 0,meta_scanline 0, meta_stride 0, plane_len 12128256
2020-05-27 15:18:54.038 606-9465/? I/mm-camera: <CPP >< INFO> 3709: cpp_module_util_update_dim: offset_x 0, offset_y 0, offset 0, meta_len 0,meta_scanline 0, meta_stride 0, plane_len 6064128
2020-05-27 15:18:54.038 606-9465/? I/mm-camera: <CPP >< INFO> 2513: cpp_module_notify_add_stream: :stream 9, width 4000, height 3000, stride 4032,scanline 3008, framelen 18194432
2020-05-27 15:18:54.038 606-9465/? I/mm-camera: <CPP >< INFO> 2670: cpp_module_notify_add_stream: : stream 9, fmt 2, asf_mode 0, sharpness_level 0.000000,asf mask 1, denoise 0, denoise_mask 1, dsdn mask 1,dsdn enable 0, tnr mask 0, tnr enable 0, ds_mask 0, luma dsdn 0
2020-05-27 15:18:54.038 606-9465/? I/mm-camera: <MCT >< INFO> 802: mct_stream_start_link: Linking single module
2020-05-27 15:18:54.038 606-9465/? I/mm-camera: <MCT >< INFO> 810: mct_stream_start_link: single_module=0xecfed180
2020-05-27 15:18:54.038 606-9465/? I/mm-camera: <MCT >< INFO> 4323: mct_pipeline_process_set: Linking successful for stream 0x30005 stream type=9
2020-05-27 15:18:54.038 9668-9766/? D/WhatsApp: LL_D W [89618:ConnectionThread] RECV
https://capacitor.ionicframework.com/docs/apis/camera There is information about this in the documentation
Additionally, because the Camera API launches a separate Activity to handle taking the photo, you should listen for appRestoredResult in the App plugin to handle any camera data that was sent in the case your app was terminated by the operating system while the Activity was running.
I tried the appRestoredResult event, but it is impossible to obtain the page where user is taken the picture. The app has several pages where user can take photos.
https://capacitor.ionicframework.com/docs/apis/camera There is information about this in the documentation
Additionally, because the Camera API launches a separate Activity to handle taking the photo, you should listen for appRestoredResult in the App plugin to handle any camera data that was sent in the case your app was terminated by the operating system while the Activity was running.
I tried the appRestoredResult event, but it is impossible to obtain the page where user is taken the picture. The app has several pages where user can take photos.
Yes, I hate this...
You need to serialize the app state by yourself. I made a method called OnBeforePhoto, I use it to serialize what I want to keep(Url, Modals, Methods, etc ...) in localstorage. Then if the app returns something in the appRestoredResult I check the localstorage to get the previous state of the app.
This apprestoredResult only should be used on low-end devices, which don't have large memory.
but, it is happening on the device with 3gb RAM also. is it not a bug in a capacitor?
This apprestoredResult only should be used on low-end devices, which don't have large memory.
but, it is happening on the device with 3gb RAM also. is it not a bug in a capacitor?
It is an android behavior, and manufacturers can modify this behavior. In our app it happens a lot with the Moto G7(4GB of RAM) but it doesn't happen in the Galaxy J5 PRO(2GB of RAM)
I can confirm this has happened to me Xiaomi 8a & Huawei P9 Lite, android 6
will this be addressed? All my components which uses camera are broken right now, my clients can't use camera functionality because of this. I'm not using base64 or anything
I'm not affiliated with the Capacitor team, but my personal opinion is it will never get addressed. Some phone manufacturers are doing aggressive memory management and they would terminate suspended apps very quickly to save memory. Since an Android intent is called in this case which practically launches the camera app it pushes your Capacitor app to the background and chances are it will be terminated by the OS sooner or later. I almost abandoned the Ionic platform because of this problem and looked into the way Flutter and React Native are handling this and found they suffer from the same issue. You can switch to native Android development but probably there is a good reason for you to use a hybrid framework so it is not an ideal solution. You can listen to the appRestoredResult event as some of the commenters mentioned above but honestly I'm taking photos in the middle of complex workflows so I did not like the idea. That's when I came across the camera-preview plugin, actually I'm using the Cordova version but as far as I can see there is a Capacitor version too. The advantage of using that plugin is it is running on the main thread of your app so it won't kill the app, however you need to provide a camera GUI which is a cumbersome task to do given absolutely positioned elements, different screen sizes, portrait/landscape orientation changes and devices with/without notches. Anyway, we put some time into developing a GUI, it is far from being perfect but at least we rarely get a camera crash report. Other downside is the camera preview plugin can only recognize front and back cameras and no option to cycle through a number of back cameras (close-up, telephoto, etc). If you can live with these limitations and willing to develop a custom camera GUI you can give the camera-preview plugin a go. Otherwise I suggest leveraging a state management solution and the appRestoredResult event.
@battika I'm assuming your app has support for taking pictures, but doesn't allow users to pick existing ones from storage. That flow faces the same issue and I don't think there's an alternate solution like you've implemented with camera-preview plugin.
I think this should be highlighted more prominently in the documentation along with suggestions on how to actually manage it.
@a-uz you are correct, I only allow users to take pictures as my app requires real-time pictures. Using the gallery option is most likely having the same issue however there are other plugins for image picking too. I will actually start experimenting with the appRestoredResult event and NGXS state management once I start converting the my Ionic 2 app to the latest version. Hope I can come up with a solution good enough for the client. However on one occasion users need to take 4 different pictures on a single page and I'm not sure how my app will look UX-wise if it restarts 4 times on a single page :) Anyway, I shall see...
Hello. Has anyone found a solution for this? I'm experiencing the same issue when taking a photo or picking a photo from the Library collection. The app restarting itself. I've tested on Emulators, Galaxy Tab A, Galaxy S10+
I've hit this one too during app development. While I have state management set up, I still end up losing the photo that was taken when the app restarted and I've tried putting listeners on the 'appRestoredResult' and it's not giving me any data back according to the logs.
Going to try the Preview approach since I don't need library support for photos.
I am facing similar issue https://github.com/ionic-team/capacitor/issues/4130
@joaolnpr Have you resolved this issue ?
This issues will never gets fixed, it has been around for years and it is one of the main drawbacks of the hybrid approach. Once the app goes into the background,
I'm not affiliated with the Capacitor team, but my personal opinion is it will never get addressed. Some phone manufacturers are doing aggressive memory management and they would terminate suspended apps very quickly to save memory. Since an Android intent is called in this case which practically launches the camera app it pushes your Capacitor app to the background and chances are it will be terminated by the OS sooner or later. I almost abandoned the Ionic platform because of this problem and looked into the way Flutter and React Native are handling this and found they suffer from the same issue. You can switch to native Android development but probably there is a good reason for you to use a hybrid framework so it is not an ideal solution. You can listen to the appRestoredResult event as some of the commenters mentioned above but honestly I'm taking photos in the middle of complex workflows so I did not like the idea. That's when I came across the camera-preview plugin, actually I'm using the Cordova version but as far as I can see there is a Capacitor version too. The advantage of using that plugin is it is running on the main thread of your app so it won't kill the app, however you need to provide a camera GUI which is a cumbersome task to do given absolutely positioned elements, different screen sizes, portrait/landscape orientation changes and devices with/without notches. Anyway, we put some time into developing a GUI, it is far from being perfect but at least we rarely get a camera crash report. Other downside is the camera preview plugin can only recognize front and back cameras and no option to cycle through a number of back cameras (close-up, telephoto, etc). If you can live with these limitations and willing to develop a custom camera GUI you can give the camera-preview plugin a go. Otherwise I suggest leveraging a state management solution and the appRestoredResult event.
@battika 100% true, on Cordova this bug has been around for years but it cannot be fixed. Once the activity goes in the background, it is goodnight. I am curious to know why Flutter for example faces the same issue. Is it calling the camera as an intent? I was under the impression it was talking to the camera API directly. I could only find app restarts related to the image picker plugin on Flutter https://github.com/flutter/flutter/issues/59395. Interesting the camera-preview approach. I will give it a try.
For anyone still wondering with this. Before transitioning to camera you can start a foreground service, that way is less likely android will reclaim resources from your app. Once the photo has been taken, you can dismiss it. It might be a bit dirty but I don't think of anything else at the moment.
@dalepo like this? https://ionicframework.com/docs/native/foreground-service
@dalepo like this? https://ionicframework.com/docs/native/foreground-service
Yes
A quick heads up: as of Capacitor 3.2.3 the following solution works for me (for both Camera and Gallery sources):
https://gist.github.com/squio/1ff10bcca2aa1427a919e1c35cbc82fb
Capacitor versions before 3.2.3 had a bug (now fixed) which prevented the restored result from working
Using a foreground service is causing crashes on some devices, see
https://github.com/DavidBriglio/cordova-plugin-foreground-service/issues/19
https://github.com/DavidBriglio/cordova-plugin-foreground-service/issues/20
@dalepo
Hey guys, we have the same issues with a Xiaomi Redmi device. The app is developed in Unity and runs the native camera app. After locking the app on the device using this guide, the problem is not more there: https://www.xiaomist.com/2020/12/prevent-your-xiaomi-applications-from.html
So, the app does not restart when the User takes a picture. Remaining question: is it possible to mark the app as "locked" on Android programmatically. Or maybe somehow ask the user to set it, like requesting a permission.
@khindemit it will crash at some point even by locking, at least that is what we experienced on our app.
Still facing the issue. Any news, guys?
This isn't actually a bug but the way Android is supposed to work; it only happens in conditions where memory is limited.
This is documented with a hint for the correct work around as mentioned here: https://github.com/ionic-team/capacitor/issues/2931#issuecomment-632280083
For some almost cut n paste ready snippets see my gist over here: https://gist.github.com/squio/1ff10bcca2aa1427a919e1c35cbc82fb - works for our app (in production).
@squio Memory does not have anything to do with this issue, it is the way background tasks are dealt with in some roms. A more aggressive approach like on Xiaomi (but also the latest Samsung, Huawei etc..) kills the app when it goes to the background. It is not limited to photo taking, any background task can be killed at random if it is not a system app or a popular app the manufacturer decided to whitelist. More info https://dontkillmyapp.com/
One (almost) working solution is launching a foreground task when taking a picture, so it is less likely the app gets killed.
Endless thread here https://github.com/apache/cordova-plugin-camera/issues/345