Taschenlampe - Camera Flash - App

  • 26 Antworten
  • Letztes Antwortdatum
Eine Frage haben ich noch:
Funktionieren tut es jetzt einwandfrei - aber LogCat gibt mir ziemlich viel in rot und mit "AEC not Settled. Returning", "Check Link Failed" oder "Pipeline Process" aus.
Wäre cool wenn da noch mal jemand drüber schauen kann - für mich ist das meiste wie Hieroglyphen.

Code:
01-23 19:18:34.383: I/ActivityManager(753): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.lighting/com.ff.lighting.MainActivity} from pid 1063
01-23 19:18:34.393: I/ActivityManager(753): Killing 12623:android.process.acore/u0a3 (adj 15): empty #17
01-23 19:18:34.533: I/ActivityManager(753): Displayed com.example.lighting/com.ff.lighting.MainActivity: +133ms
01-23 19:18:34.623: D/NiLS(27474): TYPE_WINDOW_STATE_CHANGED com.example.lighting
01-23 19:18:41.873: I/AwesomePlayer(181): setDataSource_l(URL suppressed)
01-23 19:18:41.893: I/AwesomePlayer(181): setDataSource_l(URL suppressed)
01-23 19:18:41.913: I/Camera2ClientBase(181): Camera 0: Opened
01-23 19:18:41.913: E/mm-camera-intf(181): mm_camera_open: dev name = /dev/video1, cam_idx = 1
01-23 19:18:41.913: E/mm-camera-sensor(197): module_sensor_start_session:577 session 1
01-23 19:18:41.923: E/mm-camera-sensor(197): eeprom_load_library:515 e_ctrl->eeprom_lib.func_tbl =0xb6b7c004
01-23 19:18:41.953: I/mm-camera(197): gyro_module_start_session: Enter
01-23 19:18:41.953: I/mm-camera(197): gyro_module_start_session: Init DSPS
01-23 19:18:41.953: I/mm-camera(197): gyro_module_start_session: Exit successful
01-23 19:18:41.953: I/mm-camera(197): gyro_module_get_port: Exit successful
01-23 19:18:41.953: E/mm-camera(197): cpp_module_start_session:352, info: starting session 1
01-23 19:18:41.983: E/mm-camera(197): cpp_thread_func:55: cpp_thread entering the polling loop...
01-23 19:18:41.983: E/mm-camera(197): cpp_module_start_session:422, info: cpp_thread created.
01-23 19:18:41.983: E/mm-camera(197): cpp_module_start_session:425, info: session 1 started.
01-23 19:18:41.983: E/mm-camera(197): c2d_module_start_session:246, info: starting session 1
01-23 19:18:41.983: E/mm-camera(197): c2d_module_start_session:284, info: c2d_thread created.
01-23 19:18:41.983: E/mm-camera(197): c2d_module_start_session:306, info: session 1 started.
01-23 19:18:41.983: E/mm-camera-sensor(197): module_module_set_session_data:2435 max delay 2 report dSelay 1
01-23 19:18:41.983: E/mm-camera(197): module_faceproc_set_session_data:1826] Per frame control 2 1
01-23 19:18:41.983: E/mm-camera(197): c2d_thread_func:39: c2d_thread entering the polling loop...
01-23 19:18:41.983: E/mm-camera-intf(181): mm_camera_open:  opened, break out while loop
01-23 19:18:41.983: I/Camera2-Parameters(181): Camera 0: Disabling ZSL mode
01-23 19:18:41.983: E/QCamera3HWI(181): camera_metadata_t* qcamera::QCamera3HardwareInterface::translateCapabilityToMetadata(int): Setting focus mode to auto
01-23 19:18:41.983: E/QCamera3HWI(181): camera_metadata_t* qcamera::QCamera3HardwareInterface::translateCapabilityToMetadata(int): Setting focus mode to auto
01-23 19:18:41.983: E/mm-camera(197): mct_pipeline_process_set:command=800000a
01-23 19:18:41.983: E/mm-camera(197): mct_pipeline_process_set:command=8000012
01-23 19:18:41.983: D/mm-camera(197): mct_stream_start_link: Metadata
01-23 19:18:41.983: E/mm-camera-intf(181): mm_stream_get_v4l2_fmt: Unknown fmt=78
01-23 19:18:41.983: E/mm-camera(197): mct_pipeline_process_set:command=8000004
01-23 19:18:41.993: E/qomx_image_core(181): OMX_Init:84] Complete 1
01-23 19:18:41.993: E/mm-camera(197): mct_pipeline_get_stream: stream not found in the list
01-23 19:18:41.993: E/mm-camera(197): mct_pipeline_process_set: Couldn't find preview stream; Storing for later
01-23 19:18:42.003: E/mm-camera(197): mct_pipeline_process_set:command=800000a
01-23 19:18:42.003: E/mm-camera(197): mct_pipeline_process_set:command=8000012
01-23 19:18:42.003: D/mm-camera(197): mct_stream_start_link: Preview/Postview
01-23 19:18:42.003: D/mm-camera(197): mct_stream_link_modules: Linking modules sensor and iface
01-23 19:18:42.003: E/mm-camera-sensor(197): port_sensor_caps_reserve:115 ide 10002 stream type 1 w*h 1920*1080
01-23 19:18:42.003: D/mm-camera(197): mct_stream_link_modules: Linking modules iface and isp
01-23 19:18:42.003: D/mm-camera(197): mct_stream_link_modules: Linking modules isp and pproc
01-23 19:18:42.003: E/mm-camera(197): cpp_port_check_caps_reserve:77, identity=0x10002
01-23 19:18:42.003: E/mm-camera(197): cpp_port_check_caps_reserve:143, identity=0x10002, reserved
01-23 19:18:42.003: E/mm-camera(197): cpp_module_notify_add_stream:1289, info: success, identity=0x10002
01-23 19:18:42.003: D/mm-camera(197): mct_stream_link_modules: Linking modules pproc and faceproc
01-23 19:18:42.003: E/mm-camera(197): cpp_port_check_caps_reserve:77, identity=0x10002
01-23 19:18:42.003: E/mm-camera(197): cpp_port_check_caps_reserve:143, identity=0x10002, reserved
01-23 19:18:42.003: E/mm-camera(197): module_faceproc_client_create:1161] Face proc feature mask e 0
01-23 19:18:42.003: D/mm-camera(197): mct_stream_link_modules: Linking modules isp and stats
01-23 19:18:42.013: E/mm-camera-sensor(197): sensor_get_output_dimension:1859 requested dim 3264 2448 stream mask 42
01-23 19:18:42.013: E/mm-camera-sensor(197): sensor_get_output_dimension:1879 pick res 0 dim 3280 2464
01-23 19:18:42.013: E/mm-camera(197): DBG: isp_util_save_stream_info, Stream 6, mapped to port 0
01-23 19:18:42.013: E/mm-camera(197): DBG: isp_util_save_stream_info, Stream 1, mapped to port 1
01-23 19:18:42.013: E/mm-camera(197): mct_pipeline_process_set:command=8000004
01-23 19:18:42.033: E/mm-camera(197): mct_pipeline_process_set:command=800000a
01-23 19:18:42.033: E/mm-camera(197): mct_pipeline_process_set:command=8000012
01-23 19:18:42.033: D/mm-camera(197): mct_stream_start_link: Regular/ZSL snapshot
01-23 19:18:42.033: D/mm-camera(197): mct_stream_link_modules: Linking modules sensor and iface
01-23 19:18:42.033: E/mm-camera-sensor(197): port_sensor_caps_reserve:115 ide 10003 stream type 6 w*h 3264*2448
01-23 19:18:42.033: D/mm-camera(197): mct_stream_link_modules: Linking modules iface and isp
01-23 19:18:42.033: D/mm-camera(197): mct_stream_link_modules: Linking modules isp and pproc
01-23 19:18:42.033: E/mm-camera(197): mct_get_compatible_dest_port: Check link failed
01-23 19:18:42.033: E/mm-camera(197): mct_get_compatible_dest_port: Check link failed
01-23 19:18:42.033: E/mm-camera(197): mct_get_compatible_dest_port: Check link failed
01-23 19:18:42.033: E/mm-camera(197): mct_get_compatible_dest_port: Check link failed
01-23 19:18:42.033: E/mm-camera(197): mct_get_compatible_dest_port: Check link failed
01-23 19:18:42.033: E/mm-camera(197): cpp_port_check_caps_reserve:77, identity=0x10003
01-23 19:18:42.033: E/mm-camera(197): cpp_port_check_caps_reserve:143, identity=0x10003, reserved
01-23 19:18:42.033: E/mm-camera(197): cpp_module_notify_add_stream:1289, info: success, identity=0x10003
01-23 19:18:42.033: D/mm-camera(197): mct_stream_link_modules: Linking modules isp and stats
01-23 19:18:42.033: E/mm-camera(197): mct_pipeline_process_set:command=8000004
01-23 19:18:42.043: D/mm-camera-intf(181): mm_stream_qbuf: Starting poll on stream 0xb85d0784 type :8
01-23 19:18:42.043: D/mm-camera-intf(181): mm_stream_qbuf: Started poll on stream 0xb85d0784 type :8
01-23 19:18:42.043: E/mm-camera(197): mct_pipeline_process_set:command=8000008
01-23 19:18:42.043: E/mm-camera(197): mct_pipeline_process_set: stream_type = 8, streamid 1
01-23 19:18:42.043: E/mm-camera(197): mct_pipeline_process_set: Stream on/off returned
01-23 19:18:42.053: E/mm-camera(197): mct_pipeline_process_set:command=8000008
01-23 19:18:42.053: E/mm-camera(197): mct_pipeline_process_set: stream_type = 1, streamid 2
01-23 19:18:42.053: E/mm-camera-sensor(197): module_sensor_module_process_event:1960 ide 10002 MCT_EVENT_CONTROL_STREAMON
01-23 19:18:42.053: E/mm-camera-sensor(197): module_sensor_stream_on:821 ide 10002 SENSOR_START_STREAM
01-23 19:18:42.093: E/qcom_sensors_hal(753): hal_process_report_ind: Bad item quality: 11 
01-23 19:18:42.223: E/mm-camera-sensor(197): module_sensor_stream_on:1035 SENSOR_SET_RESOLUTION 3264*2448 mask 42
01-23 19:18:42.223: E/mm-camera-sensor(197): sensor_set_resolution:1167 width 3264, height 2448
01-23 19:18:42.223: E/mm-camera-sensor(197): sensor_set_resolution:1169 stream mask 42 hfr mode 0 fps 0.000000
01-23 19:18:42.223: E/mm-camera-sensor(197): sensor_set_resolution:1178 cur res 8 new res 0
01-23 19:18:42.223: E/mm-camera(197): port_isp_module_event: E, identity = 0x10002, IFACE_SET_STREAM_CONFIG
01-23 19:18:42.223: E/mm-camera(197): isp_sink_port_stream_config: E, session_id = 1, stream_id = 2, stream_type = 1
01-23 19:18:42.223: E/mm-camera(197): isp_sink_port_stream_config: session_id = 1, stream_id = 2, is_split = 0
01-23 19:18:42.223: E/mm-camera(197): isp_sink_port_stream_config: old vfe_id_mask = 0x0, new vfe_id_mask = 0x1
01-23 19:18:42.233: E/mm-camera(197): port_isp_module_event: E, identity = 0x10003, IFACE_SET_STREAM_CONFIG
01-23 19:18:42.233: E/mm-camera(197): isp_sink_port_stream_config: E, session_id = 1, stream_id = 3, stream_type = 6
01-23 19:18:42.233: E/mm-camera(197): isp_sink_port_stream_config: session_id = 1, stream_id = 3, is_split = 0
01-23 19:18:42.233: E/mm-camera(197): isp_sink_port_stream_config: old vfe_id_mask = 0x1, new vfe_id_mask = 0x1
01-23 19:18:42.233: E/mm-camera-sensor(197): eeprom_process:829 e_ctrl->eeprom_lib.func_tbl =0xb6b7c004
01-23 19:18:42.233: E/mm-camera-sensor(197): eeprom_autofocus_calibration:74 Region 0: code_per_step: 8 initial_code: 155  inf_pos: 7
01-23 19:18:42.233: E/mm-camera(197): port_isp_mct_ctrl_cmd: E, identity = 0x10002, STREAMON
01-23 19:18:42.233: E/mm-camera(197): module_faceproc_port_event_func:662] FD_STREAMON 0 id 10002
01-23 19:18:42.233: E/mm-camera-img(197): faceproc_comp_cfg_debug:247] FaceProc cfg max_face_size 500
01-23 19:18:42.233: E/mm-camera-img(197): faceproc_comp_cfg_debug:250] FaceProc cfg max_num_face_to_detect 5
01-23 19:18:42.233: E/mm-camera-img(197): faceproc_comp_cfg_debug:253] FaceProc cfg min_face_size 50
01-23 19:18:42.233: E/mm-camera-img(197): faceproc_comp_eng_config:1466] ###min_face_size 90
01-23 19:18:42.233: E/mm-camera-img(197): Face Album FILE EXISTS
01-23 19:18:42.233: E/mm-camera(197): cpp_module_handle_streamon_event:1983, identity=0x10002, stream-on done
01-23 19:18:42.233: E/mm-camera(197): isp_streamon: E, session_id = 1, stream_id = 2, stream_type = 1
01-23 19:18:42.233: E/mm-camera(197): isp_fmt_to_pix_pattern: format 30
01-23 19:18:42.233: E/mm-camera(197): isp_fmt_to_pix_pattern: format 30
01-23 19:18:42.233: E/mm-camera(197): isp_pipeline_set_effect: effect_mask = 0x1, contrast = 5, saturation = 0.500000, special effect = 0
01-23 19:18:42.233: E/mm-camera(197): isp_pipeline_set_effect: effect_mask = 0x9, contrast = 5, saturation = 0.500000, special effect = 0
01-23 19:18:42.233: E/mm-camera(197): isp_pipeline_set_effect: effect_mask = 0xd, contrast = 5, saturation = 0.500000, special effect = 0
01-23 19:18:42.233: E/mm-camera(197): module_faceproc_port_event_func:825] MCT_EVENT_MODULE_ISP_OUTPUT_DIM stream info 1920x1080 identity 10002 10002
01-23 19:18:42.233: E/mm-camera(197): isp_fmt_to_pix_pattern: format 30
01-23 19:18:42.233: E/mm-camera(197): isp_pipeline_set_effect: effect_mask = 0xd, contrast = 5, saturation = 0.500000, special effect = 0
01-23 19:18:42.233: E/mm-camera(197): wb_set_params: param_id is not supported in this module
01-23 19:18:42.233: E/mm-camera(197): isp_fmt_to_pix_pattern: format 30
01-23 19:18:42.243: E/mm-camera(197): stats_action_buf_config: cfg = 1, stats_mask = 0x5b8
01-23 19:18:42.243: E/mm-camera(197): stats_action: stats mask = 0x5b8
01-23 19:18:42.243: E/mm-camera(197): isp_axi_util_subscribe_v4l2_event: event_type = 0x8000100, is_subscribe = 1
01-23 19:18:42.243: E/mm-camera(197): isp_axi_util_subscribe_v4l2_event: event_type = 0x8000009, is_subscribe = 1
01-23 19:18:42.243: E/mm-camera(197): ispif_streamon: session_id = 1, active_streams = 1
01-23 19:18:42.253: E/mm-camera-sensor(197): module_sensor_stream_on:1021 ide 10002 SENSOR_START_STREAM
01-23 19:18:42.253: E/mm-camera(197): mct_pipeline_process_set: Stream on/off returned
01-23 19:18:42.263: E/mm-camera(197): mct_pipeline_process_set:command=8000008
01-23 19:18:42.263: E/mm-camera(197): mct_pipeline_process_set: stream_type = 6, streamid 3
01-23 19:18:42.263: E/mm-camera-sensor(197): module_sensor_module_process_event:1960 ide 10003 MCT_EVENT_CONTROL_STREAMON
01-23 19:18:42.263: E/mm-camera-sensor(197): module_sensor_stream_on:821 ide 10003 SENSOR_START_STREAM
01-23 19:18:42.263: E/mm-camera(197): port_isp_mct_ctrl_cmd: E, identity = 0x10003, STREAMON
01-23 19:18:42.263: E/mm-camera(197): cpp_module_handle_streamon_event:1983, identity=0x10003, stream-on done
01-23 19:18:42.263: E/mm-camera(197): isp_streamon: E, session_id = 1, stream_id = 3, stream_type = 6
01-23 19:18:42.263: E/mm-camera(197): isp_pipeline_set_effect: effect_mask = 0xd, contrast = 5, saturation = 0.500000, special effect = 0
01-23 19:18:42.263: E/mm-camera(197): wb_set_params: param_id is not supported in this module
01-23 19:18:42.263: E/mm-camera(197): isp_pipeline_set_effect: effect_mask = 0xd, contrast = 5, saturation = 0.500000, special effect = 0
01-23 19:18:42.263: E/mm-camera(197): wb_set_params: param_id is not supported in this module
01-23 19:18:42.263: E/mm-camera(197): isp_pipeline_set_effect: effect_mask = 0xd, contrast = 5, saturation = 0.500000, special effect = 0
01-23 19:18:42.263: E/mm-camera(197): wb_set_params: param_id is not supported in this module
01-23 19:18:42.263: E/mm-camera(197): isp_axi_util_subscribe_v4l2_event: event_type = 0x8000009, is_subscribe = 1
01-23 19:18:42.323: E/mm-camera(197): ispif_streamon: session_id = 1, active_streams = 2
01-23 19:18:42.323: E/mm-camera(197): mct_pipeline_process_set: Stream on/off returned
01-23 19:18:42.323: D/mm-camera-intf(181): mm_stream_qbuf: Starting poll on stream 0xb85d0eac type :1
01-23 19:18:42.323: D/mm-camera-intf(181): mm_stream_qbuf: Started poll on stream 0xb85d0eac type :1
01-23 19:18:42.353: E/mm-camera(197): module_faceproc_client_schedule_mode:1808] apply 2 report 1 new_mode 0
01-23 19:18:42.393: E/mm-camera(197): module_faceproc_client_schedule_mode:1808] apply 3 report 2 new_mode 0
01-23 19:18:42.393: E/mm-camera(197): isp_util_set_param_crop_region, No change in crop info, nothing to update
01-23 19:18:42.413: E/mm-camera(197): af_exhaustive_search: AEC not settled. Returning!
01-23 19:18:42.453: E/mm-camera(197): module_faceproc_client_schedule_mode:1808] apply 0 report 3 new_mode 0
01-23 19:18:42.453: E/mm-camera(197): isp_util_set_param_crop_region, No change in crop info, nothing to update
01-23 19:18:42.483: E/mm-camera(197): af_exhaustive_search: AEC not settled. Returning!
01-23 19:18:42.543: E/mm-camera(197): af_exhaustive_search: AEC not settled. Returning!
01-23 19:18:42.613: E/mm-camera(197): af_exhaustive_search: AEC not settled. Returning!
01-23 19:18:42.683: E/mm-camera(197): af_exhaustive_search: AEC not settled. Returning!
01-23 19:18:42.743: E/mm-camera(197): af_exhaustive_search: AEC not settled. Returning!
01-23 19:18:42.813: E/mm-camera(197): af_exhaustive_search: AEC not settled. Returning!
01-23 19:18:42.883: E/mm-camera(197): af_exhaustive_search: AEC not settled. Returning!
01-23 19:18:42.943: E/mm-camera(197): af_exhaustive_search: AEC not settled. Returning!
01-23 19:18:43.013: E/mm-camera(197): af_exhaustive_search: AEC not settled. Returning!
01-23 19:18:43.083: E/mm-camera(197): af_exhaustive_search: AEC not settled. Returning!
01-23 19:18:43.143: E/mm-camera(197): af_util_cur_pos_after_lens_move: After move: FV: 22322212 CurPosition: 36
01-23 19:18:43.293: E/mm-camera(197): af_util_cur_pos_after_lens_move: After move: FV: 17523260 CurPosition: 33
01-23 19:18:43.353: E/mm-camera(197): af_util_cur_pos_after_lens_move: After move: FV: 11091900 CurPosition: 31
01-23 19:18:43.423: E/mm-camera(197): af_util_cur_pos_after_lens_move: After move: FV: 4922445 CurPosition: 33
01-23 19:18:43.483: E/mm-camera(197): af_util_cur_pos_after_lens_move: After move: FV: 6832311 CurPosition: 35
01-23 19:18:43.553: E/mm-camera(197): af_util_cur_pos_after_lens_move: After move: FV: 10338414 CurPosition: 37
01-23 19:18:43.623: E/mm-camera(197): af_util_cur_pos_after_lens_move: After move: FV: 10391483 CurPosition: 39
01-23 19:18:43.693: E/mm-camera(197): af_util_cur_pos_after_lens_move: After move: FV: 6534286 CurPosition: 41
01-23 19:18:43.753: E/mm-camera(197): af_util_cur_pos_after_lens_move: After move: FV: 4780197 CurPosition: 37
01-23 19:18:43.753: E/mm-camera(197): af_util_update_focus_status: AF Status already updated to output!Return!
01-23 19:18:43.753: E/mm-camera(197): af_util_update_focus_status: AF Status already updated to output!Return!
01-23 19:18:46.983: D/mm-camera-intf(181): mm_stream_read_msm_frame: Stoping poll on stream 0xb85d0eac type :1
01-23 19:18:46.983: D/mm-camera-intf(181): mm_stream_read_msm_frame: Stopped poll on stream 0xb85d0eac type :1
01-23 19:18:47.093: E/mm-camera-intf(181): mm_camera_poll_thread_del_poll_fd: invalid handler 58880 (0)
01-23 19:18:47.093: E/mm-camera(197): mct_pipeline_process_set:command=8000009
01-23 19:18:47.093: E/mm-camera(197): mct_pipeline_process_set: stream_type = 1, streamid 2
01-23 19:18:47.093: E/mm-camera-sensor(197): module_sensor_module_process_event:1987 ide 10002 MCT_EVENT_CONTROL_STREAMOFF
01-23 19:18:47.093: E/mm-camera(197): port_isp_mct_ctrl_cmd: E, identity = 0x10002, STREAMOFF
01-23 19:18:47.093: E/mm-camera(197): cpp_module_handle_streamoff_event:2058, info: doing stream-off for identity 0x10002
01-23 19:18:47.093: E/mm-camera(197): module_faceproc_port_event_func:686] FD_STREAMOFF 0 10002
01-23 19:18:47.093: E/mm-camera-img(197): faceproc_comp_abort:608] state 2
01-23 19:18:47.093: E/mm-camera-img(197): Free Wmemory 0
01-23 19:18:47.093: E/mm-camera-img(197): faceproc_comp_abort:635] X
01-23 19:18:47.093: E/mm-camera(197): cpp_module_handle_streamoff_event:2112, info: stream-off done for identity 0x10002
01-23 19:18:47.093: E/mm-camera(197): isp_streamoff: E, session_id = 1, stream_id = 2, stream_type = 1
01-23 19:18:47.093: E/mm-camera(197): isp_axi_util_subscribe_v4l2_event: event_type = 0x8000100, is_subscribe = 0
01-23 19:18:47.093: E/mm-camera(197): isp_axi_util_subscribe_v4l2_event: event_type = 0x8000009, is_subscribe = 0
01-23 19:18:47.213: E/mm-camera(197): ispif_streamoff: session_id = 1, active_streams = 1
01-23 19:18:47.213: E/mm-camera(197): mct_pipeline_process_set: Stream on/off returned
01-23 19:18:47.243: D/QCamera3Stream(181): static void* qcamera::QCamera3Stream::dataProcRoutine(void*): Exit
01-23 19:18:47.243: E/mm-camera-intf(181): mm_camera_poll_thread_del_poll_fd: invalid handler 59392 (0)
01-23 19:18:47.243: E/mm-camera(197): mct_pipeline_process_set:command=8000009
01-23 19:18:47.243: E/mm-camera(197): mct_pipeline_process_set: stream_type = 6, streamid 3
01-23 19:18:47.243: E/mm-camera-sensor(197): module_sensor_module_process_event:1987 ide 10003 MCT_EVENT_CONTROL_STREAMOFF
01-23 19:18:47.243: E/mm-camera(197): port_isp_mct_ctrl_cmd: E, identity = 0x10003, STREAMOFF
01-23 19:18:47.243: E/mm-camera(197): cpp_module_handle_streamoff_event:2058, info: doing stream-off for identity 0x10003
01-23 19:18:47.243: E/mm-camera(197): cpp_module_handle_streamoff_event:2112, info: stream-off done for identity 0x10003
01-23 19:18:47.243: E/mm-camera(197): isp_streamoff: E, session_id = 1, stream_id = 3, stream_type = 6
01-23 19:18:47.243: E/mm-camera(197): isp_axi_util_subscribe_v4l2_event: event_type = 0x8000009, is_subscribe = 0
01-23 19:18:47.343: E/mm-camera(197): stats_action_buf_config: cfg = 0, stats_mask = 0x5b8
01-23 19:18:47.353: E/mm-camera(197): isp_pipeline_util_reset: module id = 0, action = 0xb6ea3759
01-23 19:18:47.353: E/mm-camera(197): isp_pipeline_util_reset: module id = 1, action = 0xb6eaa569
01-23 19:18:47.353: E/mm-camera(197): isp_pipeline_util_reset: module id = 2, action = 0xb6eba971
01-23 19:18:47.353: E/mm-camera(197): isp_pipeline_util_reset: module id = 3, action = 0xb6eb3f6d
01-23 19:18:47.353: E/mm-camera(197): isp_pipeline_util_reset: module id = 4, action = 0xb6e9f819
01-23 19:18:47.353: E/mm-camera(197): isp_pipeline_util_reset: module id = 5, action = 0xb6ea4225
01-23 19:18:47.353: E/mm-camera(197): isp_pipeline_util_reset: module id = 7, action = 0xb6eb90e9
01-23 19:18:47.353: E/mm-camera(197): isp_pipeline_util_reset: module id = 8, action = 0xb6eb6ab1
01-23 19:18:47.353: E/mm-camera(197): isp_pipeline_util_reset: module id = 10, action = 0xb6ea64c1
01-23 19:18:47.353: E/mm-camera(197): isp_pipeline_util_reset: module id = 11, action = 0xb6e9a1b1
01-23 19:18:47.353: E/mm-camera(197): isp_pipeline_util_reset: module id = 12, action = 0xb6e9cf19
01-23 19:18:47.353: E/mm-camera(197): isp_pipeline_util_reset: module id = 13, action = 0xb6ea7ae1
01-23 19:18:47.353: E/mm-camera(197): isp_pipeline_util_reset: module id = 14, action = 0xb6e9e051
01-23 19:18:47.353: E/mm-camera(197): isp_pipeline_util_reset: module id = 15, action = 0xb6eb7509
01-23 19:18:47.353: E/mm-camera(197): isp_pipeline_util_reset: module id = 16, action = 0xb6ea1991
01-23 19:18:47.353: E/mm-camera(197): isp_pipeline_util_reset: module id = 17, action = 0xb6e9b169
01-23 19:18:47.353: E/mm-camera(197): isp_pipeline_util_reset: module id = 18, action = 0xb6eb2295
01-23 19:18:47.353: E/mm-camera(197): isp_pipeline_util_reset: module id = 19, action = 0xb6ea04b1
01-23 19:18:47.353: E/mm-camera(197): isp_pipeline_util_reset: module id = 20, action = 0xb6eb9555
01-23 19:18:47.353: E/mm-camera(197): isp_pipeline_util_reset: module id = 22, action = 0xb6eaf855
01-23 19:18:47.413: E/mm-camera(197): ispif_streamoff: session_id = 1, active_streams = 0
01-23 19:18:47.413: E/mm-camera-sensor(197): module_sensor_module_process_event:2018 ide 10003 MCT_EVENT_CONTROL_STREAMOFF
01-23 19:18:47.413: E/mm-camera(197): mct_pipeline_process_set: Stream on/off returned
01-23 19:18:47.433: D/QCamera3Stream(181): static void* qcamera::QCamera3Stream::dataProcRoutine(void*): Exit
01-23 19:18:47.433: E/mm-camera(197): mct_pipeline_process_set:command=800000b
01-23 19:18:47.433: E/mm-camera(197): mct_pipeline_process_set: stream_type = 1, streamid 2
01-23 19:18:47.433: E/mm-camera-sensor(197): port_sensor_caps_unreserve:169 ide 10002
01-23 19:18:47.433: E/mm-camera(197): cpp_port_check_caps_unreserve:170, identity=0x10002
01-23 19:18:47.433: E/mm-camera(197): cpp_port_check_caps_unreserve:179, identity=0x10002, unreserved
01-23 19:18:47.433: E/mm-camera(197): cpp_port_check_caps_unreserve:170, identity=0x10002
01-23 19:18:47.433: E/mm-camera(197): cpp_port_check_caps_unreserve:179, identity=0x10002, unreserved
01-23 19:18:47.433: E/mm-camera-img(197): faceproc_comp_abort:608] state 1
01-23 19:18:47.433: E/mm-camera-img(197): faceproc_save_album:774] Error No album 
01-23 19:18:47.433: E/mm-camera-img(197): faceproc_comp_eng_destroy: Album save failed -1
01-23 19:18:47.433: E/QCamera3Channel(181): virtual qcamera::QCamera3Channel::~QCamera3Channel(): deleting channel 58625
01-23 19:18:47.433: E/qomx_image_core(181): OMX_Deinit:101] Complete
01-23 19:18:47.443: D/QCamera3PostProc(181): int32_t qcamera::QCamera3PostProcessor::deinit(): Jpeg closed, rc = 0, mJpegClientHandle = 1400
01-23 19:18:47.443: E/mm-camera(197): mct_pipeline_process_set:command=800000b
01-23 19:18:47.443: E/mm-camera(197): mct_pipeline_process_set: stream_type = 6, streamid 3
01-23 19:18:47.443: E/mm-camera-sensor(197): port_sensor_caps_unreserve:169 ide 10003
01-23 19:18:47.443: E/mm-camera(197): cpp_port_check_caps_unreserve:170, identity=0x10003
01-23 19:18:47.443: E/mm-camera(197): cpp_port_check_caps_unreserve:179, identity=0x10003, unreserved
01-23 19:18:47.443: E/mm-camera(197): q3a_thread_aecawb_stop:308 MSG_STOP_THREAD
01-23 19:18:47.443: E/QCamera3Channel(181): virtual qcamera::QCamera3Channel::~QCamera3Channel(): deleting channel 59138
01-23 19:18:47.443: E/mm-camera(197): mct_pipeline_process_set:command=8000009
01-23 19:18:47.443: E/mm-camera(197): mct_pipeline_process_set: stream_type = 8, streamid 1
01-23 19:18:47.443: E/mm-camera(197): mct_pipeline_process_set: Stream on/off returned
01-23 19:18:47.443: D/QCamera3Stream(181): static void* qcamera::QCamera3Stream::dataProcRoutine(void*): Exit
01-23 19:18:47.443: E/mm-camera(197): mct_pipeline_process_set:command=800000b
01-23 19:18:47.443: E/mm-camera(197): mct_pipeline_process_set: stream_type = 8, streamid 1
01-23 19:18:47.453: E/QCamera3Channel(181): virtual qcamera::QCamera3Channel::~QCamera3Channel(): deleting channel 58112
01-23 19:18:47.453: E/mm-camera(197): mct_pipeline_process_set:command=800000b
01-23 19:18:47.453: E/mm-camera(197): mct_pipeline_get_stream: no children
01-23 19:18:47.453: E/mm-camera(197): mct_pipeline_process_set:1370: Couldn't find stream
01-23 19:18:47.453: E/mm-camera-sensor(197): module_sensor_stop_session:630 session 1
01-23 19:18:47.523: E/mm-camera(197): stats_module_stop_session: list =0xb7859748, remove port =0xb780caf8 name=stats_sink from module=0xb77c4778, name=stats
01-23 19:18:47.523: E/mm-camera(197): stats_module_stop_session: 1 port =0xb780caf8 name=stats_sink 
01-23 19:18:47.523: E/mm-camera(197): stats_module_stop_session: 2 port =0xb780caf8 name=stats_sink 
01-23 19:18:47.523: I/mm-camera(197): gyro_module_stop_session: Enter
01-23 19:18:47.523: I/mm-camera(197): gyro_module_stop_session: Deinit DSPS
01-23 19:18:47.523: I/mm-camera(197): gyro_module_stop_session: Exit successful
01-23 19:18:47.523: E/mm-camera(197): stats_module_stop_session: 3 port =0xb780caf8 name=stats_sink 
01-23 19:18:47.523: E/mm-camera(197): cpp_module_stop_session:453, info: stopping session 1 ...
01-23 19:18:47.523: E/mm-camera(197): cpp_thread_process_pipe_message:359, CPP_THREAD_MSG_ABORT: cpp_thread exiting..
01-23 19:18:47.523: E/mm-camera(197): cpp_module_stop_session:495, info: session 1 stopped.
01-23 19:18:47.523: E/mm-camera(197): c2d_module_stop_session:322, info: stopping session 1 ...
01-23 19:18:47.523: E/mm-camera(197): c2d_module_stop_session:327, info: stopping c2d_thread...
01-23 19:18:47.523: E/mm-camera(197): c2d_module_post_msg_to_thread:381, msg.type=1
01-23 19:18:47.523: E/mm-camera(197): c2d_thread_process_pipe_message:503, C2D_THREAD_MSG_ABORT: c2d_thread exiting..
01-23 19:18:47.523: E/mm-camera(197): c2d_module_stop_session:339, closing c2d subdev...
01-23 19:18:47.523: E/mm-camera(197): c2d_module_stop_session:361, info: session 1 stopped.
01-23 19:18:47.523: I/Camera2Client(181): Camera 0: Closed
01-23 19:18:47.533: I/Camera2ClientBase(181): Closed Camera 0
01-23 19:18:50.353: D/NiLS(27474): TYPE_WINDOW_STATE_CHANGED com.google.android.googlequicksearchbox

Nicht das am Ende doch noch viel falsches im Hintergrund passiert ;)

Danke!
mfg
Felix
 
Sieht nicht so aus als könntest du das beeinflussen, probier doch mal die normale Camera App aus und guck ob das da auch auftritt
Wenn ja, liegt es nicht an deinem Programm. ;)
 
  • Danke
Reaktionen: Feelix333
Hallo,

Ich habe das ganze jetzt mit der vergleichbaren App "Taschenlampe Tiny Flashlight" getestet und tatsächlich tauchen dabei in LogCat die selben "Fehler"-meldungen auf.

Allerdings hab ich einen anderen Fehler entdeckt:
Ich öffne die App, klicke auf den Button und das Licht geht an.
Dann verlasse ich die App wieder und das Licht bleibt an.
Wenn ich jetzt die App wieder öffne und auf den Button klicke wird die App beendet.
LogCat gibt wieder aus:

FATAL EXCEPTION: main
Fail to connect to camera service


Der Code ist immer noch:
Code:
if (arg0 == button1) {
			
			if (!isOn) {
                cam = Camera.open();
            vibrator1.vibrate(80);
            try {
            cam.setPreviewDisplay(surfaceView.getHolder());
            }
            catch (java.io.IOException ioe) {

            }
            Camera.Parameters params = cam.getParameters();
            params.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH);
            cam.setParameters(params);
            cam.startPreview();
            cam.autoFocus(new Camera.AutoFocusCallback() {
            public void onAutoFocus(boolean success, Camera camera) {
            }
                });
            isOn = true ;
            }
            else {
                if (cam != null) {
                	vibrator1.vibrate(80);
                 cam.stopPreview();
                cam.release();
             }
                isOn = false;

            }		
		}

Gruß
Felix
 
Dann solltest du in der OnPause bzw der onStop Methode die Cam releasen und das ganze beenden.
 
  • Danke
Reaktionen: Feelix333
Das Licht kann und soll ja trotzdem an bleiben, wenn die App verlassen wird.
Allerdings soll das Licht dann gestoppt werden, wenn die App erneut aufgerufen und der Button geklickt wird.

Ich habe jetzt folgendes umgebaut:
(Was allerdings nicht funktioniert - 'fail to connect to camera service')

Code:
if (arg0 == button1) {
			
			[B]if (isOn) {
				vibrator1.vibrate(80);
                cam.stopPreview();
                cam.release();
			}
			else {[/B]

Im Else-Zweig kommt dann der komplette if (!isOn)... Code wie er oben steht.

Damit sollte doch am Anfang geprüft werden ob die Kamera an ist und wenn ja die Preview stoppen und die Cam releasen.
Und wenn sie nicht ganz normal mit dem Code weitermachen?


mfg
felix
 
Zuletzt bearbeitet:
ne das problem ist, wenn du deine App beendest und neu aufrufst, wird ja im zweifel die komplette App neu gestartet.. das ist "isOn" wieder false, was ja der Standardwert ist.

Aber wenn du die beiden Zweige einfach tauscht und die Prüfung auch umdrehst ändert sich ja nix.

if (true) {
mache true zeug
}
else {
mache false zeug
}

Ist das gleiche wie
if (false) {
mache false zeug
}
else {
mache true zeug
}

Es ändert sich nichts an der Reihenfolge wie das ausgeführt wird.
Das Problem wird sein, dass du wenn du die App neu aufrufst das "isOn" dann IMMER false ist.

Guck mal in die Doku zu Camera obs da nicht ne methode gibt wie man evtl an die alte Verbindung zur Kamera wieder ran kommt.

Also inder Doku steht:
Important: Call release() to release the camera for use by other applications. Applications should release the camera immediately in onPause() (and re-open() it in onResume()).

evtl guckst du dir mal die Methoden "unlock()" und "reconnect()"

bei "open()" steht noch:
You must call release() when you are done using the camera, otherwise it will remain locked and be unavailable to other applications.

Ich halte es für keine gute idee das deine App auch wenn sie geschlossen wird weiterhin die Camera offen hält und das Licht anlässt.
Im zweifel hast du keinen Einfluß darauf, wenn z.B. jemand anruft und du erst mal ne Stunde am Telefon hängst leuchtet die ganze zeit die Lampe. etc.

Die Camera (das hardware stück) existiert halt nur ein einziges mal, deshalb sollte man es auch nicht länger locken als die eigene Anwendung "lebt".
Das mit dem Blitz als Taschenlampe ist ja sowieso eher ein mieser hack, dafür ist die LED auch gar nicht ausgelegt.
 
  • Danke
Reaktionen: Feelix333
Ah stimmt... isOn wird ja am Anfang auf false gesetzt.
Danke!

Hab bisschen rumgelesen, mit "mPreview.getHolder().removeCallback(mPreview);" muss man nach dem release() scheinbar wieder an die Kamera kommen.

Ich halte es für keine gute idee das deine App auch wenn sie geschlossen wird weiterhin die Camera offen hält und das Licht anlässt.
Im zweifel hast du keinen Einfluß darauf, wenn z.B. jemand anruft und du erst mal ne Stunde am Telefon hängst leuchtet die ganze zeit die Lampe. etc.

Die Camera (das hardware stück) existiert halt nur ein einziges mal, deshalb sollte man es auch nicht länger locken als die eigene Anwendung "lebt".
Das mit dem Blitz als Taschenlampe ist ja sowieso eher ein mieser hack, dafür ist die LED auch gar nicht ausgelegt.

Aber du hast mich überzeugt - auch wenn es andere App so machen habe ich jetzt ein onPause eingefügt.
Damit funkioniert es :)

Code:
protected void onPause() {
	    super.onPause();
	    try
	    {    
	         cam.stopPreview(); 
	         cam.setPreviewCallback(null);
	         cam.release();
	         cam = null;

	    }
	    catch(Exception e)
	    {
	        e.printStackTrace();
	    }
	}


Gruß
Felix
 
Zurück
Oben Unten