Uable to start camera server on voxl 2



  • I am unable to start the voxl-camera-server on voxl 2 although it is enabled.

    voxl2:/$ voxl-inspect-services 
     Service Name         |  Enabled  |   Running   |  CPU Usage
    ---------------------------------------------------------------
     docker-autorun       | Disabled  | Not Running |  
     docker-daemon        | Disabled  | Not Running |  
     modallink-relink     | Disabled  | Not Running |  
     voxl-camera-server   |  Enabled  | Not Running |  
     voxl-cpu-monitor     |  Enabled  |   Running   |     0.0
     voxl-dfs-server      |  Enabled  | Not Running |  
     voxl-imu-server      |  Enabled  |   Running   |     0.0
     voxl-mavlink-server  |  Enabled  |   Running   |     0.0
     voxl-modem           | Disabled  | Not Running |  
     voxl-portal          |  Enabled  |   Running   |     0.0
     voxl-px4-imu-server  |  Enabled  |   Running   |     0.0
     voxl-px4             |  Enabled  |   Running   |     0.0
     voxl-qvio-server     |  Enabled  |   Running   |     0.0
     voxl-softap          | Disabled  | Not Running |  
     voxl-static-ip       | Disabled  | Not Running |  
     voxl-streamer        | Disabled  | Not Running |  
     voxl-tag-detector    | Disabled  | Not Running |  
     voxl-tflite-server   | Disabled  | Not Running |  
     voxl-time-sync       | Disabled  | Not Running |  
     voxl-vision-px4      |  Enabled  |   Running   |     0.0
     voxl-wait-for-fs     |  Enabled  |  Completed  |  
    voxl2:/$ voxl-camera-server 
    ------ voxl-camera-server: Starting camera server
    	Started Camera: tracking
    	Started Camera: hires
    	Started Camera: stereo_front
    	Started Camera: stereo_rear
    
    ------ voxl-camera-server: Camera server is now running
    Aborted
    voxl2:/$ voxl-inspect-services 
     Service Name         |  Enabled  |   Running   |  CPU Usage
    ---------------------------------------------------------------
     docker-autorun       | Disabled  | Not Running |  
     docker-daemon        | Disabled  | Not Running |  
     modallink-relink     | Disabled  | Not Running |  
     voxl-camera-server   |  Enabled  | Not Running |  
     voxl-cpu-monitor     |  Enabled  |   Running   |     0.0
     voxl-dfs-server      |  Enabled  | Not Running |  
     voxl-imu-server      |  Enabled  |   Running   |     0.0
     voxl-mavlink-server  |  Enabled  |   Running   |     0.0
     voxl-modem           | Disabled  | Not Running |  
     voxl-portal          |  Enabled  |   Running   |     0.0
     voxl-px4-imu-server  |  Enabled  |   Running   |     0.0
     voxl-px4             |  Enabled  |   Running   |     0.0
     voxl-qvio-server     |  Enabled  |   Running   |     0.0
     voxl-softap          | Disabled  | Not Running |  
     voxl-static-ip       | Disabled  | Not Running |  
     voxl-streamer        | Disabled  | Not Running |  
     voxl-tag-detector    | Disabled  | Not Running |  
     voxl-tflite-server   | Disabled  | Not Running |  
     voxl-time-sync       | Disabled  | Not Running |  
     voxl-vision-px4      |  Enabled  |   Running   |     0.0
     voxl-wait-for-fs     |  Enabled  |  Completed  |  
    voxl2:/$ systemctl start voxl-camera-server 
    voxl2:/$ voxl-inspect-services 
     Service Name         |  Enabled  |   Running   |  CPU Usage
    ---------------------------------------------------------------
     docker-autorun       | Disabled  | Not Running |  
     docker-daemon        | Disabled  | Not Running |  
     modallink-relink     | Disabled  | Not Running |  
     voxl-camera-server   |  Enabled  | Not Running |  
     voxl-cpu-monitor     |  Enabled  |   Running   |     0.0
     voxl-dfs-server      |  Enabled  | Not Running |  
     voxl-imu-server      |  Enabled  |   Running   |     0.0
     voxl-mavlink-server  |  Enabled  |   Running   |     0.0
     voxl-modem           | Disabled  | Not Running |  
     voxl-portal          |  Enabled  |   Running   |     0.0
     voxl-px4-imu-server  |  Enabled  |   Running   |     0.0
     voxl-px4             |  Enabled  |   Running   |     0.0
     voxl-qvio-server     |  Enabled  |   Running   |     0.0
     voxl-softap          | Disabled  | Not Running |  
     voxl-static-ip       | Disabled  | Not Running |  
     voxl-streamer        | Disabled  | Not Running |  
     voxl-tag-detector    | Disabled  | Not Running |  
     voxl-tflite-server   | Disabled  | Not Running |  
     voxl-time-sync       | Disabled  | Not Running |  
     voxl-vision-px4      |  Enabled  |   Running   |     0.0
     voxl-wait-for-fs     |  Enabled  |  Completed  |  
    

    also getting this error for voxl-inspect-qvio

    voxl2:/$ voxl-inspect-qvio 
    waiting for server
    
     dt(ms) |    T_imu_wrt_vio (m)   |Roll Pitch Yaw (deg)|features|quality| state| error_codes |
       30.1 |    0.00    0.00    0.00|   0.0   -0.0    0.0|     0  |   -1% | FAIL | IMU_MISSING STALLED 
    

    How to fix it?


  • Dev Team

    Hi,

    What does the output of journalctl -u voxl-camera-server say?



  • @Alex-Gardner This is the terminal output

    voxl2:/$ voxl-inspect-services 
     Service Name         |  Enabled  |   Running   |  CPU Usage
    ---------------------------------------------------------------
     docker-autorun       | Disabled  | Not Running |  
     docker-daemon        | Disabled  | Not Running |  
     modallink-relink     |  Enabled  | Not Running |  
     voxl-camera-server   | Disabled  | Not Running |  
     voxl-cpu-monitor     |  Enabled  |   Running   |     0.0
     voxl-dfs-server      |  Enabled  | Not Running |  
     voxl-imu-server      |  Enabled  |   Running   |     0.0
     voxl-mavlink-server  |  Enabled  |   Running   |     0.0
     voxl-modem           |  Enabled  | Not Running |  
     voxl-portal          |  Enabled  |   Running   |     0.0
     voxl-px4-imu-server  |  Enabled  |   Running   |     0.0
     voxl-px4             |  Enabled  |   Running   |     0.0
     voxl-qvio-server     |  Enabled  |   Running   |     0.0
     voxl-softap          |  Enabled  |  Completed  |  
     voxl-static-ip       |  Enabled  | Not Running |  
     voxl-streamer        |  Enabled  |   Running   |     0.0
     voxl-tag-detector    |  Enabled  | Not Running |  
     voxl-tflite-server   |  Enabled  |   Running   |     0.0
     voxl-time-sync       |  Enabled  |  Completed  |  
     voxl-vision-px4      |  Enabled  |   Running   |     0.0
     voxl-wait-for-fs     |  Enabled  |  Completed  |  
    voxl2:/$ systemctl enable voxl-camera-server 
    Created symlink /etc/systemd/system/multi-user.target.wants/voxl-camera-server.service → /etc/systemd/system/voxl-camera-server.service.
    voxl2:/$ systemctl start voxl-camera-server 
    voxl2:/$ voxl-inspect-services 
     Service Name         |  Enabled  |   Running   |  CPU Usage
    ---------------------------------------------------------------
     docker-autorun       | Disabled  | Not Running |  
     docker-daemon        | Disabled  | Not Running |  
     modallink-relink     |  Enabled  | Not Running |  
     voxl-camera-server   |  Enabled  | Not Running |  
     voxl-cpu-monitor     |  Enabled  |   Running   |     0.0
     voxl-dfs-server      |  Enabled  | Not Running |  
     voxl-imu-server      |  Enabled  |   Running   |     0.0
     voxl-mavlink-server  |  Enabled  |   Running   |     0.0
     voxl-modem           |  Enabled  | Not Running |  
     voxl-portal          |  Enabled  |   Running   |     0.0
     voxl-px4-imu-server  |  Enabled  |   Running   |     0.0
     voxl-px4             |  Enabled  |   Running   |     0.0
     voxl-qvio-server     |  Enabled  |   Running   |     0.0
     voxl-softap          |  Enabled  |  Completed  |  
     voxl-static-ip       |  Enabled  | Not Running |  
     voxl-streamer        |  Enabled  |   Running   |     0.0
     voxl-tag-detector    |  Enabled  | Not Running |  
     voxl-tflite-server   |  Enabled  |   Running   |     0.0
     voxl-time-sync       |  Enabled  |  Completed  |  
     voxl-vision-px4      |  Enabled  |   Running   |     5.3
     voxl-wait-for-fs     |  Enabled  |  Completed  |  
    voxl2:/$ journalctl -u voxl-camera-server
    -- Logs begin at Fri 2021-12-10 09:15:51 UTC, end at Tue 2022-09-06 05:32:00 UTC. --
    Jul 26 12:10:42 qrb5165-rb5 systemd[1]: Started voxl-camera-server.
    -- Reboot --
    Jul 26 12:10:42 qrb5165-rb5 systemd[1]: Started voxl-camera-server.
    -- Reboot --
    Jul 26 12:10:42 qrb5165-rb5 systemd[1]: Started voxl-camera-server.
    -- Reboot --
    Jul 26 12:10:42 qrb5165-rb5 systemd[1]: Started voxl-camera-server.
    Jul 26 12:10:42 qrb5165-rb5 bash[1276]: ------ voxl-camera-server: Starting camera server
    Jul 26 12:10:42 qrb5165-rb5 bash[1276]: ERROR: Camera module not opened, 10 attempts remaining
    -- Reboot --
    Jul 26 12:10:42 qrb5165-rb5 bash[1273]: ------ voxl-camera-server: Starting camera server
    Jul 26 12:10:42 qrb5165-rb5 bash[1273]: ERROR: Camera module not opened, 10 attempts remaining
    -- Reboot --
    Jul 26 12:10:42 qrb5165-rb5 bash[1283]: ------ voxl-camera-server: Starting camera server
    Jul 26 12:10:42 qrb5165-rb5 bash[1283]: ERROR: Camera module not opened, 10 attempts remaining
    -- Reboot --
    Jul 26 12:10:42 qrb5165-rb5 bash[1288]: ------ voxl-camera-server: Starting camera server
    Jul 26 12:10:42 qrb5165-rb5 bash[1288]: ERROR: Camera module not opened, 10 attempts remaining
    -- Reboot --
    Jul 26 12:10:42 qrb5165-rb5 systemd[1]: Started voxl-camera-server.
    Jul 26 12:10:43 qrb5165-rb5 bash[1298]: ------ voxl-camera-server: Starting camera server
    Jul 26 12:10:43 qrb5165-rb5 bash[1298]: ERROR: Camera module not opened, 10 attempts remaining
    -- Reboot --
    Jul 26 12:10:44 qrb5165-rb5 bash[1276]:         Started Camera: tracking
    Jul 26 12:10:44 qrb5165-rb5 bash[1276]:         Started Camera: hires
    -- Reboot --
    Jul 26 12:10:44 qrb5165-rb5 bash[1273]:         Started Camera: tracking
    -- Reboot --
    Jul 26 12:10:44 qrb5165-rb5 bash[1276]:         Started Camera: stereo_front
    -- Reboot --
    Jul 26 12:10:44 qrb5165-rb5 bash[1273]:         Started Camera: hires
    -- Reboot --
    Jul 26 12:10:44 qrb5165-rb5 bash[1283]:         Started Camera: tracking
    -- Reboot --
    Jul 26 12:10:44 qrb5165-rb5 bash[1288]:         Started Camera: tracking
    -- Reboot --
    Jul 26 12:10:44 qrb5165-rb5 bash[1298]:         Started Camera: tracking
    -- Reboot --
    Jul 26 12:10:44 qrb5165-rb5 bash[1276]:         Started Camera: stereo_rear
    Jul 26 12:10:44 qrb5165-rb5 bash[1276]: ------ voxl-camera-server: Camera server is now running
    -- Reboot --
    Jul 26 12:10:44 qrb5165-rb5 bash[1283]:         Started Camera: hires
    -- Reboot --
    Jul 26 12:10:44 qrb5165-rb5 bash[1273]:         Started Camera: stereo_front
    -- Reboot --
    Jul 26 12:10:44 qrb5165-rb5 bash[1298]:         Started Camera: hires
    -- Reboot --
    Jul 26 12:10:44 qrb5165-rb5 bash[1288]:         Started Camera: hires
    -- Reboot --
    Jul 26 12:10:44 qrb5165-rb5 bash[1283]:         Started Camera: stereo_front
    -- Reboot --
    Jul 26 12:10:44 qrb5165-rb5 bash[1273]:         Started Camera: stereo_rear
    Jul 26 12:10:44 qrb5165-rb5 bash[1273]: ------ voxl-camera-server: Camera server is now running
    -- Reboot --
    Jul 26 12:10:44 qrb5165-rb5 bash[1298]:         Started Camera: stereo_front
    -- Reboot --
    Jul 26 12:10:44 qrb5165-rb5 bash[1288]:         Started Camera: stereo_front
    -- Reboot --
    Jul 26 12:10:44 qrb5165-rb5 bash[1283]:         Started Camera: stereo_rear
    Jul 26 12:10:44 qrb5165-rb5 bash[1283]: ------ voxl-camera-server: Camera server is now running
    -- Reboot --
    Jul 26 12:10:44 qrb5165-rb5 bash[1298]:         Started Camera: stereo_rear
    Jul 26 12:10:44 qrb5165-rb5 bash[1298]: ------ voxl-camera-server: Camera server is now running
    -- Reboot --
    Jul 26 12:10:44 qrb5165-rb5 bash[1288]:         Started Camera: stereo_rear
    Jul 26 12:10:44 qrb5165-rb5 bash[1288]: ------ voxl-camera-server: Camera server is now running
    -- Reboot --
    Jul 26 12:12:00 qrb5165-rb5 bash[1276]: ERROR in pipe_server_write_to_client, tried to write 307200 bytes but write returned 176128
    -- Reboot --
    Jul 26 12:23:23 qrb5165-rb5 systemd[1]: voxl-camera-server.service: Main process exited, code=killed, status=6/ABRT
    Jul 26 12:23:23 qrb5165-rb5 systemd[1]: voxl-camera-server.service: Failed with result 'signal'.
    Jul 26 12:30:25 qrb5165-rb5 systemd[1]: Started voxl-camera-server.
    Jul 26 12:30:25 qrb5165-rb5 bash[2702]: ------ voxl-camera-server: Starting camera server
    Jul 26 12:30:25 qrb5165-rb5 bash[2702]:         Started Camera: tracking
    Jul 26 12:30:25 qrb5165-rb5 bash[2702]:         Started Camera: hires
    Jul 26 12:30:26 qrb5165-rb5 bash[2702]:         Started Camera: stereo_front
    Jul 26 12:30:26 qrb5165-rb5 bash[2702]:         Started Camera: stereo_rear
    Jul 26 12:30:26 qrb5165-rb5 bash[2702]: ------ voxl-camera-server: Camera server is now running
    Jul 26 12:38:07 qrb5165-rb5 bash[2702]: double free or corruption (out)
    Jul 26 12:38:08 qrb5165-rb5 systemd[1]: voxl-camera-server.service: Main process exited, code=killed, status=6/ABRT
    Jul 26 12:38:08 qrb5165-rb5 systemd[1]: voxl-camera-server.service: Failed with result 'signal'.
    Jul 26 12:38:49 qrb5165-rb5 systemd[1]: Started voxl-camera-server.
    Jul 26 12:38:49 qrb5165-rb5 bash[3265]: ------ voxl-camera-server: Starting camera server
    Jul 26 12:38:50 qrb5165-rb5 bash[3265]:         Started Camera: tracking
    Jul 26 12:38:50 qrb5165-rb5 bash[3265]:         Started Camera: hires
    Jul 26 12:38:50 qrb5165-rb5 bash[3265]:         Started Camera: stereo_front
    Jul 26 12:38:50 qrb5165-rb5 bash[3265]:         Started Camera: stereo_rear
    Jul 26 12:38:50 qrb5165-rb5 bash[3265]: ------ voxl-camera-server: Camera server is now running
    Jul 26 13:04:19 qrb5165-rb5 bash[3265]: Segmentation fault:
    Jul 26 13:04:19 qrb5165-rb5 bash[3265]: Fault thread: cam1-request(tid: 3301)
    Jul 26 13:04:19 qrb5165-rb5 bash[3265]: Fault address: (nil)
    Jul 26 13:04:19 qrb5165-rb5 bash[3265]: Address not mapped.
    Jul 26 13:04:19 qrb5165-rb5 systemd[1]: voxl-camera-server.service: Main process exited, code=killed, status=11/SEGV
    Jul 26 13:04:19 qrb5165-rb5 systemd[1]: voxl-camera-server.service: Failed with result 'signal'.
    Jul 26 13:05:03 qrb5165-rb5 systemd[1]: Started voxl-camera-server.
    Jul 26 13:05:03 qrb5165-rb5 bash[4025]: ------ voxl-camera-server: Starting camera server
    Jul 26 13:05:04 qrb5165-rb5 bash[4025]:         Started Camera: tracking
    Jul 26 13:05:04 qrb5165-rb5 bash[4025]:         Started Camera: hires
    Jul 26 13:05:04 qrb5165-rb5 bash[4025]:         Started Camera: stereo_front
    Jul 26 13:05:04 qrb5165-rb5 bash[4025]:         Started Camera: stereo_rear
    Jul 26 13:05:04 qrb5165-rb5 bash[4025]: ------ voxl-camera-server: Camera server is now running
    -- Reboot --
    Aug 19 15:00:08 qrb5165-rb5 systemd[1]: Started voxl-camera-server.
    Aug 19 15:00:08 qrb5165-rb5 bash[1271]: ------ voxl-camera-server: Starting camera server
    Aug 19 15:00:08 qrb5165-rb5 bash[1271]: ERROR: Camera module not opened, 10 attempts remaining
    Aug 19 15:00:09 qrb5165-rb5 bash[1271]:         Started Camera: tracking
    Aug 19 15:00:09 qrb5165-rb5 bash[1271]:         Started Camera: hires
    Aug 19 15:00:10 qrb5165-rb5 bash[1271]:         Started Camera: stereo_front
    Aug 19 15:00:10 qrb5165-rb5 bash[1271]:         Started Camera: stereo_rear
    Aug 19 15:00:10 qrb5165-rb5 bash[1271]: ------ voxl-camera-server: Camera server is now running
    -- Reboot --
    Aug 22 14:48:20 qrb5165-rb5 systemd[1]: Started voxl-camera-server.
    Aug 22 14:48:20 qrb5165-rb5 bash[1277]: ------ voxl-camera-server: Starting camera server
    Aug 22 14:48:20 qrb5165-rb5 bash[1277]: ERROR: Camera module not opened, 10 attempts remaining
    -- Reboot --
    Aug 22 14:48:20 qrb5165-rb5 systemd[1]: Started voxl-camera-server.
    Aug 22 14:48:20 qrb5165-rb5 bash[1280]: ------ voxl-camera-server: Starting camera server
    Aug 22 14:48:20 qrb5165-rb5 bash[1280]: ERROR: Camera module not opened, 10 attempts remaining
    Aug 22 14:48:22 qrb5165-rb5 bash[1280]:         Started Camera: tracking
    Aug 22 14:48:22 qrb5165-rb5 bash[1280]:         Started Camera: hires
    -- Reboot --
    Aug 22 14:48:22 qrb5165-rb5 bash[1277]:         Started Camera: tracking
    Aug 22 14:48:22 qrb5165-rb5 bash[1277]:         Started Camera: hires
    -- Reboot --
    Aug 22 14:48:22 qrb5165-rb5 bash[1280]:         Started Camera: stereo_front
    -- Reboot --
    Aug 22 14:48:22 qrb5165-rb5 bash[1277]:         Started Camera: stereo_front
    -- Reboot --
    Aug 22 14:48:22 qrb5165-rb5 bash[1280]:         Started Camera: stereo_rear
    Aug 22 14:48:22 qrb5165-rb5 bash[1280]: ------ voxl-camera-server: Camera server is now running
    -- Reboot --
    Aug 22 14:48:22 qrb5165-rb5 bash[1277]:         Started Camera: stereo_rear
    Aug 22 14:48:22 qrb5165-rb5 bash[1277]: ------ voxl-camera-server: Camera server is now running
    -- Reboot --
    Aug 22 14:49:07 qrb5165-rb5 systemd[1]: Started voxl-camera-server.
    Aug 22 14:49:07 qrb5165-rb5 bash[2630]: ------ voxl-camera-server: Starting camera server
    Aug 22 14:49:08 qrb5165-rb5 bash[2630]:         Started Camera: tracking
    Aug 22 14:49:08 qrb5165-rb5 bash[2630]:         Started Camera: hires
    Aug 22 14:49:08 qrb5165-rb5 systemd[1]: voxl-camera-server.service: Main process exited, code=killed, status=6/ABRT
    Aug 22 14:49:08 qrb5165-rb5 systemd[1]: voxl-camera-server.service: Failed with result 'signal'.
    -- Reboot --
    Aug 22 15:13:22 qrb5165-rb5 bash[1277]: voxl-camera-server ERROR: Framenumber: 45002 ErrorCode: 4
    Aug 22 15:13:22 qrb5165-rb5 bash[1277]: voxl-camera-server ERROR: Framenumber: 45002 ErrorCode: 3
    Aug 22 15:13:22 qrb5165-rb5 systemd[1]: voxl-camera-server.service: Main process exited, code=killed, status=6/ABRT
    Aug 22 15:13:22 qrb5165-rb5 systemd[1]: voxl-camera-server.service: Failed with result 'signal'.
    Aug 22 15:58:35 qrb5165-rb5 systemd[1]: Started voxl-camera-server.
    Aug 22 15:58:35 qrb5165-rb5 bash[4807]: ------ voxl-camera-server: Starting camera server
    Aug 22 15:58:36 qrb5165-rb5 bash[4807]:         Started Camera: tracking
    Aug 22 15:58:36 qrb5165-rb5 bash[4807]:         Started Camera: hires
    Aug 22 15:58:36 qrb5165-rb5 bash[4807]:         Started Camera: stereo_front
    Aug 22 15:58:36 qrb5165-rb5 bash[4807]:         Started Camera: stereo_rear
    Aug 22 15:58:36 qrb5165-rb5 bash[4807]: ------ voxl-camera-server: Camera server is now running
    voxl2:/$ voxl-inspect-services 
     Service Name         |  Enabled  |   Running   |  CPU Usage
    ---------------------------------------------------------------
     docker-autorun       | Disabled  | Not Running |  
     docker-daemon        | Disabled  | Not Running |  
     modallink-relink     |  Enabled  | Not Running |  
     voxl-camera-server   |  Enabled  | Not Running |  
     voxl-cpu-monitor     |  Enabled  |   Running   |     0.0
     voxl-dfs-server      |  Enabled  | Not Running |  
     voxl-imu-server      |  Enabled  |   Running   |     0.0
     voxl-mavlink-server  |  Enabled  |   Running   |     0.0
     voxl-modem           |  Enabled  | Not Running |  
     voxl-portal          |  Enabled  |   Running   |     0.0
     voxl-px4-imu-server  |  Enabled  |   Running   |     4.8
     voxl-px4             |  Enabled  |   Running   |     4.8
     voxl-qvio-server     |  Enabled  |   Running   |     0.0
     voxl-softap          |  Enabled  |  Completed  |  
     voxl-static-ip       |  Enabled  | Not Running |  
     voxl-streamer        |  Enabled  |   Running   |     4.8
     voxl-tag-detector    |  Enabled  | Not Running |  
     voxl-tflite-server   |  Enabled  |   Running   |     0.0
     voxl-time-sync       |  Enabled  |  Completed  |  
     voxl-vision-px4      |  Enabled  |   Running   |     4.8
     voxl-wait-for-fs     |  Enabled  |  Completed  |  
    

    also getiing this

    voxl2:/$ voxl-inspect-cam 
    ERROR: There must be at least one pipe
    
        
        Print out camera data from Modal Pipe Architecture.
        
        Options are:
        -a, --all        show all available cameras (not usable with test mode)
        -h, --help       print this help message
        
        typical usage:
        /# voxl-inspect-cam tracking
        /# voxl-inspect-cam tracking hires
    voxl2:/$ voxl-camera-server -d 0
    Secondary id found for camera: stereo_front, assuming stereo
    ------ voxl-camera-server: Starting camera server
    Attempting to open the hal module
    SUCCESS: Camera module opened on attempt 0
    ----------- Number of cameras: 6
    
    Stats for camera: 0:
    ANDROID_SCALER_AVAILABLE_RAW_SIZES:
    	640x480, 
    ANDROID_SCALER_AVAILABLE_PROCESSED_SIZES:
    	 640x 480, 
    ANDROID_SENSOR_INFO_SENSITIVITY_RANGE
    	min = 54
    	max = 431
    ANDROID_SENSOR_MAX_ANALOG_SENSITIVITY
    	431
    ANDROID_SENSOR_INFO_EXPOSURE_TIME_RANGE
    	min = 0ns
    	max = 17942880ns
    
    ERROR: Camera 0 failed to find supported preview config: 1280x800
    Encountered error starting camera: stereo_front, exiting
    

    how to fix this?


  • Dev Team

    It looks like you've configured your camera server to look for OV9782 cameras not OV7251s. It's looking for 1280x800 images (the 9782 defaults) but camera 0 only supports 640x480 (implying it's a 7251 tracking or pinhole camera). Can you compare your configuration in /etc/modalai/voxl-camera-server.conf to what the hardware reports with voxl-camera-server -l



  • @Alex-Gardner hi alex! How to go back to the default configuration? We didn’t change actually, not sure why the configuration is looking for different cameras. Many thanks!


  • Dev Team

    Hi,

    I don't know what configuration you have for cameras but you can run voxl-configure-cameras --help to see a list of available configurations, and then run it again with the correct number for your configuration. If you have a sentinel drone (or voxl2 flight deck, they're identical as far as the cameras are concerned) you can run voxl-configure-cameras sentinel



  • @Alex-Gardner said in Uable to start camera server on voxl 2:

    sentinel
    Still having the same issue

    voxl2:/$ voxl-inspect-services 
     Service Name         |  Enabled  |   Running   |  CPU Usage
    ---------------------------------------------------------------
     docker-autorun       | Disabled  | Not Running |  
     docker-daemon        | Disabled  | Not Running |  
     modallink-relink     |  Enabled  | Not Running |  
     voxl-camera-server   |  Enabled  | Not Running |  
     voxl-cpu-monitor     |  Enabled  |   Running   |     0.0
     voxl-dfs-server      |  Enabled  | Not Running |  
     voxl-imu-server      |  Enabled  |   Running   |     0.0
     voxl-mavlink-server  |  Enabled  |   Running   |     0.0
     voxl-modem           |  Enabled  | Not Running |  
     voxl-portal          |  Enabled  |   Running   |     0.0
     voxl-px4-imu-server  |  Enabled  |   Running   |     0.0
     voxl-px4             | Disabled  | Not Running |  
     voxl-qvio-server     |  Enabled  |   Running   |     0.0
     voxl-softap          |  Enabled  |  Completed  |  
     voxl-static-ip       |  Enabled  | Not Running |  
     voxl-streamer        |  Enabled  |   Running   |     0.0
     voxl-tag-detector    |  Enabled  | Not Running |  
     voxl-tflite-server   |  Enabled  |   Running   |     0.0
     voxl-time-sync       |  Enabled  |  Completed  |  
     voxl-vision-px4      |  Enabled  |   Running   |     0.0
     voxl-wait-for-fs     |  Enabled  |  Completed  |  
    voxl2:/$ systemctl enable voxl-modem 
    voxl2:/$ systemctl start voxl-modem 
    voxl2:/$ voxl-configure-cameras sentinel
    Camera Configuration: 11
    enabling and starting voxl-camera-server
    Done Configuring Cameras
    voxl2:/$ systemctl start voxl-camera-server 
    voxl2:/$ voxl-inspect-services 
     Service Name         |  Enabled  |   Running   |  CPU Usage
    ---------------------------------------------------------------
     docker-autorun       | Disabled  | Not Running |  
     docker-daemon        | Disabled  | Not Running |  
     modallink-relink     |  Enabled  | Not Running |  
     voxl-camera-server   |  Enabled  | Not Running |  
     voxl-cpu-monitor     |  Enabled  |   Running   |     0.0
     voxl-dfs-server      |  Enabled  | Not Running |  
     voxl-imu-server      |  Enabled  |   Running   |     0.0
     voxl-mavlink-server  |  Enabled  |   Running   |     0.0
     voxl-modem           |  Enabled  | Not Running |  
     voxl-portal          |  Enabled  |   Running   |     0.0
     voxl-px4-imu-server  |  Enabled  |   Running   |     0.0
     voxl-px4             | Disabled  | Not Running |  
     voxl-qvio-server     |  Enabled  |   Running   |     0.0
     voxl-softap          |  Enabled  |  Completed  |  
     voxl-static-ip       |  Enabled  | Not Running |  
     voxl-streamer        |  Enabled  |   Running   |     0.0
     voxl-tag-detector    |  Enabled  | Not Running |  
     voxl-tflite-server   |  Enabled  |   Running   |     0.0
     voxl-time-sync       |  Enabled  |  Completed  |  
     voxl-vision-px4      |  Enabled  |   Running   |     0.0
     voxl-wait-for-fs     |  Enabled  |  Completed  |  
    

    After running the command voxl-camera-server -d 0 I am getting this

    voxl2:/$ voxl-camera-server -d 0
    No secondary id found for camera: tracking, assuming mono
    No secondary id found for camera: hires, assuming mono
    Secondary id found for camera: stereo_front, assuming stereo
    Secondary id found for camera: stereo_rear, assuming stereo
    ------ voxl-camera-server: Starting camera server
    Attempting to open the hal module
    SUCCESS: Camera module opened on attempt 0
    ----------- Number of cameras: 6
    
    Stats for camera: 2:
    ANDROID_SCALER_AVAILABLE_RAW_SIZES:
    	640x480, 
    ANDROID_SCALER_AVAILABLE_PROCESSED_SIZES:
    	 640x 480, 
    ANDROID_SENSOR_INFO_SENSITIVITY_RANGE
    	min = 54
    	max = 431
    ANDROID_SENSOR_MAX_ANALOG_SENSITIVITY
    	431
    ANDROID_SENSOR_INFO_EXPOSURE_TIME_RANGE
    	min = 0ns
    	max = 17942880ns
    
    Successfully found configuration match for camera 2: 640x480
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    
    Successfully configured camera: tracking with settings:
    	 Name                : tracking
    	 Enabled             : 1
    	 Type                : mono ov7251
    	 Cam ID              : 2
    	 Preview Width       : 640
    	 Preview Height      : 480
    	 Preview Format      : raw8
    	 FPS                 : 30
    =================MODALAI Auto Exposure Settings==================
    gain_min:                        54
    gain_max:                        835
    exposure_min_us:                 20
    exposure_max_us:                 33000
    exposure_soft_min_us:            5000
    exposure_gain_slope:             1809404416
    desired_msv:                     60.000000
    msv_filter_alpha:                0.600000
    max_sat_pix_ignore_fraction:     0.200000
    exposure_update_period:          1
    gain_update_period:              1
    display_debug:                   no
    =================================================================
    
    Entered thread: cam2-request(tid: 4861)
    Entered thread: cam2-result(tid: 4862)
    	Started Camera: tracking
    Stats for camera: 3:
    ANDROID_SCALER_AVAILABLE_RAW_SIZES:
    	4208x3120, 4208x2352, 
    ANDROID_SCALER_AVAILABLE_PROCESSED_SIZES:
    	4208x3120, 4208x2352, 
    ANDROID_SENSOR_INFO_SENSITIVITY_RANGE
    	min = 54
    	max = 431
    ANDROID_SENSOR_MAX_ANALOG_SENSITIVITY
    	431
    ANDROID_SENSOR_INFO_EXPOSURE_TIME_RANGE
    	min = 11688ns
    	max = 684566235ns
    
    Successfully found configuration match for camera 3: 640x480
    Successfully found configuration match for camera 3: 3840x2160
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 25072446x1 : HAL_PIXEL_FORMAT_BLOB
    Allocating Buffer: 25072446x1 : HAL_PIXEL_FORMAT_BLOB
    Allocating Buffer: 25072446x1 : HAL_PIXEL_FORMAT_BLOB
    Allocating Buffer: 25072446x1 : HAL_PIXEL_FORMAT_BLOB
    Allocating Buffer: 25072446x1 : HAL_PIXEL_FORMAT_BLOB
    Allocating Buffer: 25072446x1 : HAL_PIXEL_FORMAT_BLOB
    Allocating Buffer: 25072446x1 : HAL_PIXEL_FORMAT_BLOB
    Allocating Buffer: 25072446x1 : HAL_PIXEL_FORMAT_BLOB
    Allocating Buffer: 25072446x1 : HAL_PIXEL_FORMAT_BLOB
    Allocating Buffer: 25072446x1 : HAL_PIXEL_FORMAT_BLOB
    Allocating Buffer: 25072446x1 : HAL_PIXEL_FORMAT_BLOB
    Allocating Buffer: 25072446x1 : HAL_PIXEL_FORMAT_BLOB
    Allocating Buffer: 25072446x1 : HAL_PIXEL_FORMAT_BLOB
    Allocating Buffer: 25072446x1 : HAL_PIXEL_FORMAT_BLOB
    Allocating Buffer: 25072446x1 : HAL_PIXEL_FORMAT_BLOB
    Allocating Buffer: 25072446x1 : HAL_PIXEL_FORMAT_BLOB
    
    Successfully configured camera: hires with settings:
    	 Name                : hires
    	 Enabled             : 1
    	 Type                : mono imx214
    	 Cam ID              : 3
    	 Preview Width       : 640
    	 Preview Height      : 480
    	 Preview Format      : nv21
    	 Snapshot Width      : 3840
    	 Snapshot Height     : 2160
    	 FPS                 : 30
    
    Entered thread: cam3-request(tid: 4894)
    Entered thread: cam3-result(tid: 4895)
    	Started Camera: hires
    Stats for camera: 0:
    ANDROID_SCALER_AVAILABLE_RAW_SIZES:
    	640x480, 
    ANDROID_SCALER_AVAILABLE_PROCESSED_SIZES:
    	 640x 480, 
    ANDROID_SENSOR_INFO_SENSITIVITY_RANGE
    	min = 54
    	max = 431
    ANDROID_SENSOR_MAX_ANALOG_SENSITIVITY
    	431
    ANDROID_SENSOR_INFO_EXPOSURE_TIME_RANGE
    	min = 0ns
    	max = 17942880ns
    
    Successfully found configuration match for camera 0: 640x480
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Stats for camera: 1:
    ANDROID_SCALER_AVAILABLE_RAW_SIZES:
    	640x480, 
    ANDROID_SCALER_AVAILABLE_PROCESSED_SIZES:
    	 640x 480, 
    ANDROID_SENSOR_INFO_SENSITIVITY_RANGE
    	min = 54
    	max = 431
    ANDROID_SENSOR_MAX_ANALOG_SENSITIVITY
    	431
    ANDROID_SENSOR_INFO_EXPOSURE_TIME_RANGE
    	min = 0ns
    	max = 17942880ns
    
    Successfully found configuration match for camera 1: 640x480
    Client connected to camera tracking
    Processed request for frame 1 for camera tracking
    Processed request for frame 2 for camera tracking
    Processed request for frame 3 for camera tracking
    Processed request for frame 4 for camera tracking
    Processed request for frame 5 for camera tracking
    Received metadata for frame 1 from camera tracking
    	Timestamp: 579375733543
    	Gain: 0
    	Exposure: 5259763
    Client connected to camera hires
    Client connected to camera tracking
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Client connected to camera hires
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Received output buffer 1 from camera tracking
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    tracking procesing new buffer
    Camera: tracking processing preview frame
    tracking received raw10 frame, checking to see if is actually raw8
    Frame was actually 10 bit, proceeding with conversions
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Processed request for frame 6 for camera tracking
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    
    Successfully configured camera: stereo_front_child with settings:
    	 Name                : stereo_front_child
    	 Enabled             : 1
    	 Type                : mono ov7251
    	 Cam ID              : 1
    	 Preview Width       : 640
    	 Preview Height      : 480
    	 Preview Format      : raw8
    	 FPS                 : 30
    =================MODALAI Auto Exposure Settings==================
    gain_min:                        54
    gain_max:                        835
    exposure_min_us:                 20
    exposure_max_us:                 33000
    exposure_soft_min_us:            5000
    exposure_gain_slope:             1809404416
    desired_msv:                     60.000000
    msv_filter_alpha:                0.600000
    max_sat_pix_ignore_fraction:     0.200000
    exposure_update_period:          1
    gain_update_period:              1
    display_debug:                   no
    =================================================================
    
    
    Successfully configured camera: stereo_front with settings:
    	 Name                : stereo_front
    Sent frame 1 through pipe tracking
    	 Enabled             : 1
    	 Type                : mono ov7251
    	 Cam ID              : 0
    	 Preview Width       : 640
    	 Preview Height      : 480
    	 Preview Format      : raw8
    	 FPS                 : 30
    =================MODALAI Auto Exposure Settings==================
    gain_min:                        54
    gain_max:                        835
    exposure_min_us:                 20
    exposure_max_us:                 33000
    exposure_soft_min_us:            5000
    exposure_gain_slope:             1809404416
    desired_msv:                     60.000000
    msv_filter_alpha:                0.600000
    max_sat_pix_ignore_fraction:     0.200000
    exposure_update_period:          1
    gain_update_period:              1
    display_debug:                   no
    =================================================================
    
    Entered thread: cam0-request(tid: 4902)
    Entered thread: cam0-result(tid: 4903)
    Entered thread: cam1-request(tid: 4904)
    	Started Camera: stereo_front
    Entered thread: cam1-result(tid: 4905)
    Stats for camera: 5:
    ANDROID_SCALER_AVAILABLE_RAW_SIZES:
    	640x480, 
    ANDROID_SCALER_AVAILABLE_PROCESSED_SIZES:
    	 640x 480, 
    ANDROID_SENSOR_INFO_SENSITIVITY_RANGE
    	min = 54
    	max = 431
    ANDROID_SENSOR_MAX_ANALOG_SENSITIVITY
    	431
    ANDROID_SENSOR_INFO_EXPOSURE_TIME_RANGE
    	min = 0ns
    	max = 17942880ns
    
    Successfully found configuration match for camera 5: 640x480
    Processed request for frame 1 for camera hires
    Processed request for frame 2 for camera hires
    Processed request for frame 3 for camera hires
    Processed request for frame 4 for camera hires
    Processed request for frame 5 for camera hires
    Received metadata for frame 2 from camera tracking
    	Timestamp: 579442388074
    	Gain: 0
    	Exposure: 5259763
    Received output buffer 2 from camera tracking
    tracking procesing new buffer
    Camera: tracking processing preview frame
    Processed request for frame 7 for camera tracking
    Sent frame 2 through pipe tracking
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Stats for camera: 4:
    ANDROID_SCALER_AVAILABLE_RAW_SIZES:
    	640x480, 
    ANDROID_SCALER_AVAILABLE_PROCESSED_SIZES:
    	 640x 480, 
    ANDROID_SENSOR_INFO_SENSITIVITY_RANGE
    	min = 54
    	max = 431
    ANDROID_SENSOR_MAX_ANALOG_SENSITIVITY
    	431
    ANDROID_SENSOR_INFO_EXPOSURE_TIME_RANGE
    	min = 0ns
    	max = 17942880ns
    
    Successfully found configuration match for camera 4: 640x480
    Received metadata for frame 3 from camera tracking
    	Timestamp: 579475715730
    	Gain: 0
    	Exposure: 5259763
    Received output buffer 3 from camera tracking
    tracking procesing new buffer
    Camera: tracking processing preview frame
    Processed request for frame 8 for camera tracking
    Sent frame 3 through pipe tracking
    Received metadata for frame 4 from camera tracking
    	Timestamp: 579509043386
    	Gain: 0
    	Exposure: 5259763
    Received output buffer 4 from camera tracking
    tracking procesing new buffer
    Camera: tracking processing preview frame
    Processed request for frame 9 for camera tracking
    Sent frame 4 through pipe tracking
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    Allocating Buffer: 640x480 : HAL_PIXEL_FORMAT_YCBCR_420_888
    
    Successfully configured camera: stereo_rear_child with settings:
    	 Name                : stereo_rear_child
    	 Enabled             : 1
    	 Type                : mono ov7251
    	 Cam ID              : 4
    	 Preview Width       : 640
    	 Preview Height      : 480
    	 Preview Format      : raw8
    	 FPS                 : 30
    =================MODALAI Auto Exposure Settings==================
    gain_min:                        54
    gain_max:                        835
    exposure_min_us:                 20
    exposure_max_us:                 33000
    exposure_soft_min_us:            5000
    exposure_gain_slope:             1809404416
    desired_msv:                     60.000000
    msv_filter_alpha:                0.600000
    max_sat_pix_ignore_fraction:     0.200000
    exposure_update_period:          1
    gain_update_period:              1
    display_debug:                   no
    =================================================================
    
    
    Successfully configured camera: stereo_rear with settings:
    	 Name                : stereo_rear
    	 Enabled             : 1
    	 Type                : mono ov7251
    	 Cam ID              : 5
    	 Preview Width       : 640
    	 Preview Height      : 480
    	 Preview Format      : raw8
    	 FPS                 : 30
    =================MODALAI Auto Exposure Settings==================
    gain_min:                        54
    gain_max:                        835
    exposure_min_us:                 20
    exposure_max_us:                 33000
    exposure_soft_min_us:            5000
    exposure_gain_slope:             1809404416
    desired_msv:                     60.000000
    msv_filter_alpha:                0.600000
    max_sat_pix_ignore_fraction:     0.200000
    exposure_update_period:          1
    gain_update_period:              1
    display_debug:                   no
    =================================================================
    
    Received metadata for frame 5 from camera tracking
    	Timestamp: 579542371095
    	Gain: 0
    	Exposure: 5259763
    Entered thread: cam5-request(tid: 4912)
    Entered thread: cam5-result(tid: 4913)
    Entered thread: cam4-request(tid: 4914)
    	Started Camera: stereo_rear
    
    ------ voxl-camera-server: Camera server is now running
    Entered thread: cam4-result(tid: 4915)
    Received output buffer 5 from camera tracking
    tracking procesing new buffer
    Camera: tracking processing preview frame
    Processed request for frame 10 for camera tracking
    Sent frame 5 through pipe tracking
    Received metadata for frame 6 from camera tracking
    	Timestamp: 579575698751
    	Gain: 0
    	Exposure: 5259763
    Received output buffer 6 from camera tracking
    tracking procesing new buffer
    Camera: tracking processing preview frame
    Client connected to camera stereo_rear
    Client connected to camera stereo_rear_child
    Processed request for frame 11 for camera tracking
    Sent frame 6 through pipe tracking
    Processed request for frame 1 for camera stereo_rear_child
    Processed request for frame 1 for camera stereo_rear
    Processed request for frame 2 for camera stereo_rear_child
    Processed request for frame 2 for camera stereo_rear
    Processed request for frame 3 for camera stereo_rear
    Processed request for frame 3 for camera stereo_rear_child
    Processed request for frame 4 for camera stereo_rear
    Processed request for frame 4 for camera stereo_rear_child
    Processed request for frame 5 for camera stereo_rear_child
    Processed request for frame 5 for camera stereo_rear
    Received metadata for frame 7 from camera tracking
    	Timestamp: 579609026407
    	Gain: 0
    	Exposure: 5259763
    Received metadata for frame 1 from camera stereo_rear
    	Timestamp: 579611051877
    	Gain: 0
    	Exposure: 5259763
    Received output buffer 7 from camera tracking
    tracking procesing new buffer
    Camera: tracking processing preview frame
    Processed request for frame 12 for camera tracking
    Sent frame 7 through pipe tracking
    Received output buffer 1 from camera stereo_rear
    stereo_rear procesing new buffer
    Camera: stereo_rear processing preview frame
    stereo_rear received raw10 frame, checking to see if is actually raw8
    Frame was actually 10 bit, proceeding with conversions
    Processed request for frame 6 for camera stereo_rear
    Received metadata for frame 1 from camera stereo_rear_child
    	Timestamp: 579634136981
    	Gain: 0
    	Exposure: 5259763
    Received metadata for frame 8 from camera tracking
    	Timestamp: 579647593827
    	Gain: 0
    	Exposure: 20000
    Received output buffer 1 from camera stereo_rear_child
    stereo_rear_child procesing new buffer
    Camera: stereo_rear_child processing preview frame
    stereo_rear_child received raw10 frame, checking to see if is actually raw8
    Frame was actually 10 bit, proceeding with conversions
    Processed request for frame 6 for camera stereo_rear_child
    stereo_rear timestamps(ms): 579611, 579634, diff: -23
    Sent frame 1 through pipe stereo_rear
    Received output buffer 8 from camera tracking
    tracking procesing new buffer
    Camera: tracking processing preview frame
    Processed request for frame 13 for camera tracking
    Sent frame 8 through pipe tracking
    Received metadata for frame 9 from camera tracking
    	Timestamp: 579680921535
    	Gain: 0
    	Exposure: 20000
    Received metadata for frame 2 from camera stereo_rear
    	Timestamp: 579677706408
    	Gain: 0
    	Exposure: 5259763
    Received output buffer 9 from camera tracking
    tracking procesing new buffer
    Camera: tracking processing preview frame
    Processed request for frame 14 for camera tracking
    Sent frame 9 through pipe tracking
    Received output buffer 2 from camera stereo_rear
    stereo_rear procesing new buffer
    Camera: stereo_rear processing preview frame
    Processed request for frame 7 for camera stereo_rear
    Received metadata for frame 10 from camera tracking
    	Timestamp: 579714249191
    	Gain: 0
    	Exposure: 20000
    Received metadata for frame 2 from camera stereo_rear_child
    	Timestamp: 579710993075
    	Gain: 0
    	Exposure: 5259763
    Received output buffer 10 from camera tracking
    tracking procesing new buffer
    Camera: tracking processing preview frame
    Processed request for frame 15 for camera tracking
    Sent frame 10 through pipe tracking
    Received output buffer 2 from camera stereo_rear_child
    stereo_rear_child procesing new buffer
    Camera: stereo_rear_child processing preview frame
    Processed request for frame 7 for camera stereo_rear_child
    stereo_rear timestamps(ms): 579677, 579710, diff: -33
    INFO: Camera stereo_rear recieved much newer child than master (33), discarding master and trying again
    Received metadata for frame 3 from camera stereo_rear
    	Timestamp: 579711034064
    	Gain: 0
    	Exposure: 5259763
    Received output buffer 3 from camera stereo_rear
    stereo_rear procesing new buffer
    Camera: stereo_rear processing preview frame
    Processed request for frame 8 for camera stereo_rear
    stereo_rear timestamps(ms): 579711, 579710, diff: 0
    Sent frame 3 through pipe stereo_rear
    Received metadata for frame 11 from camera tracking
    	Timestamp: 579747576847
    	Gain: 0
    	Exposure: 20000
    Received metadata for frame 3 from camera stereo_rear_child
    	Timestamp: 579744320731
    	Gain: 0
    	Exposure: 5259763
    Received metadata for frame 4 from camera stereo_rear
    	Timestamp: 579744361721
    	Gain: 0
    	Exposure: 5259763
    Received output buffer 11 from camera tracking
    tracking procesing new buffer
    Camera: tracking processing preview frame
    Processed request for frame 16 for camera tracking
    Sent frame 11 through pipe tracking
    Received output buffer 4 from camera stereo_rear
    Received output buffer 3 from camera stereo_rear_child
    stereo_rear procesing new buffer
    Camera: stereo_rear processing preview frame
    Processed request for frame 8 for camera stereo_rear_child
    stereo_rear_child procesing new buffer
    Camera: stereo_rear_child processing preview frame
    Processed request for frame 9 for camera stereo_rear
    stereo_rear timestamps(ms): 579744, 579744, diff: 0
    Sent frame 4 through pipe stereo_rear
    Received metadata for frame 12 from camera tracking
    	Timestamp: 579780904504
    	Gain: 0
    	Exposure: 20000
    Received metadata for frame 4 from camera stereo_rear_child
    	Timestamp: 579777648388
    	Gain: 0
    	Exposure: 5259763
    Received metadata for frame 5 from camera stereo_rear
    	Timestamp: 579777689429
    	Gain: 0
    	Exposure: 5259763
    Received output buffer 12 from camera tracking
    tracking procesing new buffer
    Camera: tracking processing preview frame
    Processed request for frame 17 for camera tracking
    Sent frame 12 through pipe tracking
    Received output buffer 4 from camera stereo_rear_child
    stereo_rear_child procesing new buffer
    Camera: stereo_rear_child processing preview frame
    Received output buffer 5 from camera stereo_rear
    stereo_rear procesing new buffer
    Camera: stereo_rear processing preview frame
    Processed request for frame 9 for camera stereo_rear_child
    stereo_rear timestamps(ms): 579777, 579777, diff: 0
    Processed request for frame 10 for camera stereo_rear
    Sent frame 5 through pipe stereo_rear
    Client connected to camera stereo_front
    Client connected to camera stereo_front_child
    Received metadata for frame 13 from camera tracking
    	Timestamp: 579814232160
    	Gain: 0
    	Exposure: 20000
    Received metadata for frame 5 from camera stereo_rear_child
    	Timestamp: 579810976044
    	Gain: 0
    	Exposure: 5259763
    Received metadata for frame 6 from camera stereo_rear
    	Timestamp: 579811017085
    	Gain: 0
    	Exposure: 5259763
    Processed request for frame 1 for camera stereo_front_child
    Processed request for frame 1 for camera stereo_front
    Processed request for frame 2 for camera stereo_front
    Processed request for frame 3 for camera stereo_front
    Processed request for frame 2 for camera stereo_front_child
    Processed request for frame 4 for camera stereo_front
    Processed request for frame 3 for camera stereo_front_child
    Processed request for frame 5 for camera stereo_front
    Processed request for frame 4 for camera stereo_front_child
    Processed request for frame 5 for camera stereo_front_child
    Received output buffer 13 from camera tracking
    tracking procesing new buffer
    Camera: tracking processing preview frame
    Processed request for frame 18 for camera tracking
    Sent frame 13 through pipe tracking
    Received output buffer 5 from camera stereo_rear_child
    stereo_rear_child procesing new buffer
    Camera: stereo_rear_child processing preview frame
    Received output buffer 6 from camera stereo_rear
    stereo_rear procesing new buffer
    Camera: stereo_rear processing preview frame
    Processed request for frame 11 for camera stereo_rear
    Processed request for frame 10 for camera stereo_rear_child
    stereo_rear timestamps(ms): 579811, 579810, diff: 0
    Sent frame 6 through pipe stereo_rear
    Received metadata for frame 1 from camera stereo_front_child
    	Timestamp: 579824321252
    	Gain: 0
    	Exposure: 5259763
    Received output buffer 1 from camera stereo_front_child
    stereo_front_child procesing new buffer
    Camera: stereo_front_child processing preview frame
    stereo_front_child received raw10 frame, checking to see if is actually raw8
    Frame was actually 10 bit, proceeding with conversions
    Processed request for frame 6 for camera stereo_front_child
    Received metadata for frame 14 from camera tracking
    	Timestamp: 579847559816
    	Gain: 0
    	Exposure: 20000
    Received metadata for frame 6 from camera stereo_rear_child
    	Timestamp: 579844303752
    	Gain: 0
    	Exposure: 5259763
    Received metadata for frame 7 from camera stereo_rear
    	Timestamp: 579844344742
    	Gain: 0
    	Exposure: 5259763
    Received metadata for frame 1 from camera stereo_front
    	Timestamp: 579847641877
    	Gain: 0
    	Exposure: 5259763
    Received output buffer 14 from camera tracking
    tracking procesing new buffer
    Camera: tracking processing preview frame
    Processed request for frame 19 for camera tracking
    Sent frame 14 through pipe tracking
    Received output buffer 6 from camera stereo_rear_child
    stereo_rear_child procesing new buffer
    Camera: stereo_rear_child processing preview frame
    Received output buffer 7 from camera stereo_rear
    Processed request for frame 11 for camera stereo_rear_child
    stereo_rear procesing new buffer
    Camera: stereo_rear processing preview frame
    Processed request for frame 12 for camera stereo_rear
    stereo_rear timestamps(ms): 579844, 579844, diff: 0
    Sent frame 7 through pipe stereo_rear
    Received output buffer 1 from camera stereo_front
    stereo_front procesing new buffer
    Camera: stereo_front processing preview frame
    stereo_front received raw10 frame, checking to see if is actually raw8
    Frame was actually 10 bit, proceeding with conversions
    Processed request for frame 6 for camera stereo_front
    stereo_front timestamps(ms): 579847, 579824, diff: 23
    Sent frame 1 through pipe stereo_front
    Received metadata for frame 15 from camera tracking
    	Timestamp: 579880887524
    	Gain: 0
    	Exposure: 20000
    Received metadata for frame 7 from camera stereo_rear_child
    	Timestamp: 579877631409
    	Gain: 0
    	Exposure: 5259763
    Received metadata for frame 8 from camera stereo_rear
    	Timestamp: 579882912161
    	Gain: 0
    	Exposure: 20000
    Received output buffer 15 from camera tracking
    tracking procesing new buffer
    Camera: tracking processing preview frame
    Processed request for frame 20 for camera tracking
    Sent frame 15 through pipe tracking
    Received output buffer 7 from camera stereo_rear_child
    Received output buffer 8 from camera stereo_rear
    Processed request for frame 12 for camera stereo_rear_child
    Processed request for frame 13 for camera stereo_rear
    stereo_rear procesing new buffer
    Camera: stereo_rear processing preview frame
    stereo_rear_child procesing new buffer
    Camera: stereo_rear_child processing preview frame
    stereo_rear timestamps(ms): 579882, 579877, diff: 5
    Sent frame 8 through pipe stereo_rear
    Received metadata for frame 2 from camera stereo_front_child
    	Timestamp: 579890975783
    	Gain: 0
    	Exposure: 5259763
    Received output buffer 2 from camera stereo_front_child
    stereo_front_child procesing new buffer
    Camera: stereo_front_child processing preview frame
    Processed request for frame 7 for camera stereo_front_child
    Aborted
    

    How to fix this ?



  • The camera server is working with another set of cameras after I reflashed the voxl 2. This might be a hardware issue. Thank you.


Log in to reply