bytedeco / javacv

Java interface to OpenCV, FFmpeg, and more
Other
7.58k stars 1.58k forks source link

dlopen failed: cannot locate symbol "av_version_info" referenced by "libjniavutil.so" #1084

Closed kigkrazy closed 6 years ago

kigkrazy commented 6 years ago

the test demo is javacv-android-recognize.
the environment is below

I'm sorry,I see some problem,but I don't understant solved it.

get an crash

    disable_snd_device: snd_device(2: speaker)
11-06 00:36:20.057 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:36:20.072 201-866/? D/audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
11-06 00:36:20.076 8808-8808/? I/Timeline: Timeline: Activity_launch_request id:org.bytedeco.javacv.android.recognize.example time:4734281

    --------- beginning of system
11-06 00:36:20.077 773-1278/? I/ActivityManager: START u0 {cmp=org.bytedeco.javacv.android.recognize.example/.OpenCvRecognizeActivity} from uid 11051 on display 0
11-06 00:36:20.081 773-1278/? V/WindowManager: addAppToken: AppWindowToken{2ee851c0 token=Token{14eb2743 ActivityRecord{3b3a4f2 u0 org.bytedeco.javacv.android.recognize.example/.OpenCvRecognizeActivity t5880}}} to stack=1 task=5880 at 1
11-06 00:36:20.084 201-803/? D/audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: none)
11-06 00:36:20.084 201-803/? D/msm8974_platform: platform_send_audio_calibration: sending audio calibration for snd_device(2) acdb_id(15)
11-06 00:36:20.084 201-803/? D/audio_hw_primary: enable_snd_device: snd_device(2: speaker)
11-06 00:36:20.088 201-803/? D/audio_hw_primary: enable_audio_route: apply and update mixer path: low-latency-playback
11-06 00:36:20.095 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:36:20.103 773-846/? V/WindowManager: rotationForOrientationLw(orient=1, last=0); user=0 USER_ROTATION_LOCKED
11-06 00:36:20.121 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:36:20.359 8808-8808/? W/linker: libjniopencv_core.so: unused DT entry: type 0xf arg 0x6a8a5
11-06 00:36:20.557 8808-8808/? W/linker: libjniopencv_imgproc.so: unused DT entry: type 0xf arg 0x33178
11-06 00:36:20.623 8808-8808/? W/linker: libjniopencv_imgcodecs.so: unused DT entry: type 0xf arg 0x4924
11-06 00:36:20.796 8808-8808/? W/linker: libjniopencv_videoio.so: unused DT entry: type 0xf arg 0x3147
11-06 00:36:20.999 8808-8808/? W/linker: libjniopencv_highgui.so: unused DT entry: type 0xf arg 0x8afd
11-06 00:36:21.062 8808-8808/? W/linker: libjniopencv_ml.so: unused DT entry: type 0xf arg 0x9657
11-06 00:36:21.293 8808-8808/? W/linker: libjniopencv_objdetect.so: unused DT entry: type 0xf arg 0xd92e
11-06 00:36:21.520 8808-8808/? W/linker: libjniopencv_face.so: unused DT entry: type 0xf arg 0x3d12
11-06 00:36:22.037 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:36:22.039 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:36:22.041 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
11-06 00:36:22.042 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:36:22.044 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:36:22.048 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
11-06 00:36:22.049 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:36:22.051 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
11-06 00:36:22.052 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:36:22.053 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:36:22.056 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
11-06 00:36:22.057 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:36:22.060 773-795/? V/WindowManager: Adding window Window{dd31e3e u0 org.bytedeco.javacv.android.recognize.example/org.bytedeco.javacv.android.recognize.example.OpenCvRecognizeActivity} at 4 of 10 (after Window{434b7a7 u0 org.bytedeco.javacv.android.recognize.example/org.bytedeco.javacv.android.recognize.example.MainActivity})
11-06 00:36:22.062 8808-8808/? I/Choreographer: Skipped 115 frames!  The application may be doing too much work on its main thread.
11-06 00:36:22.063 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:36:22.066 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:36:22.067 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:36:22.067 8808-8808/? I/CvCameraPreview: onMeasure(): set surface dimension to 796x1061
11-06 00:36:22.092 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:36:22.092 8808-8808/? I/CvCameraPreview: onMeasure(): set surface dimension to 1276x1701
11-06 00:36:22.095 773-1238/? V/WindowManager: Adding window Window{1ee0c9ec u0 SurfaceView} at 4 of 11 (before Window{dd31e3e u0 org.bytedeco.javacv.android.recognize.example/org.bytedeco.javacv.android.recognize.example.OpenCvRecognizeActivity})
11-06 00:36:22.099 8808-8808/? D/CvCameraPreview: call checkCurrentState
    call processExitState: 0
    call processEnterState: 1
    call onEnterStartedState
    Connecting to camera
11-06 00:36:22.103 201-874/? W/AudioFlinger: acquireAudioSessionId() unknown client 8808 for session 93
11-06 00:36:22.111 201-8860/? I/FFmpegExtractor: android-source:0xb4490060
11-06 00:36:22.114 201-8860/? I/FFMPEG: Input #0, ogg, from 'android-source:0xb4490060':
      Duration: 00:00:00.42, start: 0.000000, bitrate: 113 kb/s
        Stream #0:0: Audio: vorbis, 48000 Hz, mono, fltp, 48 kb/s
        Metadata:
          TITLE           : Camera Shutter
          ARTIST          : (c) 2012 Android Open Source Project
11-06 00:36:22.114 201-8860/? D/FFmpegExtractor: FFmpegExtrator, url: android-source:0xb4490060, format_name: ogg, format_long_name: Ogg
11-06 00:36:22.114 201-8860/? I/FFmpegExtractor: adjust mime(application/ogg -> audio/vorbis)
11-06 00:36:22.114 201-8860/? D/FFmpegExtractor: suppoted codec(vorbis) by official Stagefright
    ffmpeg detected media content as 'audio/vorbis' with confidence 0.08
11-06 00:36:22.129 201-874/? W/AudioFlinger: acquireAudioSessionId() unknown client 8808 for session 94
11-06 00:36:22.136 201-8862/? I/FFmpegExtractor: android-source:0xb44be7e0
11-06 00:36:22.139 201-8862/? I/FFMPEG: Input #0, ogg, from 'android-source:0xb44be7e0':
      Duration: 00:00:00.54, start: 0.000000, bitrate: 95 kb/s
        Stream #0:0: Audio: vorbis, 48000 Hz, mono, fltp, 48 kb/s
        Metadata:
          TITLE           : Video Record
          ARTIST          : (c) 2012 Android Open Source Project
11-06 00:36:22.139 201-8862/? D/FFmpegExtractor: FFmpegExtrator, url: android-source:0xb44be7e0, format_name: ogg, format_long_name: Ogg
11-06 00:36:22.139 201-8862/? I/FFmpegExtractor: adjust mime(application/ogg -> audio/vorbis)
11-06 00:36:22.139 201-8862/? D/FFmpegExtractor: suppoted codec(vorbis) by official Stagefright
    ffmpeg detected media content as 'audio/vorbis' with confidence 0.08
11-06 00:36:22.152 201-874/? I/Camera2ClientBase: Camera 1: Opened. Client: org.bytedeco.javacv.android.recognize.example (PID 8808, UID 11051)
11-06 00:36:22.154 201-874/? D/mm-camera-intf: mm_camera_open: dev name = /dev/video2, cam_idx = 2
11-06 00:36:22.158 214-214/? I/mm-camera-sensor: module_sensor_start_session:583 session 2
11-06 00:36:22.376 214-214/? I/mm-camera-sensor: module_sensor_init_session:477 ois device is not supported
11-06 00:36:22.397 214-214/? I/mm-camera: gyro_module_start_session: Enter
    gyro_module_start_session: Init DSPS
11-06 00:36:22.397 214-214/? E/mm-camera: Failed to open sensor1 port
11-06 00:36:22.397 214-214/? I/mm-camera: gyro_module_start_session: dsps_proc_init() failed
11-06 00:36:22.398 214-214/? I/mm-camera: gyro_module_get_port: Exit failure
    cpp_module_start_session:352, info: starting session 2
11-06 00:36:22.439 214-8863/? I/mm-camera: cpp_thread_func:55: cpp_thread entering the polling loop...
11-06 00:36:22.439 214-214/? I/mm-camera: cpp_module_start_session:431, info: cpp_thread created.
    cpp_module_start_session:434, info: session 2 started.
    c2d_module_start_session:246, info: starting session 2
11-06 00:36:22.441 214-8864/? I/mm-camera: c2d_thread_func:39: c2d_thread entering the polling loop...
11-06 00:36:22.441 214-214/? I/mm-camera: c2d_module_start_session:284, info: c2d_thread created.
11-06 00:36:22.452 214-214/? I/mm-camera: c2d_module_start_session:306, info: session 2 started.
11-06 00:36:22.458 214-214/? I/mm-camera-sensor: module_module_set_session_data:2666 max delay 2 report dSelay 1
11-06 00:36:22.458 214-214/? D/mm-camera: module_faceproc_set_session_data:1836] Per frame control 2 1
11-06 00:36:22.464 201-874/? D/mm-camera-intf: mm_camera_open:  opened, break out while loop
11-06 00:36:22.467 201-874/? I/Camera2-Parameters: Camera 1: Disabling ZSL mode
11-06 00:36:22.468 8808-8808/? I/CvCameraPreview: initializeCamera(): successfully set camera #1
11-06 00:36:22.469 8808-8808/? I/CvCameraPreview: determineBestSize(): bestSize is 640x480
11-06 00:36:22.471 8808-8808/? D/CvCameraPreview: setupCamera(): settings applied:
        preview size: 640x480
        picture size: 1280x960
11-06 00:36:22.472 8808-8808/? D/CvCameraPreview: setCameraCallback()
11-06 00:36:22.475 8808-8808/? I/CvCameraPreview: init filter with width = 640 and height = 480 and degree = 90 and isFrontFaceCamera = true
11-06 00:36:22.524 8808-8808/? W/linker: libjniavutil.so: unused DT entry: type 0xf arg 0x18b9d
    libjniavutil.so: unused DT entry: type 0x6ffffffe arg 0x221dc
    libjniavutil.so: unused DT entry: type 0x6fffffff arg 0x1
11-06 00:36:22.524 8808-8808/? E/art: dlopen("/data/app/org.bytedeco.javacv.android.recognize.example-1/lib/arm/libjniavutil.so", RTLD_LAZY) failed: dlopen failed: cannot locate symbol "av_version_info" referenced by "libjniavutil.so"...
11-06 00:36:22.526 8808-8808/? I/CvCameraPreview: filter initialize success
11-06 00:36:22.527 201-873/? D/QCamera3HWI: int qcamera::QCamera3HardwareInterface::configureStreams(camera3_stream_configuration_t*): newStream type = 0, stream format = 34 stream size : 640 x 480
    int qcamera::QCamera3HardwareInterface::configureStreams(camera3_stream_configuration_t*): newStream type = 0, stream format = 33 stream size : 1280 x 960
    int qcamera::QCamera3HardwareInterface::configureStreams(camera3_stream_configuration_t*): newStream type = 0, stream format = 35 stream size : 640 x 480
11-06 00:36:22.528 214-8866/? I/mm-camera: mct_pipeline_process_set:command=800000a
11-06 00:36:22.529 214-8866/? I/mm-camera: mct_pipeline_process_set:command=8000012
11-06 00:36:22.529 214-8866/? D/mm-camera: mct_stream_start_link: Metadata
11-06 00:36:22.529 201-873/? E/mm-camera-intf: mm_stream_get_v4l2_fmt: Unknown fmt=78
11-06 00:36:22.529 214-8866/? I/mm-camera: mct_pipeline_process_set:command=8000004
11-06 00:36:22.534 201-873/? I/qomx_image_core: OMX_Init:84] Complete 1
11-06 00:36:22.534 214-8866/? E/mm-camera: mct_pipeline_get_stream: stream not found in the list
11-06 00:36:22.534 214-8866/? I/mm-camera: mct_pipeline_process_set: Couldn't find preview stream; Storing for later
11-06 00:36:22.535 201-873/? D/Camera3-Stream: registerBuffersLocked: Skipping NULL check for deprecated register_stream_buffers
11-06 00:36:22.535 8808-8857/? I/TrainHelper: Loaded cascade classifier from /data/data/org.bytedeco.javacv.android.recognize.example/app_xml/temp.xml
11-06 00:36:22.535 201-873/? D/Camera3-Stream: registerBuffersLocked: Skipping NULL check for deprecated register_stream_buffers
    registerBuffersLocked: Skipping NULL check for deprecated register_stream_buffers
11-06 00:36:22.537 8808-8808/? D/CvCameraPreview: Starting processing thread
11-06 00:36:22.540 214-8866/? I/mm-camera: mct_pipeline_process_set:command=800000a
11-06 00:36:22.540 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:36:22.541 214-8866/? I/mm-camera: mct_pipeline_process_set:command=8000012
11-06 00:36:22.541 214-8866/? D/mm-camera: mct_stream_start_link: Callback
    mct_stream_link_modules: Linking modules sensor and iface
11-06 00:36:22.541 214-8866/? I/mm-camera-sensor: port_sensor_caps_reserve:120 ide 20002 stream type 5 w*h 640*480
11-06 00:36:22.541 214-8866/? D/mm-camera: mct_stream_link_modules: Linking modules iface and isp
    mct_stream_link_modules: Linking modules isp and pproc
11-06 00:36:22.541 214-8866/? I/mm-camera: cpp_port_check_caps_reserve:77, identity=0x20002
    cpp_port_check_caps_reserve:143, identity=0x20002, reserved
11-06 00:36:22.541 214-8866/? E/mm-camera: cpp_module_notify_add_stream:1290 failed: invalid stream type 5
11-06 00:36:22.541 214-8866/? I/mm-camera: cpp_module_notify_add_stream:1327, info: success, identity=0x20002
11-06 00:36:22.541 214-8866/? D/mm-camera: mct_stream_link_modules: Linking modules pproc and faceproc
11-06 00:36:22.541 214-8866/? I/mm-camera: cpp_port_check_caps_reserve:77, identity=0x20002
    cpp_port_check_caps_reserve:143, identity=0x20002, reserved
11-06 00:36:22.541 214-8866/? D/mm-camera: module_faceproc_client_create:1161] Face proc feature mask e 0
    mct_stream_link_modules: Linking modules isp and stats
11-06 00:36:22.541 214-8866/? I/mm-camera-sensor: sensor_get_output_dimension:2198 requested dim 1280 960 stream mask 62
    sensor_get_output_dimension:2218 pick res 0 dim 1288 968
11-06 00:36:22.541 214-8866/? I/mm-camera: isp_util_save_stream_info: Stream type: 6 Dimension: 1280x960 port: 0 scratch: 1
    isp_util_save_stream_info: Stream type: 1 Dimension: 640x480 port: 1 scratch: 0
    isp_util_save_stream_info: Stream type: 5 Dimension: 640x480 port: 1 scratch: 0
11-06 00:36:22.542 214-8866/? I/mm-camera: mct_pipeline_process_set:command=8000004
11-06 00:36:22.543 214-8866/? I/mm-camera: mct_pipeline_process_set:command=800000a
    mct_pipeline_process_set:command=8000012
11-06 00:36:22.543 214-8866/? D/mm-camera: mct_stream_start_link: Preview/Postview
    mct_stream_link_modules: Linking modules sensor and iface
11-06 00:36:22.543 214-8866/? I/mm-camera-sensor: port_sensor_caps_reserve:120 ide 20003 stream type 1 w*h 640*480
11-06 00:36:22.543 214-8866/? D/mm-camera: mct_stream_link_modules: Linking modules iface and isp
    mct_stream_link_modules: Linking modules isp and pproc
11-06 00:36:22.543 214-8866/? I/mm-camera: mct_get_compatible_dest_port: Check link failed
    mct_get_compatible_dest_port: Check link failed
    mct_get_compatible_dest_port: Check link failed
    mct_get_compatible_dest_port: Check link failed
    cpp_port_check_caps_reserve:77, identity=0x20003
11-06 00:36:22.544 214-8866/? I/mm-camera: cpp_port_check_caps_reserve:143, identity=0x20003, reserved
    cpp_module_notify_add_stream:1327, info: success, identity=0x20003
11-06 00:36:22.544 214-8866/? D/mm-camera: mct_stream_link_modules: Linking modules pproc and faceproc
11-06 00:36:22.544 214-8866/? I/mm-camera: cpp_port_check_caps_reserve:77, identity=0x20003
    cpp_port_check_caps_reserve:143, identity=0x20003, reserved
11-06 00:36:22.544 214-8866/? D/mm-camera: mct_stream_link_modules: Linking modules isp and stats
11-06 00:36:22.548 214-8866/? I/mm-camera: mct_pipeline_process_set:command=8000004
11-06 00:36:22.550 214-8866/? I/mm-camera: mct_pipeline_process_set:command=800000a
11-06 00:36:22.551 214-8866/? I/mm-camera: mct_pipeline_process_set:command=8000012
11-06 00:36:22.551 214-8866/? D/mm-camera: mct_stream_start_link: Regular/ZSL snapshot
    mct_stream_link_modules: Linking modules sensor and iface
11-06 00:36:22.551 214-8866/? I/mm-camera-sensor: port_sensor_caps_reserve:120 ide 20004 stream type 6 w*h 1280*960
11-06 00:36:22.551 214-8866/? D/mm-camera: mct_stream_link_modules: Linking modules iface and isp
    mct_stream_link_modules: Linking modules isp and pproc
11-06 00:36:22.551 214-8866/? I/mm-camera: mct_get_compatible_dest_port: Check link failed
    mct_get_compatible_dest_port: Check link failed
    mct_get_compatible_dest_port: Check link failed
    mct_get_compatible_dest_port: Check link failed
    mct_get_compatible_dest_port: Check link failed
11-06 00:36:22.552 214-8866/? I/mm-camera: cpp_port_check_caps_reserve:77, identity=0x20004
    cpp_port_check_caps_reserve:143, identity=0x20004, reserved
    cpp_module_notify_add_stream:1327, info: success, identity=0x20004
11-06 00:36:22.552 214-8866/? D/mm-camera: mct_stream_link_modules: Linking modules isp and stats
11-06 00:36:22.554 214-8866/? I/mm-camera: mct_pipeline_process_set:command=8000004
11-06 00:36:22.554 201-8870/? D/QCamera3HWI: int qcamera::QCamera3HardwareInterface::processCaptureRequest(camera3_capture_request_t*): Start META Channel
11-06 00:36:22.558 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:36:22.567 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
11-06 00:36:22.568 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:36:22.577 773-840/? I/ActivityManager: Displayed org.bytedeco.javacv.android.recognize.example/.OpenCvRecognizeActivity: +2s475ms
11-06 00:36:22.580 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:36:22.580 8808-8808/? I/CvCameraPreview: onMeasure(): set surface dimension to 1276x1701
11-06 00:36:22.582 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:36:22.584 201-8870/? D/mm-camera-intf: mm_stream_qbuf: Starting poll on stream 0xb13ab15c type :8
    mm_stream_qbuf: Started poll on stream 0xb13ab15c type :8
11-06 00:36:22.585 214-8866/? I/mm-camera: mct_pipeline_process_set:command=8000008
    mct_pipeline_process_set: stream_type = 8, streamid 1
11-06 00:36:22.586 214-8866/? I/mm-camera: mct_pipeline_process_set: Stream on/off returned
11-06 00:36:22.586 201-8870/? D/QCamera3HWI: int qcamera::QCamera3HardwareInterface::processCaptureRequest(camera3_capture_request_t*): Start Regular Channel mask=2
11-06 00:36:22.588 214-8866/? I/mm-camera: mct_pipeline_process_set:command=8000008
    mct_pipeline_process_set: stream_type = 1, streamid 3
11-06 00:36:22.588 214-8866/? I/mm-camera-sensor: module_sensor_module_process_event:2101 ide 20003 MCT_EVENT_CONTROL_STREAMON
    module_sensor_stream_on:827 ide 20003 SENSOR_START_STREAM
11-06 00:36:22.589 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:36:22.589 214-8866/? I/mm-camera-sensor: module_sensor_stream_on:1041 SENSOR_SET_RESOLUTION 1280*960 mask 62
    sensor_set_resolution:1370 width 1280, height 960
    sensor_set_resolution:1372 stream mask 62 hfr mode 0 fps 30.000000
    sensor_set_resolution:1381 cur res 8 new res 0
11-06 00:36:22.591 214-8866/? I/mm-camera: port_isp_module_event: E, identity = 0x20002, IFACE_SET_STREAM_CONFIG
    isp_sink_port_stream_config: E, session_id = 2, stream_id = 2, stream_type = 5
    isp_sink_port_stream_config: session_id = 2, stream_id = 2, is_split = 0
    isp_sink_port_stream_config: old vfe_id_mask = 0x0, new vfe_id_mask = 0x1
11-06 00:36:22.593 214-8866/? I/mm-camera: port_isp_module_event: E, identity = 0x20003, IFACE_SET_STREAM_CONFIG
    isp_sink_port_stream_config: E, session_id = 2, stream_id = 3, stream_type = 1
    isp_sink_port_stream_config: session_id = 2, stream_id = 3, is_split = 0
    isp_sink_port_stream_config: old vfe_id_mask = 0x1, new vfe_id_mask = 0x1
    port_isp_module_event: E, identity = 0x20004, IFACE_SET_STREAM_CONFIG
    isp_sink_port_stream_config: E, session_id = 2, stream_id = 4, stream_type = 6
    isp_sink_port_stream_config: session_id = 2, stream_id = 4, is_split = 0
    isp_sink_port_stream_config: old vfe_id_mask = 0x1, new vfe_id_mask = 0x1
    port_isp_mct_ctrl_cmd: E, identity = 0x20003, STREAMON
11-06 00:36:22.594 214-8866/? D/mm-camera: module_faceproc_port_event_func:662] FD_STREAMON 0 id 20003
11-06 00:36:22.594 214-8866/? D/mm-camera-img: faceproc_comp_cfg_debug:247] FaceProc cfg max_face_size 500
    faceproc_comp_cfg_debug:250] FaceProc cfg max_num_face_to_detect 5
    faceproc_comp_cfg_debug:253] FaceProc cfg min_face_size 50
    faceproc_comp_eng_config:1466] ###min_face_size 90
11-06 00:36:22.594 214-8866/? E/mm-camera-img: Face Album FILE EXISTS
11-06 00:36:22.594 214-8866/? I/mm-camera: cpp_module_handle_streamon_event:2058, identity=0x20003, stream-on done
11-06 00:36:22.595 214-8866/? I/mm-camera: isp_streamon: E, session_id = 2, stream_id = 3, stream_type = 1
11-06 00:36:22.596 214-8906/? I/mm-camera: isp_fmt_to_pix_pattern: format 29
    isp_fmt_to_pix_pattern: format 29
11-06 00:36:22.597 214-8866/? D/mm-camera: module_faceproc_port_event_func:835] MCT_EVENT_MODULE_ISP_OUTPUT_DIM stream info 640x480 identity 20003 20002
11-06 00:36:22.597 214-8905/? I/mm-camera: isp_fmt_to_pix_pattern: format 29
11-06 00:36:22.598 214-8905/? I/mm-camera: isp_fmt_to_pix_pattern: format 29
    wb_set_params: param_id is not supported in this module
11-06 00:36:22.600 214-8905/? I/mm-camera: isp_fmt_to_pix_pattern: format 29
11-06 00:36:22.602 8808-8808/? I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@29b7b596 time:4736806
11-06 00:36:22.602 214-8905/? I/mm-camera: stats_action_buf_config: cfg = 1, stats_mask = 0x5b8
11-06 00:36:22.604 214-8905/? I/mm-camera: stats_action: stats mask = 0x5b8
11-06 00:36:22.605 214-8866/? I/mm-camera: ispif_streamon: session_id = 2, active_streams = 1
11-06 00:36:22.606 214-8866/? I/mm-camera-sensor: module_sensor_stream_on:1027 ide 20003 SENSOR_START_STREAM
11-06 00:36:22.607 214-8866/? I/mm-camera: mct_pipeline_process_set: Stream on/off returned
11-06 00:36:22.607 201-8870/? D/QCamera3HWI: int qcamera::QCamera3HardwareInterface::processCaptureRequest(camera3_capture_request_t*): Start Regular Channel mask=64
11-06 00:36:22.609 214-8866/? I/mm-camera: mct_pipeline_process_set:command=8000008
    mct_pipeline_process_set: stream_type = 6, streamid 4
11-06 00:36:22.609 214-8866/? I/mm-camera-sensor: module_sensor_module_process_event:2101 ide 20004 MCT_EVENT_CONTROL_STREAMON
    module_sensor_stream_on:827 ide 20004 SENSOR_START_STREAM
11-06 00:36:22.609 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: E, identity = 0x20004, STREAMON
    cpp_module_handle_streamon_event:2058, identity=0x20004, stream-on done
    isp_streamon: E, session_id = 2, stream_id = 4, stream_type = 6
11-06 00:36:22.610 214-8906/? I/mm-camera: wb_set_params: param_id is not supported in this module
    wb_set_params: param_id is not supported in this module
    wb_set_params: param_id is not supported in this module
11-06 00:36:22.674 214-8866/? I/mm-camera: ispif_streamon: session_id = 2, active_streams = 2
    mct_pipeline_process_set: Stream on/off returned
11-06 00:36:22.675 201-8870/? D/QCamera3HWI: int qcamera::QCamera3HardwareInterface::processCaptureRequest(camera3_capture_request_t*): Start Regular Channel mask=32
11-06 00:36:22.676 214-8866/? I/mm-camera: mct_pipeline_process_set:command=8000008
    mct_pipeline_process_set: stream_type = 5, streamid 2
11-06 00:36:22.676 214-8866/? I/mm-camera-sensor: module_sensor_module_process_event:2101 ide 20002 MCT_EVENT_CONTROL_STREAMON
    module_sensor_stream_on:827 ide 20002 SENSOR_START_STREAM
11-06 00:36:22.676 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: E, identity = 0x20002, STREAMON
11-06 00:36:22.676 214-8866/? D/mm-camera: module_faceproc_port_event_func:667] FD_STREAMON for stream 20002
11-06 00:36:22.676 214-8866/? I/mm-camera: cpp_module_handle_streamon_event:2058, identity=0x20002, stream-on done
    isp_streamon: E, session_id = 2, stream_id = 2, stream_type = 5
11-06 00:36:22.677 214-8906/? I/mm-camera: wb_set_params: param_id is not supported in this module
    wb_set_params: param_id is not supported in this module
    wb_set_params: param_id is not supported in this module
11-06 00:36:22.677 214-8866/? D/mm-camera: module_faceproc_port_event_func:835] MCT_EVENT_MODULE_ISP_OUTPUT_DIM stream info 640x480 identity 20002 20002
11-06 00:36:22.677 214-8866/? E/mm-camera: module_faceproc_client_map_buffers:1205] client not in proper state 2
11-06 00:36:22.677 214-8866/? I/mm-camera: isp_ch_util_streamon: session_id = 2, channel_id = 2, already active.
    ispif_streamon: session_id = 2, active_streams = 3
    mct_pipeline_process_set: Stream on/off returned
11-06 00:36:22.682 201-8870/? D/mm-camera-intf: mm_stream_qbuf: Starting poll on stream 0xb13ab8b4 type :5
    mm_stream_qbuf: Started poll on stream 0xb13ab8b4 type :5
    mm_stream_qbuf: Starting poll on stream 0xb13ac00c type :1
11-06 00:36:22.684 201-8870/? D/mm-camera-intf: mm_stream_qbuf: Started poll on stream 0xb13ac00c type :1
11-06 00:36:22.688 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: E, identity = 0x20002, UPDATE_BUF_INFO
11-06 00:36:22.688 214-8866/? E/mm-camera: cpp_module_process_downstream_event:1063, Update buf queue: APPEND
    port_isp_mct_ctrl_cmd: error in isp_update_buf_info, identity = 0x20002
11-06 00:36:22.688 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: X, identity = 0x20002, UPDATE_BUF_INFO, ret = -1
    port_isp_mct_ctrl_cmd: E, identity = 0x20003, UPDATE_BUF_INFO
11-06 00:36:22.688 214-8866/? E/mm-camera: cpp_module_process_downstream_event:1063, Update buf queue: APPEND
    port_isp_mct_ctrl_cmd: error in isp_update_buf_info, identity = 0x20003
11-06 00:36:22.688 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: X, identity = 0x20003, UPDATE_BUF_INFO, ret = -1
11-06 00:36:22.693 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: E, identity = 0x20002, UPDATE_BUF_INFO
11-06 00:36:22.693 214-8866/? E/mm-camera: cpp_module_process_downstream_event:1063, Update buf queue: APPEND
    port_isp_mct_ctrl_cmd: error in isp_update_buf_info, identity = 0x20002
11-06 00:36:22.693 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: X, identity = 0x20002, UPDATE_BUF_INFO, ret = -1
11-06 00:36:22.694 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: E, identity = 0x20003, UPDATE_BUF_INFO
11-06 00:36:22.694 214-8866/? E/mm-camera: cpp_module_process_downstream_event:1063, Update buf queue: APPEND
    port_isp_mct_ctrl_cmd: error in isp_update_buf_info, identity = 0x20003
11-06 00:36:22.694 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: X, identity = 0x20003, UPDATE_BUF_INFO, ret = -1
11-06 00:36:22.700 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: E, identity = 0x20002, UPDATE_BUF_INFO
11-06 00:36:22.700 214-8866/? E/mm-camera: cpp_module_process_downstream_event:1063, Update buf queue: APPEND
    port_isp_mct_ctrl_cmd: error in isp_update_buf_info, identity = 0x20002
11-06 00:36:22.700 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: X, identity = 0x20002, UPDATE_BUF_INFO, ret = -1
11-06 00:36:22.701 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: E, identity = 0x20003, UPDATE_BUF_INFO
11-06 00:36:22.701 214-8866/? E/mm-camera: cpp_module_process_downstream_event:1063, Update buf queue: APPEND
    port_isp_mct_ctrl_cmd: error in isp_update_buf_info, identity = 0x20003
11-06 00:36:22.701 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: X, identity = 0x20003, UPDATE_BUF_INFO, ret = -1
11-06 00:36:22.706 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: E, identity = 0x20002, UPDATE_BUF_INFO
11-06 00:36:22.706 214-8866/? E/mm-camera: cpp_module_process_downstream_event:1063, Update buf queue: APPEND
    port_isp_mct_ctrl_cmd: error in isp_update_buf_info, identity = 0x20002
11-06 00:36:22.706 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: X, identity = 0x20002, UPDATE_BUF_INFO, ret = -1
11-06 00:36:22.707 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: E, identity = 0x20003, UPDATE_BUF_INFO
11-06 00:36:22.707 214-8866/? E/mm-camera: cpp_module_process_downstream_event:1063, Update buf queue: APPEND
    port_isp_mct_ctrl_cmd: error in isp_update_buf_info, identity = 0x20003
11-06 00:36:22.707 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: X, identity = 0x20003, UPDATE_BUF_INFO, ret = -1
11-06 00:36:22.713 214-8906/? E/mm-camera: gamma_config: size mismatch, expecting = 9468, received = 14608
    isp_pix_pipeline_set_col_tone_mode: module GAMMA config failed
11-06 00:36:22.832 186-186/? W/SurfaceFlinger: couldn't log to binary event log: overflow.
11-06 00:36:22.964 773-840/? I/Timeline: Timeline: Activity_windows_visible id: ActivityRecord{3b3a4f2 u0 org.bytedeco.javacv.android.recognize.example/.OpenCvRecognizeActivity t5880} time:4737169
11-06 00:36:22.969 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: E, identity = 0x20002, UPDATE_BUF_INFO
11-06 00:36:22.969 214-8866/? E/mm-camera: cpp_module_process_downstream_event:1063, Update buf queue: APPEND
    port_isp_mct_ctrl_cmd: error in isp_update_buf_info, identity = 0x20002
11-06 00:36:22.970 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: X, identity = 0x20002, UPDATE_BUF_INFO, ret = -1
11-06 00:36:22.976 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: E, identity = 0x20003, UPDATE_BUF_INFO
11-06 00:36:22.979 214-8866/? E/mm-camera: cpp_module_process_downstream_event:1063, Update buf queue: APPEND
    port_isp_mct_ctrl_cmd: error in isp_update_buf_info, identity = 0x20003
11-06 00:36:22.979 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: X, identity = 0x20003, UPDATE_BUF_INFO, ret = -1
11-06 00:36:23.007 8808-8880/? I/art: Rejecting re-init on previously-failed class java.lang.Class<org.bytedeco.javacpp.avutil>

    --------- beginning of crash
11-06 00:36:23.009 8808-8880/? E/AndroidRuntime: FATAL EXCEPTION: Thread-507
    Process: org.bytedeco.javacv.android.recognize.example, PID: 8808
    java.lang.UnsatisfiedLinkError: org.bytedeco.javacpp.avutil
        at org.bytedeco.javacv.FFmpegFrameFilter.startUnsafe(FFmpegFrameFilter.java:159)
        at org.bytedeco.javacv.FFmpegFrameFilter.start(FFmpegFrameFilter.java:155)
        at org.bytedeco.javacv.android.recognize.example.CvCameraPreview$CameraWorker.run(CvCameraPreview.java:782)
        at java.lang.Thread.run(Thread.java:818)
11-06 00:36:23.010 773-795/? W/ActivityManager:   Force finishing activity 1 org.bytedeco.javacv.android.recognize.example/.OpenCvRecognizeActivity
11-06 00:36:23.018 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: E, identity = 0x20002, UPDATE_BUF_INFO
11-06 00:36:23.018 214-8866/? E/mm-camera: cpp_module_process_downstream_event:1063, Update buf queue: APPEND
    port_isp_mct_ctrl_cmd: error in isp_update_buf_info, identity = 0x20002
11-06 00:36:23.018 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: X, identity = 0x20002, UPDATE_BUF_INFO, ret = -1
11-06 00:36:23.041 773-796/? V/WindowManager: rotationForOrientationLw(orient=-1, last=0); user=0 USER_ROTATION_LOCKED
11-06 00:36:23.099 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: E, identity = 0x20002, UPDATE_BUF_INFO
11-06 00:36:23.099 214-8866/? E/mm-camera: cpp_module_process_downstream_event:1063, Update buf queue: APPEND
    port_isp_mct_ctrl_cmd: error in isp_update_buf_info, identity = 0x20002
11-06 00:36:23.099 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: X, identity = 0x20002, UPDATE_BUF_INFO, ret = -1
11-06 00:36:23.119 8808-8808/? D/xcore/org.bytedeco.javacv.android.recognize.example/11051t/8808t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:36:23.128 8808-8808/? I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@26ac959c time:4737332
11-06 00:36:23.146 214-8906/? E/mm-camera: gamma_config: size mismatch, expecting = 9468, received = 14608
    isp_pix_pipeline_set_col_tone_mode: module GAMMA config failed
11-06 00:36:23.157 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: E, identity = 0x20002, UPDATE_BUF_INFO
11-06 00:36:23.157 214-8866/? E/mm-camera: cpp_module_process_downstream_event:1063, Update buf queue: APPEND
    port_isp_mct_ctrl_cmd: error in isp_update_buf_info, identity = 0x20002
11-06 00:36:23.157 214-8866/? I/mm-camera: port_isp_mct_ctrl_cmd: X, identity = 0x20002, UPDATE_BUF_INFO, ret = -1
11-06 00:36:23.162 8808-8808/? D/CvCameraPreview: surfaceDestroyed
    call checkCurrentState
    call processExitState: 1
    Disconnecting from camera
    Notify thread
11-06 00:36:23.163 8808-8808/? D/CvCameraPreview: Wating for thread
11-06 00:36:23.213 214-8906/? E/mm-camera: gamma_config: size mismatch, expecting = 9468, received = 14608
    isp_pix_pipeline_set_col_tone_mode: module GAMMA config failed
11-06 00:36:23.283 214-8906/? E/mm-camera: gamma_config: size mismatch, expecting = 9468, received = 14608
    isp_pix_pipeline_set_col_tone_mode: module GAMMA config failed
11-06 00:36:23.298 201-866/? D/audio_hw_primary: disable_audio_route: reset and update mixer path: low-latency-playback
    disable_snd_device: snd_device(2: speaker)
11-06 00:36:23.346 214-8906/? E/mm-camera: gamma_config: size mismatch, expecting = 9468, received = 14608
    isp_pix_pipeline_set_col_tone_mode: module GAMMA config failed
11-06 00:36:23.440 773-840/? I/Timeline: Timeline: Activity_windows_visible id: ActivityRecord{32c50a24 u0 org.bytedeco.javacv.android.recognize.example/.MainActivity t5880} time:4737644
11-06 00:36:23.444 201-8881/? D/mm-camera-intf: mm_stream_read_msm_frame: Stoping poll on stream 0xb13ab8b4 type :5
    mm_stream_read_msm_frame: Stopped poll on stream 0xb13ab8b4 type :5
11-06 00:36:33.448 773-834/? W/ActivityManager: Activity destroy timeout for ActivityRecord{3b3a4f2 u0 org.bytedeco.javacv.android.recognize.example/.OpenCvRecognizeActivity t5880 f}
11-06 00:37:00.025 1282-1282/? D/xcore/com.cyanogenmod.trebuchet/10018t/1282t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:37:00.026 1282-1282/? D/xcore/com.cyanogenmod.trebuchet/10018t/1282t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:37:00.042 1282-1282/? D/xcore/com.cyanogenmod.trebuchet/10018t/1282t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:37:00.059 1282-1282/? D/xcore/com.cyanogenmod.trebuchet/10018t/1282t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:37:42.906 773-833/? I/UsageStatsService: User[0] Flushing usage stats to disk
11-06 00:38:00.020 1282-1282/? D/xcore/com.cyanogenmod.trebuchet/10018t/1282t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
11-06 00:38:00.021 1282-1282/? D/xcore/com.cyanogenmod.trebuchet/10018t/1282t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:38:00.037 1282-1282/? D/xcore/com.cyanogenmod.trebuchet/10018t/1282t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:38:00.038 1282-1282/? D/xcore/com.cyanogenmod.trebuchet/10018t/1282t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
11-06 00:38:00.056 1282-1282/? D/xcore/com.cyanogenmod.trebuchet/10018t/1282t: [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : handle_getDisplayMetrics...
    [com.reizx.xcore.component.fake.xclazz.XClazzResources] : set DisplayMetrics Height(1280)  Width(720).
kigkrazy commented 6 years ago

maybe some error is important

    --------- beginning of crash
11-06 00:36:23.009 8808-8880/? E/AndroidRuntime: FATAL EXCEPTION: Thread-507
    Process: org.bytedeco.javacv.android.recognize.example, PID: 8808
    java.lang.UnsatisfiedLinkError: org.bytedeco.javacpp.avutil
        at org.bytedeco.javacv.FFmpegFrameFilter.startUnsafe(FFmpegFrameFilter.java:159)
        at org.bytedeco.javacv.FFmpegFrameFilter.start(FFmpegFrameFilter.java:155)
        at org.bytedeco.javacv.android.recognize.example.CvCameraPreview$CameraWorker.run(CvCameraPreview.java:782)
        at java.lang.Thread.run(Thread.java:818)
saudet commented 6 years ago

Please try again with JavaCV 1.4.3.

kigkrazy commented 6 years ago

I try something from The UnsatisfiedLinkError X File (a real experience)
add something in MainActivity but it did not work.

 @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        preloadLibraries();
        findViewById(R.id.btnOpenCv).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (mPermissionReady) {
                    startActivity(new Intent(MainActivity.this, OpenCvRecognizeActivity.class));
                }
            }
        });

        int cameraPermission = ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA);
        int storagePermssion = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);
        mPermissionReady = cameraPermission == PackageManager.PERMISSION_GRANTED
                && storagePermssion == PackageManager.PERMISSION_GRANTED;
        if (!mPermissionReady)
            requirePermissions();
    }

    public void preloadLibraries(){
//        URL[] emptyUrls = new URL[0];
//        Loader.loadLibrary(emptyUrls, "opencv_core");
//        Loader.loadLibrary(emptyUrls, "opencv_imgproc");
        ReLinker.Logger logger = message -> Log.v("HODOR", "(hold the door) " + message);
        ReLinker.log(logger).recursively().loadLibrary(this, "jniopencv_core");
        ReLinker.log(logger).recursively().loadLibrary(this, "opencv_core");
        ReLinker.log(logger).recursively().loadLibrary(this, "jniopencv_imgcodecs");
        ReLinker.log(logger).recursively().loadLibrary(this, "opencv_imgcodecs");
        ReLinker.log(logger).recursively().loadLibrary(this, "jniopencv_imgproc");
        ReLinker.log(logger).recursively().loadLibrary(this, "opencv_imgproc");
    }

Is there has some error in my code?

saudet commented 6 years ago

That should be fixed with JavaCV 1.4.3. Let me know if you still have problems after upgrading though, thanks!

kigkrazy commented 6 years ago

update the depencies

dependencies {
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    testCompile 'junit:junit:4.12'

    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.getkeepsafe.relinker:relinker:1.3.0'
    compile group: 'org.bytedeco', name: 'javacv', version: '1.4.3'
    compile group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '3.4.3-1.4.3', classifier: 'android-arm'
    compile group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '3.4.3-1.4.3', classifier: 'android-x86'
    compile group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '4.0.2-1.4.3', classifier: 'android-arm'
    compile group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '4.0.2-1.4.3', classifier: 'android-x86'
}

but get some error in example 1541556137 1

I think the example should be update!!!!!

saudet commented 6 years ago

Yes, it needs to be updated like in commit https://github.com/bytedeco/javacv/commit/2836f78fd1656af83739b5e816fe6398fc78add9. Contributions are welcome!

kigkrazy commented 6 years ago

Thank U, I push a PR to sample-projects , U can check it.