recorder camera image encoding buffer is full

Creating default recording file: ./recorder-config.json
Program Arguments:
–config-file=/home/nvidia/record_data/conf/recorder-config.json
–offscreen=1
Initialize DriveWorks SDK v0.3.422
Release build with GNU 4.9.2 from v0.3.1-rc2-0-g0475f26 against PDK v4.1.6.3
SDK: Resources mounted from /usr/local/driveworks-0.3/data/resources
SDK: Create NvMediaDevice
egl::Display: found 2 EGL devices
egl::Display: use drm device: drm-nvdc
SDK: dGPU has been detected as device number 0
SDK: iGPU has been detected as device number 1
SDK: Default GPU Device set to device number 0
SAL: identified board as DrivePX2-TegraA
SensorFactory::createSensor() -> gps.uart, device=/dev/ttyACM0,baud=115200
Driveworks exception thrown: DW_HAL_CANNOT_OPEN_CHANNEL: EndpointTTY: cannot open device
SensorFactory::createSensor() -> imu.xsens, device=0,frequency=100
Driveworks exception thrown: DW_HAL_CANNOT_OPEN_CHANNEL: EndpointXsens: Requested device 0 not found. Only 0 devices present
SensorFactory::createSensor() -> can.socket, device=can0
SensorFactory::createSensor() -> camera.gmsl, camera-type=ar0231-rccb-bae,csi-port=ab,camera-count=4,output-format=yuv,async-record=1,fifo-size=6
CameraGMSL: required FPS = 30, resolution = 1920x1208
***** aurix state *****
CAM_PWR_ON: 0x0
TEGRA_GMSL: TEGRA B
TEGRA_FPDL: TEGRA B
TEGRA_A_HDMI: MXM
TEGRA_B_HDMI: MXM
TEGRA_PCI: TEGRA B
FAN_STATE: UNKNOWN


***** aurix state *****
CAM_PWR_ON: 0x1
TEGRA_GMSL: UNKNOWN
TEGRA_FPDL: UNKNOWN
TEGRA_A_HDMI: UNKNOWN
TEGRA_B_HDMI: UNKNOWN
TEGRA_PCI: UNKNOWN
FAN_STATE: UNKNOWN


Sensor AR0231 RCCB Rev7 detected!
Sensor AR0231 RCCB Rev7 detected!
Sensor AR0231 RCCB Rev7 detected!
Sensor AR0231 RCCB Rev7 detected!
SensorFactory::createSensor() -> camera.gmsl, camera-type=ar0231-rccb,csi-port=cd,camera-count=1,output-format=yuv,async-record=1,fifo-size=6
CameraGMSL: required FPS = 30, resolution = 1920x1208
***** aurix state *****
CAM_PWR_ON: 0x1
TEGRA_GMSL: TEGRA B
TEGRA_FPDL: TEGRA B
TEGRA_A_HDMI: MXM
TEGRA_B_HDMI: MXM
TEGRA_PCI: TEGRA B
FAN_STATE: UNKNOWN


***** aurix state *****
CAM_PWR_ON: 0x3
TEGRA_GMSL: UNKNOWN
TEGRA_FPDL: UNKNOWN
TEGRA_A_HDMI: UNKNOWN
TEGRA_B_HDMI: UNKNOWN
TEGRA_PCI: UNKNOWN
FAN_STATE: UNKNOWN


Sensor AR0231 RCCB Rev7 detected!
Driveworks exception thrown: DW_NOT_AVAILABLE: StreamConsumerOpenGL: No gl context exists
Driveworks exception thrown: DW_NOT_AVAILABLE: StreamConsumerOpenGL: No gl context exists
Driveworks exception thrown: DW_NOT_AVAILABLE: StreamConsumerOpenGL: No gl context exists
Driveworks exception thrown: DW_NOT_AVAILABLE: StreamConsumerOpenGL: No gl context exists
Driveworks exception thrown: DW_NOT_AVAILABLE: StreamConsumerOpenGL: No gl context exists
Thread created for 1
Thread created for 2
EndpointCAN: Hardware time stamping (SIOCSHWTSTAMP) supported at can0
EndpointCAN: use HW based timestamps for can0
EndpointCAN: started can0
Start recording…
CameraGMSL: serializer bitrate not specified. Using 8000000.
CameraGMSL: serializer bitrate not specified. Using 8000000.
CameraGMSL: serializer bitrate not specified.
Using 8000000.
CameraGMSL: serializer bitrate not specified. Using 8000000.
CameraGMSL: serializer bitrate not specified.
CameraGMSL: Frame: 19 CaptureTimestamp: 26772513 - ICP DROP
CameraGMSL: Frame: 20 CaptureTimestamp: 26805854 - ICP DROP
Driveworks exception thrown:
DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown:
DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown:
DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown:
Driveworks exception thrown:
Driveworks exception thrown:
Driveworks exception thrown:
Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown:
Driveworks exception thrown:
DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown:
DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown:
Driveworks exception thrown:
Driveworks exception thrown:
DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown:
Driveworks exception thrown:
DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown:
DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown:
Driveworks exception thrown:
Driveworks exception thrown:
DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
Driveworks exception thrown:
DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 9
EncoderNvMedia: encoding buffer is full, potential data loss
EncoderNvMedia: encoding buffer is full, potential data loss
EncoderNvMedia: encoding buffer is full, potential data loss
EncoderNvMedia: encoding buffer is full, potential data loss
EncoderNvMedia: encoding buffer is full, potential data loss
EncoderNvMedia: encoding buffer is full, potential data loss
EncoderNvMedia: encoding buffer is full, potential data loss
EncoderNvMedia: encoding buffer is full, potential data loss
EncoderNvMedia: encoding buffer is full, potential data loss
EncoderNvMedia: encoding buffer is full, potential data loss
EncoderNvMedia: encoding buffer is full, potential data loss
EncoderNvMedia: encoding buffer is full, potential data loss
EncoderNvMedia: encoding buffer is full, potential data loss
EncoderNvMedia: encoding buffer is full, potential data loss
EncoderNvMedia: encoding buffer is full, potential data loss

Dear yangquanhui,

Could you please refer to below link for your topic? Thanks.
https://devtalk.nvidia.com/default/topic/1036281/driveworks/-recorder-gmsl-camera-raw-image-buffer-full-error/

Dear SteveNV,

when I record 5 cameras, there will be two camera data interruption, but the other three cameras are normal.

In 5 cameras, 2 cameras of interruption are always Leopard without error logs, other 3 cameras are SEKONIX. The interruption took place about ten minutes after the start of the record.

The recorder-config.json is below.

how to resolve the problem? Thanks!

{
    "_comments": [
        "To record raw camera use output-format=raw.",
        "To record raw and h264 use output-format=raw+h264.",
        "To record h264 only use output-format=h264.",
        "To record camera asynchronously, add async-record=1 to ",
        "the params of the camera sensor.",
        "To record 2 consecutive frames and skip 6 consecutive frames in the ",
        "camera use frame-record-count=2 and frame-skip-count=6.",
        "The write-file-pattern for each only refers to the filenames ",
        "and not the extensions. Those are inferred automatically.",
        "The separate-thread for each refers to the fact of whether",
        "threads are shared or a new one is created for capturing data.",
        "If separate-thread=false, it will capture on the same thread as",
        "other sensor types that have set separate-thread=false.",
        "If separate-thread=true, a new thread will spawn just for that",
        "sensor type."
        ],
    "version": "0.7",
    "path": ".",
    "camera": {
        "separate-thread": true,
        "write-file-pattern": "video_*",
        "sensors": [
          {
                "protocol": "camera.gmsl",
                "params": "camera-type=ar0231-rccb,csi-port=ab,camera-count=2,output-format=h264,async-record=0,fifo-size=3",
                "channel-names": [
                                "camera_0",
                                "camera_1",
                                "camera_2",
                                "camera_3"
                             ]
          },
          {
                "protocol": "camera.gmsl",
                "params": "camera-type=ar0231-rccb,csi-port=cd,camera-count=2,output-format=h264,async-record=0,fifo-size=3",
                "channel-names": [
                                "camera_4",
                                "camera_5",
                                "camera_6",
                                "camera_7"
                             ]
          },
          {
                "protocol": "camera.gmsl",
                "params": "camera-type=ar0231,csi-port=ef,camera-count=1,output-format=h264,async-record=0,fifo-size=3",
                "channel-names": [
                                "camera_8",
                                "camera_9",
                                "camera_10",
                                "camera_11"
                             ]
          }

        ]
    },

    "can" : {
        "separate-thread": true,
        "write-file-pattern": "can_*",
        "sensors" : [
            {
                "protocol": "can.socket",
                "params": "device=can0",
                "channel-name": "0"
            }
        ]
    },
    "gps" : {
        "separate-thread": false,
        "write-file-pattern": "gps_*",
        "lock-override": false,
        "sensors" : [
            {
              "protocol": "gps.uart",
              "params": "device=/dev/ttyACM0,baud=115200",
              "channel-name": "0"
            }
        ]
    },
    "imu" : {
        "separate-thread": false,
        "write-file-pattern": "imu_*",
        "sensors" : [
            {
              "protocol": "imu.xsens",
              "params": "device=0,frequency=100",
              "channel-name": "0"
            }
        ]
    },
    "lidar" : {
        "separate-thread": false,
        "write-file-pattern": "lidar_*",
        "sensors" : [
            {
                "protocol": "lidar.virtual",
                "params": "file=./lidar_sample.bin",
                "channel-name": "0"
            }
        ]
    },
    "radar" : {
        "write-file-pattern": "radar_*",
        "sensors" : [
            {
                "protocol": "radar.virtual",
                "params": "file=./radar_sample.bin",
                "channel-name": "0"
            }
        ]
    }
}

Dear yangquanhui,

Could you let me know information about what’s being recorded, and also the speed of the storage medium that is being recorded to (use dd if=/dev/zero of=<MOUNT_POINT>/testfile.txt bs=512k count=1024)?