[One (M9) Original Android Development] 1234What:
There is a problem in camera app when using SD card as storage

I get blank photos after capturing and when I try to capture video, it closed

Does anyone experiencing this? or its just me?

:confused:

BTW, I'm using the latest build

Here is the log for anyone who could help

2018-10-12 19:10:44.834 5608-6000/? E/CameraStorage: Failed to write data
java.io.FileNotFoundException: /storage/66B8-3516/DCIM/Camera/IMG_20181012_191044.jpg (Permission denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:308)
at java.io.FileOutputStream.<init>(FileOutputStream.java:238)
at java.io.FileOutputStream.<init>(FileOutputStream.java:119)
at com.android.camera.exif.ExifInterface.getExifWriterStream(ExifInterface.java:991)
at com.android.camera.exif.ExifInterface.writeExif(ExifInterface.java:862)
at com.android.camera.Storage.writeFile(Storage.java:82)
at com.android.camera.Storage.addImage(Storage.java:119)
at com.android.camera.MediaSaveService$ImageSaveTask.doInBackground(MediaSaveService.java:374)
at com.android.camera.MediaSaveService$ImageSaveTask.doInBackground(MediaSaveService.java:331)
at android.os.AsyncTask$2.call(AsyncTask.java:333)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
2018-10-12 19:10:44.848 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:44.893 5608-5608/? E/CAM_PhotoModule: advancedFeature value =none
2018-10-12 19:10:45.052 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:45.152 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:45.247 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:45.347 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:45.447 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:45.550 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:45.649 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:45.749 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:45.850 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:45.947 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:46.049 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:46.150 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:46.248 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:46.349 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:46.648 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:46.751 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:46.848 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:46.948 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:47.048 553-5667/? E/ASD: asd_process_portrait_detect:945 invalid width 0 or height 0 width with asd 0xe297d000
2018-10-12 19:10:47.048 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:47.086 5608-5608/? E/CAM_PhotoModule: advancedFeature value =none
2018-10-12 19:10:47.247 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:47.749 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:47.872 5608-5608/? E/CAM_PhotoModule: advancedFeature value =none
2018-10-12 19:10:48.048 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:48.147 553-5667/? E/ASD: in_portrait:101 Face detection hasn't settled yet, do not continue
2018-10-12 19:10:48.247 553-5667/? E/ASD: asd_process_portrait_detect:935 asd_process_portrait_detect: Invalid no of faces detected. face count: 255
2018-10-12 19:10:48.348 553-5667/? E/ASD: asd_process_portrait_detect:935 asd_process_portrait_detect: Invalid no of faces detected. face count: 255
2018-10-12 19:10:48.450 553-5667/? E/ASD: asd_process_portrait_detect:935 asd_process_portrait_detect: Invalid no of faces detected. face count: 255
2018-10-12 19:10:48.549 553-5667/? E/ASD: asd_process_portrait_detect:935 asd_process_portrait_detect: Invalid no of faces detected. face count: 255
2018-10-12 19:10:48.650 553-5667/? E/ASD: asd_process_portrait_detect:935 asd_process_portrait_detect: Invalid no of faces detected. face count: 255
2018-10-12 19:10:48.731 553-5667/? E/ASD: asd_process_portrait_detect:935 asd_process_portrait_detect: Invalid no of faces detected. face count: 255
2018-10-12 19:10:48.815 553-5667/? E/ASD: asd_process_portrait_detect:935 asd_process_portrait_detect: Invalid no of faces detected. face count: 255
2018-10-12 19:10:48.889 553-5667/? E/ASD: asd_process_portrait_detect:935 asd_process_portrait_detect: Invalid no of faces detected. face count: 255
2018-10-12 19:10:48.948 5608-5608/? E/CAM_PhotoModule: advancedFeature value =none
2018-10-12 19:10:48.964 553-5667/? E/ASD: asd_process_portrait_detect:935 asd_process_portrait_detect: Invalid no of faces detected. face count: 255
2018-10-12 19:10:49.031 553-5667/? E/ASD: asd_process_portrait_detect:935 asd_process_portrait_detect: Invalid no of faces detected. face count: 255
2018-10-12 19:10:49.431 553-5667/? E/ASD: asd_process_portrait_detect:935 asd_process_portrait_detect: Invalid no of faces detected. face count: 255
2018-10-12 19:10:49.497 553-5667/? E/ASD: asd_process_portrait_detect:945 invalid width 0 or height 0 width with asd 0xe297d000
2018-10-12 19:10:49.831 553-5667/? E/ASD: asd_process_portrait_detect:945 invalid width 0 or height 0 width with asd 0xe297d000
2018-10-12 19:10:49.898 553-5667/? E/ASD: asd_process_portrait_detect:935 asd_process_portrait_detect: Invalid no of faces detected. face count: 255
2018-10-12 19:10:50.101 553-5667/? E/ASD: asd_process_portrait_detect:935 asd_process_portrait_detect: Invalid no of faces detected. face count: 255
2018-10-12 19:10:50.166 553-5667/? E/ASD: asd_process_portrait_detect:945 invalid width 0 or height 0 width with asd 0xe297d000
2018-10-12 19:10:50.498 553-5667/? E/ASD: asd_process_portrait_detect:945 invalid width 0 or height 0 width with asd 0xe297d000
2018-10-12 19:10:50.567 553-5667/? E/ASD: asd_process_portrait_detect:935 asd_process_portrait_detect: Invalid no of faces detected. face count: 255
2018-10-12 19:10:51.633 553-5667/? E/ASD: asd_process_portrait_detect:935 asd_process_portrait_detect: Invalid no of faces detected. face count: 255
2018-10-12 19:10:51.808 5608-5608/? E/CAM_VideoModule: Video dimension in App->1920x1080
2018-10-12 19:10:51.873 5608-5608/? E/CAM_VideoModule: loadCameraPreferences() updating camera_id pref
2018-10-12 19:10:53.560 5608-5608/? E/CAM_VideoModule: prepare failed for /storage/66B8-3516/DCIM/Camera/VID_20181012_191053.mp4
java.io.FileNotFoundException: /storage/66B8-3516/DCIM/Camera/VID_20181012_191053.mp4: open failed: EACCES (Permission denied)
at libcore.io.IoBridge.open(IoBridge.java:485)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:288)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:151)
at android.media.MediaRecorder.prepare(MediaRecorder.java:959)
at com.android.camera.VideoModule.initializeRecorder(VideoModule.java:1870)
at com.android.camera.VideoModule.startVideoRecording(VideoModule.java:2095)
at com.android.camera.VideoModule.onShutterButtonClick(VideoModule.java:904)
at com.android.camera.ShutterButton.performClick(ShutterButton.java:95)
at android.view.View.performClickInternal(View.java:6574)
at android.view.View.access$3100(View.java:778)
at android.view.View$PerformClick.run(View.java:25885)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)
at libcore.io.Linux.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:210)
at libcore.io.IoBridge.open(IoBridge.java:471)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:288)*
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:151)*
at android.media.MediaRecorder.prepare(MediaRecorder.java:959)*
at com.android.camera.VideoModule.initializeRecorder(VideoModule.java:1870)*
at com.android.camera.VideoModule.startVideoRecording(VideoModule.java:2095)*
at com.android.camera.VideoModule.onShutterButtonClick(VideoModule.java:904)*
at com.android.camera.ShutterButton.performClick(ShutterButton.java:95)*
at android.view.View.performClickInternal(View.java:6574)*
at android.view.View.access$3100(View.java:778)*
at android.view.View$PerformClick.run(View.java:25885)*
at android.os.Handler.handleCallback(Handler.java:873)*
at android.os.Handler.dispatchMessage(Handler.java:99)*
at android.os.Looper.loop(Looper.java:193)*
at android.app.ActivityThread.main(ActivityThread.java:6669)*
at java.lang.reflect.Method.invoke(Native Method)*
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)*
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)*
2018-10-12 19:10:53.565 5608-5608/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.lineageos.snap, PID: 5608
java.lang.RuntimeException: java.io.FileNotFoundException: /storage/66B8-3516/DCIM/Camera/VID_20181012_191053.mp4: open failed: EACCES (Permission denied)
at com.android.camera.VideoModule.initializeRecorder(VideoModule.java:1874)
at com.android.camera.VideoModule.startVideoRecording(VideoModule.java:2095)
at com.android.camera.VideoModule.onShutterButtonClick(VideoModule.java:904)
at com.android.camera.ShutterButton.performClick(ShutterButton.java:95)
at android.view.View.performClickInternal(View.java:6574)
at android.view.View.access$3100(View.java:778)
at android.view.View$PerformClick.run(View.java:25885)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: java.io.FileNotFoundException: /storage/66B8-3516/DCIM/Camera/VID_20181012_191053.mp4: open failed: EACCES (Permission denied)
at libcore.io.IoBridge.open(IoBridge.java:485)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:288)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:151)
at android.media.MediaRecorder.prepare(MediaRecorder.java:959)
at com.android.camera.VideoModule.initializeRecorder(VideoModule.java:1870)
at com.android.camera.VideoModule.startVideoRecording(VideoModule.java:2095)*
at com.android.camera.VideoModule.onShutterButtonClick(VideoModule.java:904)*
at com.android.camera.ShutterButton.performClick(ShutterButton.java:95)*
at android.view.View.performClickInternal(View.java:6574)*
at android.view.View.access$3100(View.java:778)*
at android.view.View$PerformClick.run(View.java:25885)*
at android.os.Handler.handleCallback(Handler.java:873)*
at android.os.Handler.dispatchMessage(Handler.java:99)*
at android.os.Looper.loop(Looper.java:193)*
at android.app.ActivityThread.main(ActivityThread.java:6669)*
at java.lang.reflect.Method.invoke(Native Method)*
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)*
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)*
Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)
at libcore.io.Linux.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:210)
at libcore.io.IoBridge.open(IoBridge.java:471)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:288)*
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:151)*
at android.media.MediaRecorder.prepare(MediaRecorder.java:959)*
at com.android.camera.VideoModule.initializeRecorder(VideoModule.java:1870)*
at com.android.camera.VideoModule.startVideoRecording(VideoModule.java:2095)*
at com.android.camera.VideoModule.onShutterButtonClick(VideoModule.java:904)*
at com.android.camera.ShutterButton.performClick(ShutterButton.java:95)*
at android.view.View.performClickInternal(View.java:6574)*
at android.view.View.access$3100(View.java:778)*
at android.view.View$PerformClick.run(View.java:25885)*
at android.os.Handler.handleCallback(Handler.java:873)*
at android.os.Handler.dispatchMessage(Handler.java:99)*
at android.os.Looper.loop(Looper.java:193)*
at android.app.ActivityThread.main(ActivityThread.java:6669)*
at java.lang.reflect.Method.invoke(Native Method)*
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)*
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)*