Closed espenrog closed 3 years ago
This issue has been automatically marked as stale because it has not had activity in the last 20 days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.
did you find a solution?
Describe the bug
When trying to change from jpg to dng the Demo app crashes.
To Reproduce
Steps to reproduce the behavior, possibly in the demo app:
Expected behavior
Possible to take pictures using dng picture format
XML layout
Part of the XML layout with the CameraView declaration, so we can read its attributes.
<com.otaliastudios.cameraview.CameraView xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="wrap_content" android:layout_height="wrap_content" app:cameraPictureSizeMinWidth="@integer/picture_min_width" app:cameraPictureSizeMinHeight="@integer/picture_min_height" app:cameraPictureSizeMaxWidth="@integer/picture_max_width" app:cameraPictureSizeMaxHeight="@integer/picture_max_height" app:cameraPictureSizeMinArea="@integer/picture_min_area" app:cameraPictureSizeMaxArea="@integer/picture_max_area" app:cameraPictureSizeSmallest="false|true" app:cameraPictureSizeBiggest="false|true" app:cameraPictureSizeAspectRatio="@string/video_ratio" app:cameraVideoSizeMinWidth="@integer/video_min_width" app:cameraVideoSizeMinHeight="@integer/video_min_height" app:cameraVideoSizeMaxWidth="@integer/video_max_width" app:cameraVideoSizeMaxHeight="@integer/video_max_height" app:cameraVideoSizeMinArea="@integer/video_min_area" app:cameraVideoSizeMaxArea="@integer/video_max_area" app:cameraVideoSizeSmallest="false|true" app:cameraVideoSizeBiggest="false|true" app:cameraVideoSizeAspectRatio="@string/video_ratio" app:cameraSnapshotMaxWidth="@integer/snapshot_max_width" app:cameraSnapshotMaxHeight="@integer/snapshot_max_height" app:cameraFrameProcessingMaxWidth="@integer/processing_max_width" app:cameraFrameProcessingMaxHeight="@integer/processing_max_height" app:cameraFrameProcessingFormat="@integer/processing_format" app:cameraFrameProcessingPoolSize="@integer/processing_pool_size" app:cameraFrameProcessingExecutors="@integer/processing_executors" app:cameraVideoBitRate="@integer/video_bit_rate" app:cameraAudioBitRate="@integer/audio_bit_rate" app:cameraGestureTap="none|autoFocus|takePicture" app:cameraGestureLongTap="none|autoFocus|takePicture" app:cameraGesturePinch="none|zoom|exposureCorrection|filterControl1|filterControl2" app:cameraGestureScrollHorizontal="none|zoom|exposureCorrection|filterControl1|filterControl2" app:cameraGestureScrollVertical="none|zoom|exposureCorrection|filterControl1|filterControl2" app:cameraEngine="camera1|camera2" app:cameraPreview="glSurface|surface|texture" app:cameraPreviewFrameRate="@integer/preview_frame_rate" app:cameraPreviewFrameRateExact="false|true" app:cameraFacing="back|front" app:cameraHdr="on|off" app:cameraFlash="on|auto|torch|off" app:cameraWhiteBalance="auto|cloudy|daylight|fluorescent|incandescent" app:cameraMode="picture|video" app:cameraAudio="on|off|mono|stereo" app:cameraGrid="draw3x3|draw4x4|drawPhi|off" app:cameraGridColor="@color/grid_color" app:cameraPlaySounds="true|false" app:cameraVideoMaxSize="@integer/video_max_size" app:cameraVideoMaxDuration="@integer/video_max_duration" app:cameraVideoCodec="deviceDefault|h264|h263" app:cameraAutoFocusResetDelay="@integer/autofocus_delay" app:cameraAutoFocusMarker="@string/cameraview_default_autofocus_marker" app:cameraUseDeviceOrientation="true|false" app:cameraFilter="@string/real_time_filter" app:cameraPictureMetering="true|false" app:cameraPictureSnapshotMetering="false|true" app:cameraPictureFormat="jpeg|dng" app:cameraRequestPermissions="true|false" app:cameraExperimental="false|true">
</com.otaliastudios.cameraview.CameraView>
Logs
2021-01-29 15:40:20.164 12940-12940/com.otaliastudios.cameraview.demo E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false 2021-01-29 15:40:20.170 12940-13025/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "vendor.debug.bq.dump" 2021-01-29 15:40:20.171 12940-13025/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "vendor.debug.bq.dump" 2021-01-29 15:40:20.171 12940-13025/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "vendor.debug.bq.dump" 2021-01-29 15:40:20.180 12940-13025/com.otaliastudios.cameraview.demo E/gralloc: Arm Module v1.0 2021-01-29 15:40:20.181 12940-13025/com.otaliastudios.cameraview.demo E/ion: ioctl c0044901 failed with code -1: Invalid argument 2021-01-29 15:40:20.189 12940-12995/com.otaliastudios.cameraview.demo E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false 2021-01-29 15:40:20.190 12940-12995/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "vendor.debug.bq.dump" 2021-01-29 15:40:20.190 12940-12995/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "vendor.debug.bq.dump" 2021-01-29 15:40:20.190 12940-12995/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "vendor.debug.bq.dump" 2021-01-29 15:40:20.190 12940-12995/com.otaliastudios.cameraview.demo E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false 2021-01-29 15:40:20.193 683-1449/? E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false 2021-01-29 15:40:20.195 683-1449/? E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false 2021-01-29 15:40:20.202 724-1369/? E/mtkcam-SensorSettingPolicy4cell: [operator()] dugang str_oper_value 0 (operator()){#210:vendor/mediatek/proprietary/hardware/mtkcam3/pipeline/policy/config/SensorSettingPolicy_4cell.cpp} 2021-01-29 15:40:20.203 724-1369/? E/BWC: MTK_IOC_MMDVFS_QOS_CMD failed.:Not a typewriter 2021-01-29 15:40:20.203 724-1369/? E/BWC: MTK_IOC_SMI_BWC_INFO_GET failed.:Not a typewriter 2021-01-29 15:40:20.204 724-1369/? E/BWC: MTK_IOC_SMI_BWC_INFO_SET failed.:Not a typewriter 2021-01-29 15:40:20.204 724-1369/? E/BWC: MTK_IOC_MMDVFS_CMD failed.:Not a typewriter 2021-01-29 15:40:20.231 12940-12961/com.otaliastudios.cameraview.demo E/ion: ioctl c0044901 failed with code -1: Invalid argument 2021-01-29 15:40:20.304 724-13063/? E/VIDHANCE: [37;1m [VIDHANCE-E] verbose: VidhanceProviderImpl [37m (VidhanceProviderImpl){#147:vendor/mediatek/proprietary/hardware/mtkcam3/3rdparty/vidhance/vidahncePlugin/VidhancePlugin.cpp} 2021-01-29 15:40:20.304 724-13063/? E/VIDHANCE: [37;1m [VIDHANCE-I] [37m (VidhanceProviderImpl){#148:vendor/mediatek/proprietary/hardware/mtkcam3/3rdparty/vidhance/vidahncePlugin/VidhancePlugin.cpp} 2021-01-29 15:40:20.306 724-13063/? E/VIDHANCE: [37;1m [VIDHANCE-I] plugin set ID: 0 -1 [37m (set){#173:vendor/mediatek/proprietary/hardware/mtkcam3/3rdparty/vidhance/vidahncePlugin/VidhancePlugin.cpp} 2021-01-29 15:40:20.308 724-13063/? E/libc: Access denied finding property "persist.camera.altekLDC.face" 2021-01-29 15:40:20.308 724-13063/? E/libc: Access denied finding property "persist.camera.altekLDC.disableFaceUpdate" 2021-01-29 15:40:20.309 724-13063/? E/VIDHANCE: [37;1m [VIDHANCE-E] verbose: property [37m (property){#178:vendor/mediatek/proprietary/hardware/mtkcam3/3rdparty/vidhance/vidahncePlugin/VidhancePlugin.cpp} 2021-01-29 15:40:20.358 724-13031/? E/Hal3ARaw: [start] m_u4FrameCountAfterStart£¨0£© (start){#1066:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/wrapper/Hal3ARawImp.cpp} 2021-01-29 15:40:20.571 12940-12940/com.otaliastudios.cameraview.demo E/ControlView: curr: 0 new: 5 2021-01-29 15:40:20.608 12940-12940/com.otaliastudios.cameraview.demo E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false 2021-01-29 15:40:20.613 12940-12995/com.otaliastudios.cameraview.demo E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false 2021-01-29 15:40:20.613 12940-12995/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "vendor.debug.bq.dump" 2021-01-29 15:40:20.614 12940-12995/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "vendor.debug.bq.dump" 2021-01-29 15:40:20.614 12940-12995/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "vendor.debug.bq.dump" 2021-01-29 15:40:20.614 12940-12995/com.otaliastudios.cameraview.demo E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false 2021-01-29 15:40:20.751 434-441/? E/PSITrigger: get PSI events detail failed!! errno=25 2021-01-29 15:40:20.925 683-1449/? E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false 2021-01-29 15:40:20.926 683-1449/? E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false 2021-01-29 15:40:20.930 724-13142/? E/pdo_buf_mgr: [dequeueHwBuf] dev(1), PD data path(2), camsvSttPipe is not exist!! (dequeueHwBuf){#768:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/buf_mgr/PDOBufMgr.cpp} 2021-01-29 15:40:20.954 724-9551/? E/BWC: MTK_IOC_SMI_BWC_INFO_GET failed.:Not a typewriter 2021-01-29 15:40:20.955 724-9551/? E/BWC: MTK_IOC_SMI_BWC_INFO_SET failed.:Not a typewriter 2021-01-29 15:40:20.955 724-9551/? E/BWC: MTK_IOC_MMDVFS_QOS_CMD failed.:Not a typewriter 2021-01-29 15:40:20.962 724-9551/? E/VIDHANCE: [37;1m [VIDHANCE-E] verbose: ~VidhanceProviderImpl [37m (~VidhanceProviderImpl){#166:vendor/mediatek/proprietary/hardware/mtkcam3/3rdparty/vidhance/vidahncePlugin/VidhancePlugin.cpp} 2021-01-29 15:40:20.962 724-9551/? E/VIDHANCE: [37;1m [VIDHANCE-I] [37m (~VidhanceProviderImpl){#167:vendor/mediatek/proprietary/hardware/mtkcam3/3rdparty/vidhance/vidahncePlugin/VidhancePlugin.cpp} 2021-01-29 15:40:20.980 724-9551/? E/mtkcam-SensorSettingPolicy4cell: [operator()] dugang str_oper_value 0 (operator()){#210:vendor/mediatek/proprietary/hardware/mtkcam3/pipeline/policy/config/SensorSettingPolicy_4cell.cpp} 2021-01-29 15:40:20.981 724-9551/? E/BWC: MTK_IOC_MMDVFS_QOS_CMD failed.:Not a typewriter 2021-01-29 15:40:20.981 724-9551/? E/BWC: MTK_IOC_SMI_BWC_INFO_GET failed.:Not a typewriter 2021-01-29 15:40:20.983 724-9551/? E/BWC: MTK_IOC_SMI_BWC_INFO_SET failed.:Not a typewriter 2021-01-29 15:40:20.983 724-9551/? E/BWC: MTK_IOC_MMDVFS_CMD failed.:Not a typewriter 2021-01-29 15:40:21.031 724-13164/? E/VIDHANCE: [37;1m [VIDHANCE-E] verbose: VidhanceProviderImpl [37m (VidhanceProviderImpl){#147:vendor/mediatek/proprietary/hardware/mtkcam3/3rdparty/vidhance/vidahncePlugin/VidhancePlugin.cpp} 2021-01-29 15:40:21.031 724-13164/? E/VIDHANCE: [37;1m [VIDHANCE-I] [37m (VidhanceProviderImpl){#148:vendor/mediatek/proprietary/hardware/mtkcam3/3rdparty/vidhance/vidahncePlugin/VidhancePlugin.cpp} 2021-01-29 15:40:21.031 724-13164/? E/VIDHANCE: [37;1m [VIDHANCE-I] plugin set ID: 0 -1 [37m (set){#173:vendor/mediatek/proprietary/hardware/mtkcam3/3rdparty/vidhance/vidahncePlugin/VidhancePlugin.cpp} 2021-01-29 15:40:21.031 724-13164/? E/libc: Access denied finding property "persist.camera.altekLDC.face" 2021-01-29 15:40:21.032 724-13164/? E/libc: Access denied finding property "persist.camera.altekLDC.disableFaceUpdate" 2021-01-29 15:40:21.032 724-13164/? E/VIDHANCE: [37;1m [VIDHANCE-E] verbose: property [37m (property){#178:vendor/mediatek/proprietary/hardware/mtkcam3/3rdparty/vidhance/vidahncePlugin/VidhancePlugin.cpp} 2021-01-29 15:40:21.074 724-13031/? E/Hal3ARaw: [start] m_u4FrameCountAfterStart£¨0£© (start){#1066:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/wrapper/Hal3ARawImp.cpp} 2021-01-29 15:40:21.899 1169-5958/? E/WifiService: Permission violation - getScanResults not allowed for uid=10019, packageName=com.google.android.gms, reason=java.lang.SecurityException: Location mode is disabled for the device 2021-01-29 15:40:21.908 1169-2233/? E/AppScanObserverService: Result available, null observers for user: 0 2021-01-29 15:40:24.929 1169-2865/? E/WifiService: Permission violation - getScanResults not allowed for uid=10019, packageName=com.google.android.gms, reason=java.lang.SecurityException: Location mode is disabled for the device 2021-01-29 15:40:47.236 1169-1330/? E/BatteryExternalStatsWorker: no controller energy info supplied for bluetooth 2021-01-29 15:40:51.050 12940-12940/com.otaliastudios.cameraview.demo E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false 2021-01-29 15:40:51.176 586-586/? E/MTK_FG: init failed, return! 2021-01-29 15:40:51.176 586-586/? E/MTK_FG: init failed, return! 2021-01-29 15:40:52.248 12940-12940/com.otaliastudios.cameraview.demo E/ControlView: curr: JPEG new: DNG 2021-01-29 15:40:52.270 724-13238/? E/pdo_buf_mgr: [dequeueHwBuf] dev(1), PD data path(2), camsvSttPipe is not exist!! (dequeueHwBuf){#768:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/buf_mgr/PDOBufMgr.cpp} 2021-01-29 15:40:52.270 724-13167/? E/ifunc_cam_twin: [vendor/mediatek/proprietary/hardware/mtkcam/drv/src/isp/mt6785/imageio/drv/cam/isp_function_cam.twin.cpp, update_afterRunTwin, line0984] ERROR: [0x0]:af_en must be the same under twin mode[0x0_0x1] (update_afterRunTwin){#984:vendor/mediatek/proprietary/hardware/mtkcam/drv/src/isp/mt6785/imageio/drv/cam/isp_function_cam.twin.cpp} 2021-01-29 15:40:52.270 724-13167/? E/TwinMgr: [vendor/mediatek/proprietary/hardware/mtkcam/drv/src/isp/mt6785/imageio/drv/cam/twin_mgr.cpp, setP1Update, line0408] ERROR: [setP1Update][0]Run Twin drv fail (setP1Update){#408:vendor/mediatek/proprietary/hardware/mtkcam/drv/src/isp/mt6785/imageio/drv/cam/twin_mgr.cpp} 2021-01-29 15:40:52.270 724-13167/? E/camiopipe: [vendor/mediatek/proprietary/hardware/mtkcam/drv/src/isp/mt6785/imageio/pipe/CamIOPipe/CamIOPipe.cpp, sendCommand, line2974] ERROR: [0x0]:setP1Udpate failed, magic number:0x37a (sendCommand){#2974:vendor/mediatek/proprietary/hardware/mtkcam/drv/src/isp/mt6785/imageio/pipe/CamIOPipe/CamIOPipe.cpp} 2021-01-29 15:40:52.270 724-13167/? E/NormalPipe_Thread: [vendor/mediatek/proprietary/hardware/mtkcam/drv/src/isp/mt6785/iopipe/CamIO/NormalPipe_Thread.cpp, frameToEnque, line0693] ERROR: N:0 p1_update failed (frameToEnque){#693:vendor/mediatek/proprietary/hardware/mtkcam/drv/src/isp/mt6785/iopipe/CamIO/NormalPipe_Thread.cpp} 2021-01-29 15:40:52.280 12940-12940/com.otaliastudios.cameraview.demo E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false 2021-01-29 15:40:52.323 724-9551/? E/BWC: MTK_IOC_SMI_BWC_INFO_GET failed.:Not a typewriter 2021-01-29 15:40:52.324 724-9551/? E/BWC: MTK_IOC_SMI_BWC_INFO_SET failed.:Not a typewriter 2021-01-29 15:40:52.325 724-9551/? E/BWC: MTK_IOC_MMDVFS_QOS_CMD failed.:Not a typewriter 2021-01-29 15:40:52.331 724-9551/? E/VIDHANCE: [37;1m [VIDHANCE-E] verbose: ~VidhanceProviderImpl [37m (~VidhanceProviderImpl){#166:vendor/mediatek/proprietary/hardware/mtkcam3/3rdparty/vidhance/vidahncePlugin/VidhancePlugin.cpp} 2021-01-29 15:40:52.331 724-9551/? E/VIDHANCE: [37;1m [VIDHANCE-I] [37m (~VidhanceProviderImpl){#167:vendor/mediatek/proprietary/hardware/mtkcam3/3rdparty/vidhance/vidahncePlugin/VidhancePlugin.cpp} 2021-01-29 15:40:52.394 12940-13033/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:40:52.394 3416-3434/? E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:40:52.394 3416-3434/? E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:40:52.394 12940-13033/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:40:52.396 12940-13033/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:40:52.396 3416-3434/? E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:40:52.396 3416-3434/? E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:40:52.398 12940-13033/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:40:52.406 12940-13033/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:40:52.407 3416-3434/? E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:40:52.409 12940-12995/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:40:52.417 683-2347/? E/libc: Access denied finding property "camera.mtkfwk.debug" 2021-01-29 15:40:52.421 3416-3434/? E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:40:52.421 3416-3434/? E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:40:52.421 12940-13726/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:40:52.421 12940-13726/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:40:52.430 12940-13033/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:40:52.431 12940-13033/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:40:52.431 3416-3434/? E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:40:52.431 12940-13033/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:40:52.431 3416-3434/? E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:40:52.431 3416-3434/? E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:40:52.432 724-13730/? E/paramctrl_lifetime: open /proc/driver/thermal/clNR_status failed, disable NR cooler (Paramctrl){#315:vendor/mediatek/proprietary/hardware/mtkcam/aaa/source/isp_50/isp_tuning/paramctrl/paramctrl_lifetime.cpp} 2021-01-29 15:40:52.442 12940-12995/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:40:52.493 12940-12995/com.otaliastudios.cameraview.demo E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false 2021-01-29 15:40:52.494 12940-12995/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "vendor.debug.bq.dump" 2021-01-29 15:40:52.494 12940-12995/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "vendor.debug.bq.dump" 2021-01-29 15:40:52.494 12940-12995/com.otaliastudios.cameraview.demo E/libc: Access denied finding property "vendor.debug.bq.dump" 2021-01-29 15:40:52.494 12940-12995/com.otaliastudios.cameraview.demo E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false 2021-01-29 15:40:52.497 683-2347/? E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false 2021-01-29 15:40:52.501 683-2347/? E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false 2021-01-29 15:40:52.526 724-1366/? E/mtkcam-AppStreamMgr: [0-ConfigHandler::checkStream] unsupported size 9280x6944 for format 0x20/rotation:0 - {.v3_2 = {.id = 1, .streamType = OUTPUT, .width = 9280, .height = 6944, .format = RAW16, .usage = CPU_READ_NEVER | CPU_READ_RARELY | CPU_READ_OFTEN | CPU_WRITE_NEVER (0x3), .dataSpace = UNKNOWN | ARBITRARY | STANDARD_UNSPECIFIED | TRANSFER_UNSPECIFIED | RANGE_UNSPECIFIED (0x1), .rotation = ROTATION_0}, .physicalCameraId = "", .bufferSize = 0} (checkStream){#656:vendor/mediatek/proprietary/hardware/mtkcam3/main/hal/device/3.x/app/AppStreamMgr.ConfigHandler.cpp} 2021-01-29 15:40:52.527 724-1366/? E/mtkcam-AppStreamMgr: [0-ConfigHandler::checkStreams] streams[id:1] has a bad status: -22(Invalid argument) (checkStreams){#689:vendor/mediatek/proprietary/hardware/mtkcam3/main/hal/device/3.x/app/AppStreamMgr.ConfigHandler.cpp} 2021-01-29 15:40:52.527 724-1366/? E/mtkcam-AppStreamMgr: [0-ConfigHandler::beginConfigureStreams] checkStreams failed - StreamConfiguration={.streams = [2]{{.v3_2 = {.id = 0, .streamType = OUTPUT, .width = 4640, .height = 3472, .format = IMPLEMENTATION_DEFINED, .usage = CPU_READ_NEVER | CPU_WRITE_NEVER | GPU_TEXTURE (0x100), .dataSpace = UNKNOWN | STANDARD_UNSPECIFIED | TRANSFER_UNSPECIFIED | RANGE_UNSPECIFIED (0), .rotation = ROTATION_0}, .physicalCameraId = "", .bufferSize = 0}, {.v3_2 = {.id = 1, .streamType = OUTPUT, .width = 9280, .height = 6944, .format = RAW16, .usage = CPU_READ_NEVER | CPU_READ_RARELY | CPU_READ_OFTEN | CPU_WRITE_NEVER (0x3), .dataSpace = UNKNOWN | ARBITRARY | STANDARD_UNSPECIFIED | TRANSFER_UNSPECIFIED | RANGE_UNSPECIFIED (0x1), .rotation = ROTATION_0}, .physicalCameraId = "", .bufferSize = 0}}, .operationMode = NORMAL_MODE, .sessionParams = [224]{224, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 48, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 208, 0, 0, 0, 0, 0, 0, 0, 27, 58, 230, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 2021-01-29 15:40:52.527 724-1366/? E/mtkcam-dev3: [0-session::onConfigureStreamsLocked] fail to beginConfigureStreams (onConfigureStreamsLocked){#671:vendor/mediatek/proprietary/hardware/mtkcam3/main/hal/device/3.x/device/CameraDevice3SessionImpl.cpp} 2021-01-29 15:40:52.527 683-2347/? E/Camera3-Device: Camera 0: configureStreamsLocked: Set of requested inputs/outputs not supported by HAL 2021-01-29 15:40:52.527 683-2347/? E/CameraDeviceClient: endConfigure: Camera 0: Unsupported set of inputs/outputs provided 2021-01-29 15:40:52.529 12940-12995/com.otaliastudios.cameraview.demo E/CameraCaptureSession: Session 0: Failed to create capture session; configuration failed 2021-01-29 15:40:52.529 12940-12995/com.otaliastudios.cameraview.demo E/CameraEngine: onConfigureFailed! Session android.hardware.camera2.impl.CameraCaptureSessionImpl@ffa8ee1 2021-01-29 15:40:52.529 12940-12995/com.otaliastudios.cameraview.demo E/AndroidRuntime: FATAL EXCEPTION: CameraViewEngine Process: com.otaliastudios.cameraview.demo, PID: 12940 java.lang.RuntimeException: onConfigureFailed! Session android.hardware.camera2.impl.CameraCaptureSessionImpl@ffa8ee1 at com.otaliastudios.cameraview.engine.Camera2Engine$4.onConfigureFailed(Camera2Engine.java:595) at android.hardware.camera2.impl.CallbackProxies$SessionStateCallbackProxy.lambda$onConfigureFailed$1$CallbackProxies$SessionStateCallbackProxy(CallbackProxies.java:64) at android.hardware.camera2.impl.-$$Lambda$CallbackProxies$SessionStateCallbackProxy$gvbTsp9UPpKJAbdycdci_ZW5BeI.run(Unknown Source:4) at android.os.Handler.handleCallback(Handler.java:914) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:224) at android.os.HandlerThread.run(HandlerThread.java:67) 2021-01-29 15:40:52.537 12940-12995/com.otaliastudios.cameraview.demo E/CameraEngine: EXCEPTION: Handler thread is gone. Replacing. 2021-01-29 15:40:52.540 12940-12995/com.otaliastudios.cameraview.demo E/CameraEngine: EXCEPTION: Scheduling on the crash handler... 2021-01-29 15:40:52.754 12940-12940/com.otaliastudios.cameraview.demo E/CameraEngine: EXCEPTION: Unexpected error! Executing destroy(true). 2021-01-29 15:40:52.761 13740-13740/? E/miui.msa.globa: Not starting debugger since process cannot load the jdwp agent. 2021-01-29 15:40:52.948 13740-13740/? E/libc: Access denied finding property "ro.vendor.df.effect.conflict" 2021-01-29 15:40:53.094 11306-11363/? E/MtpStorageManager: java.nio.file.DirectoryIteratorException: java.nio.file.NoSuchFileException: /storage/emulated/0/Android/data/com.miui.msa.global/files/updater 2021-01-29 15:40:53.212 13740-13805/? E/Fabric: Settings request failed. 2021-01-29 15:40:53.962 1169-5958/? E/WifiService: Permission violation - getScanResults not allowed for uid=10019, packageName=com.google.android.gms, reason=java.lang.SecurityException: Location mode is disabled for the device 2021-01-29 15:40:53.973 1169-2233/? E/AppScanObserverService: Result available, null observers for user: 0 2021-01-29 15:40:58.756 12940-12940/com.otaliastudios.cameraview.demo E/CameraEngine: DESTROY: Could not destroy synchronously after 6 seconds. Current thread: Thread[main,5,main] Handler thread: Thread[CameraViewEngine,5,main][13739] 2021-01-29 15:40:58.761 12940-12940/com.otaliastudios.cameraview.demo E/CameraEngine: DESTROY: Trying again on thread: Thread[CameraViewEngine,5,main][13905] 2021-01-29 15:41:04.763 12940-12940/com.otaliastudios.cameraview.demo E/CameraEngine: DESTROY: Could not destroy synchronously after 6 seconds. Current thread: Thread[main,5,main] Handler thread: Thread[CameraViewEngine,5,main][13905] 2021-01-29 15:41:04.763 12940-12940/com.otaliastudios.cameraview.demo E/CameraEngine: EXCEPTION: Unexpected error! Throwing. 2021-01-29 15:41:04.763 12940-12940/com.otaliastudios.cameraview.demo E/AndroidRuntime: FATAL EXCEPTION: main Process: com.otaliastudios.cameraview.demo, PID: 12940 java.lang.RuntimeException: onConfigureFailed! Session android.hardware.camera2.impl.CameraCaptureSessionImpl@ffa8ee1 at com.otaliastudios.cameraview.engine.Camera2Engine$4.onConfigureFailed(Camera2Engine.java:595) at android.hardware.camera2.impl.CallbackProxies$SessionStateCallbackProxy.lambda$onConfigureFailed$1$CallbackProxies$SessionStateCallbackProxy(CallbackProxies.java:64) at android.hardware.camera2.impl.-$$Lambda$CallbackProxies$SessionStateCallbackProxy$gvbTsp9UPpKJAbdycdci_ZW5BeI.run(Unknown Source:4) at android.os.Handler.handleCallback(Handler.java:914) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:224) at android.os.HandlerThread.run(HandlerThread.java:67) 2021-01-29 15:41:04.798 1169-1464/? E/InputDispatcher: channel 'ab02cf1 Toast (server)' ~ Channel is unrecoverably broken and will be disposed! 2021-01-29 15:41:04.810 1169-1464/? E/InputDispatcher: channel '696d42a com.otaliastudios.cameraview.demo/com.otaliastudios.cameraview.demo.CameraActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 2021-01-29 15:41:04.833 538-587/? E/UxUtility: notifyAppState error = NULL 2021-01-29 15:41:04.855 3416-3533/? E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:41:04.856 3416-3533/? E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:41:04.859 3416-3533/? E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:41:04.860 3416-3533/? E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:41:04.860 683-2347/? E/CameraService: binderDied: Java client's binder died, removing it from the list of active clients 2021-01-29 15:41:04.860 3416-3533/? E/libc: Access denied finding property "camera.aux.packagelist" 2021-01-29 15:41:04.880 7212-7212/? E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false 2021-01-29 15:41:10.751 14138-14138/? E/.apps.turbo:aa: Not starting debugger since process cannot load the jdwp agent. 2021-01-29 15:41:10.958 14138-14138/? E/libc: Access denied finding property "ro.vendor.df.effect.conflict" 2021-01-29 15:41:11.248 14138-14175/? E/libc: Access denied finding property "ro.hardware.chipname" 2021-01-29 15:41:13.927 1169-1480/? E/WifiService: Permission violation - getScanResults not allowed for uid=10019, packageName=com.google.android.gms, reason=java.lang.SecurityException: Location mode is disabled for the device 2021-01-29 15:41:13.951 1169-2233/? E/AppScanObserverService: Result available, null observers for user: 0 2021-01-29 15:41:23.994 3005-14771/? E/WakeLock: GCM_HB_ALARM release without a matched acquire! 2021-01-29 15:41:28.235 434-441/? E/PSITrigger: get PSI events detail failed!! errno=25 2021-01-29 15:41:31.847 434-441/? E/PSITrigger: get PSI events detail failed!! errno=25 2021-01-29 15:41:31.847 434-441/? E/PSITrigger: get PSI events detail failed!! errno=25 2021-01-29 15:41:33.771 1169-1480/? E/WifiService: Permission violation - getScanResults not allowed for uid=10019, packageName=com.google.android.gms, reason=java.lang.SecurityException: Location mode is disabled for the device 2021-01-29 15:41:33.776 1169-2233/? E/AppScanObserverService: Result available, null observers for user: 0 2021-01-29 15:41:40.607 434-441/? E/PSITrigger: get PSI events detail failed!! errno=25 2021-01-29 15:41:40.715 434-441/? E/PSITrigger: get PSI events detail failed!! errno=25 2021-01-29 15:41:41.687 434-441/? E/PSITrigger: get PSI events detail failed!! errno=25 2021-01-29 15:41:43.739 434-441/? E/PSITrigger: get PSI events detail failed!! errno=25