(SNPE1.19.2)在HAL层调用SNPE.so文件时的crash问题。
无知无为 2018-10-24 09:07:51 将/snpe-1.19.2/examples/NativeCpp/SampleCode/jni中的main.cpp的代码修改成传参数的函数,传输到dlc, output, inputFile 等参数,然后封装成libdeepmodel.so文件,在HAL调用。总是出现crash,如下:
01-02 08:19:18.494 3300 3300 F DEBUG : backtrace:
01-02 08:19:18.494 3300 3300 F DEBUG : #00 pc 00046e90 /system/lib/libc.so (pthread_create+227)
01-02 08:19:18.494 3300 3300 F DEBUG : #01 pc 00064eb7 /system/vendor/lib/libCB.so (cl_a5x_ddl_create_device_context+570)
01-02 08:19:18.494 3300 3300 F DEBUG : #02 pc 00027877 /system/vendor/lib/libCB.so (cb_create_context+630)
01-02 08:19:18.494 3300 3300 F DEBUG : #03 pc 00008d51 /system/vendor/lib/libOpenCL.so (qCLDrvAPI_clCreateContext+44)
01-02 08:19:18.494 3300 3300 F DEBUG : #04 pc 00085f7f /system/lib/libSNPE.so
01-02 08:19:18.495 3300 3300 F DEBUG : #05 pc 00086721 /system/lib/libSNPE.so
01-02 08:19:18.495 3300 3300 F DEBUG : #06 pc 00049bad /system/lib/libSNPE.so
01-02 08:19:18.495 3300 3300 F DEBUG : #07 pc 00049caf /system/lib/libSNPE.so
01-02 08:19:18.495 3300 3300 F DEBUG : #08 pc 00047b27 /system/lib/libSNPE.so (_ZN3zdl4SNPE11SNPEFactory18isRuntimeAvailableENS_8DlSystem9Runtime_tE+90)
01-02 08:19:18.495 3300 3300 F DEBUG : #09 pc 00006473 /system/lib/hw/libdeepmodel.so (_Z12checkRuntimev+126)
01-02 08:19:18.495 3300 3300 F DEBUG : #10 pc 0000630f /system/lib/hw/libdeepmodel.so (SnpeDLC+542)
01-02 08:19:18.495 3300 3300 F DEBUG : #11 pc 0009d95d /system/lib/hw/camera.msm8996.so (_ZN7qcamera25QCamera2HardwareInterface25preview_stream_cb_routineEP21mm_camera_super_buf_tPNS_13QCameraStreamEPv+1448)
01-02 08:19:18.495 3300 3300 F DEBUG : #12 pc 00093c99 /system/lib/hw/camera.msm8996.so (_ZN7qcamera13QCameraStream15dataProcRoutineEPv+88)
01-02 08:19:18.495 3300 3300 F DEBUG : #13 pc 00046fe3 /system/lib/libc.so (_ZL15__pthread_startPv+22)
01-02 08:19:18.495 3300 3300 F DEBUG : #14 pc 00019ced /system/lib/libc.so (__start_thread+6)
01-02 08:19:18.504 833 3265 I mm-camera: <MCT >< INFO> 1021: mct_controller_handle_SOF_proc: (sofdelay, curr_sofdelay) = (0, 0) kptr 113
01-02 08:19:18.514 833 3258 E mm-camera: <STATS_AEC ><ERROR> 2096: aec_process_calc_current_hist_metered_luma: error: out of range, exit
01-02 08:19:18.534 833 3252 E mm-camera: <CPP ><ERROR> 1608: cpp_hardware_process_frame: processing frame failed -11
01-02 08:19:18.539 833 3265 I mm-camera: <MCT >< INFO> 1021: mct_controller_handle_SOF_proc: (sofdelay, curr_sofdelay) = (0, 0) kptr 114
01-02 08:19:18.553 833 3258 E mm-camera: <STATS_AEC ><ERROR> 2096: aec_process_calc_current_hist_metered_luma: error: out of range, exit
01-02 08:19:18.556 833 3252 E mm-camera: <CPP ><ERROR> 1608: cpp_hardware_process_frame: processing frame failed -11
01-02 08:19:18.574 567 674 W SurfaceFlinger: EventThread: dropping event (7673796e) for connection 0x7fa0d77170
01-02 08:19:18.579 833 3265 I mm-camera: <MCT >< INFO> 1021: mct_controller_handle_SOF_proc: (sofdelay, curr_sofdelay) = (0, 0) kptr 115
01-02 08:19:18.586 833 3258 E mm-camera: <STATS_AEC ><ERROR> 2096: aec_process_calc_current_hist_metered_luma: error: out of range, exit
01-02 08:19:18.589 735 957 E audio_hw_primary: start_output_stream: pcm_prepare returned -1
01-02 08:19:18.589 567 674 W SurfaceFlinger: EventThread: dropping event (7673796e) for connection 0x7fa0d77170
01-02 08:19:18.593 833 3252 E mm-camera: <CPP ><ERROR> 1608: cpp_hardware_process_frame: processing frame failed -11
01-02 08:19:18.606 567 674 W SurfaceFlinger: EventThread: dropping event (7673796e) for connection 0x7fa0d77170
01-02 08:19:18.611 833 3265 I mm-camera: <MCT >< INFO> 1021: mct_controller_handle_SOF_proc: (sofdelay, curr_sofdelay) = (0, 0) kptr 116
01-02 08:19:18.621 833 3258 E mm-camera: <STATS_AEC ><ERROR> 2096: aec_process_calc_current_hist_metered_luma: error: out of range, exit
01-02 08:19:18.623 567 674 W SurfaceFlinger: EventThread: dropping event (7673796e) for connection 0x7fa0d77170
01-02 08:19:18.623 735 957 D audio_hw_primary: disable_audio_route: reset and update mixer path: low-latency-playback
01-02 08:19:18.627 735 957 D soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_id 1 of type 0 for Event 2, with Raise=0
01-02 08:19:18.627 735 957 D hardware_info: hw_info_append_hw_type : device_name = speaker-db
01-02 08:19:18.627 735 957 D audio_hw_primary: disable_snd_device: snd_device(2: speaker-db)
01-02 08:19:18.627 735 957 D msm8974_platform: platform_can_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0)
01-02 08:19:18.627 735 957 E audio_route: unable to find path 'speaker-db'
如果有哪位大神看到,希望能给出问题分析或者给指出一个思考这类问题的方向。非常感谢。