V5L recorder tool, can't record more than 2 cameras when use h264/lraw format

Does there is any plan to release patch or update to fix it?

V5L version : 5.0.5.0
Device: Drive PX2 : autoCruise (P3470) & autoChauffeur (P2379)
Firmware Version : 4.02.02.00

whe use h264 as format;
the camera config in recorder-config.json
—>
camera": {
“separate-thread”: true,
“record-thread-priority”: 0,
“write-file-pattern”: “video_*”,
“sensors”: [
{
“protocol”: “camera.gmsl”,
“params”: “camera-type=ar0231-rccb,csi-port=ab,camera-count=3,output-format=h264,async-record=1,fifo-size=20”,
“channel-names”: [
“first”,
“second”,
“third”,
“fourth”
]
}
]
},

error message in dw_recorded_folder/logs/log.txt
—>

1513839430411226[I]: Import paths:
1513839430411352[I]: /home/nvidia/tools/qml
1513839431067265[V]: MainQmlBridge::Initializing
1513839431067348[V]: SettingsQmlBridge::Initializing
1513839431072201[V]: RecorderQmlBridge::Initializing
1513839431177551[D]: Initialize DriveWorks SDK v0.6.54
1513839431177602[V]: Release build with GNU 4.9.2 from v0.6.0-rc5-0-g3f25786 against Vibrante PDK v5.0.5.0
1513839431177679[D]: TimeSource: monotonic epoch time offset is 1513838226988958
1513839431178540[E]: TimeSource: PTP ioctl returned error. Synchronized time will not be available.
1513839431178656[W]: TimeSource: Could not detect valid PTP time source at ‘eth0’. Fallback to CLOCK_MONOTONIC.
1513839431180377[D]: SDK: Resources mounted from /usr/local/driveworks-0.6/data/resources
1513839431682506[D]: SDK: Create NvMediaDevice
SDK: use EGL display as provided
SDK: Default GPU Device set to device number 0. Total number of devices detected: 1
1513839431758781[D]: Creating recorder with configuration “/home/nvidia/tools/recorder-config.json”
1513839431759930[D]: Recorder: Setting DriveWorks log level to debug…
1513839431760258[D]: SAL: identified board as DrivePX2-Autocruise
1513839431760342[D]: SensorFactory::createSensor() -> gps.uart, device=/dev/ttyUSB0,baud=9600
1513839431761625[E]: SensorDriver: No support for recording from virtual sensors for imu.virtual
1513839431762105[E]: Cannot add imu sensors…
1513839431762260[E]: SensorDriver: No support for recording from virtual sensors for can.virtual
1513839431762593[E]: Cannot add can sensors…
1513839431762691[E]: SensorDriver: No support for recording from virtual sensors for lidar.virtual
1513839431762900[E]: Cannot add lidar sensors…
1513839431763090[E]: SensorDriver: No support for recording from virtual sensors for radar.virtual
1513839431763336[E]: Cannot add radar sensors…
1513839431763541[D]: SensorFactory::createSensor() -> camera.gmsl, camera-type=ar0231-rccb,csi-port=ab,camera-count=3,output-format=yuv,async-record=1,fifo-size=20
1513839431763968[D]: CameraGMSL: required FPS = 30, resolution = 1920x1208
1513839432183873[D]: Thread created for 0
1513839432184249[D]: Thread created for 1
1513839432184250[D]: EndpointTTY: started on /dev/ttyUSB0
1513839432184624[D]: GPS lock override: false
1513839432233316[D]: Available sensors count: 1
1513839432233967[D]: Total available bytes on disks: 31238221824
1513839432256572[D]: CameraGMSLDriver: Could not read frame for channel 0 due to DW_NOT_READY
1513839432316633[D]: CameraGMSLDriver: Could not read frame for channel 1 due to DW_NOT_READY
1513839432682752[D]: Available sensors count: 2
1513839435604164[D]: Start recording…
1513839435611815[D]: Record file(sensor type = 2, channel = 0, path = '/home/nvidia/tools/dw_2017_12_21_14:57:15_150322_default/gps_0.bin): Added to monitoring list
1513839435623440[W]: CameraGMSL: serializer bitrate not specified. Using 8000000.
1513839435657746[D]: Record file(sensor type = 0, channel = 0, path = '/home/nvidia/tools/dw_2017_12_21_14:57:15_150322_default/video_first.h264): Added to monitoring list
1513839435657911[W]: CameraGMSL: serializer bitrate not specified. Using 8000000.
1513839435695887[D]: Record file(sensor type = 0, channel = 1, path = '/home/nvidia/tools/dw_2017_12_21_14:57:15_150322_default/video_second.h264): Added to monitoring list
1513839435696136[W]: CameraGMSL: serializer bitrate not specified. Using 8000000.
1513839435812897[D]: Record file(sensor type = 0, channel = 2, path = '/home/nvidia/tools/dw_2017_12_21_14:57:15_150322_default/video_third.h264): Added to monitoring list
1513839435829468[E]: Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 1
1513839435829532[E]:
1513839435829593[E]: CameraGMSLDriver: Serialization of image failed: DW_NVMEDIA_ERROR
1513839435837734[E]: Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 1
1513839435838011[E]:
1513839435838095[E]: CameraGMSLDriver: Serialization of image failed: DW_NVMEDIA_ERROR
1513839435845592[E]: Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 1
1513839435845636[E]:
1513839435845705[E]: CameraGMSLDriver: Serialization of image failed: DW_NVMEDIA_ERROR
1513839435854662[E]: Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 1
1513839435854714[E]:
1513839435854744[E]: CameraGMSLDriver: Serialization of image failed: DW_NVMEDIA_ERROR
1513839435863427[E]: Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 1
1513839435863478[E]:
1513839435863528[E]: CameraGMSLDriver: Serialization of image failed: DW_NVMEDIA_ERROR
1513839435871691[E]: Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 1
1513839435871740[E]:
1513839435871766[E]: CameraGMSLDriver: Serialization of image failed: DW_NVMEDIA_ERROR
1513839435888195[E]: Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderNvMedia: encode feed frame error : 1

----- repeat and repeat forever -------




whe use lraw as format;
the camera config in recorder-config.json
—>
“camera”: {
“separate-thread”: true,
“record-thread-priority”: 0,
“write-file-pattern”: “video_*”,
“sensors”: [
{
“protocol”: “camera.gmsl”,
“params”: “camera-type=ar0231-rccb,csi-port=ab,camera-count=3,output-format=lraw,async-record=1,fifo-size=16”,
“channel-names”: [
“first”,
“second”,
“third”,
“fourth”
]
}
]
},

error message in dw_recorded_folder/logs/log.txt
—>

1513840313657456[I]: Import paths:
1513840313657564[I]: /home/nvidia/tools/qml
1513840314276575[V]: MainQmlBridge::Initializing
1513840314276684[V]: SettingsQmlBridge::Initializing
1513840314281949[V]: RecorderQmlBridge::Initializing
1513840314412774[D]: Initialize DriveWorks SDK v0.6.54
1513840314412868[V]: Release build with GNU 4.9.2 from v0.6.0-rc5-0-g3f25786 against Vibrante PDK v5.0.5.0
1513840314412978[D]: TimeSource: monotonic epoch time offset is 1513839479145132
1513840314414020[E]: TimeSource: PTP ioctl returned error. Synchronized time will not be available.
1513840314414275[W]: TimeSource: Could not detect valid PTP time source at ‘eth0’. Fallback to CLOCK_MONOTONIC.
1513840314420808[D]: SDK: Resources mounted from /usr/local/driveworks-0.6/data/resources
1513840315191634[D]: SDK: Create NvMediaDevice
SDK: use EGL display as provided
SDK: Default GPU Device set to device number 0. Total number of devices detected: 1
1513840315282279[D]: Creating recorder with configuration “/home/nvidia/tools/recorder-config.json”
1513840315282659[D]: Recorder: Setting DriveWorks log level to debug…
1513840315284186[D]: SAL: identified board as DrivePX2-Autocruise
1513840315284276[D]: SensorFactory::createSensor() -> gps.uart, device=/dev/ttyUSB0,baud=9600
1513840315287041[E]: SensorDriver: No support for recording from virtual sensors for imu.virtual
1513840315287550[E]: Cannot add imu sensors…
1513840315287813[E]: SensorDriver: No support for recording from virtual sensors for can.virtual
1513840315288170[E]: Cannot add can sensors…
1513840315288381[E]: SensorDriver: No support for recording from virtual sensors for lidar.virtual
1513840315288699[E]: Cannot add lidar sensors…
1513840315288914[E]: SensorDriver: No support for recording from virtual sensors for radar.virtual
1513840315289417[E]: Cannot add radar sensors…
1513840315289693[D]: CameraGMSLDriver: output-format=lraw switching output-format=lraw+h264 for on screen camera preview. Only raw will be recorded.
1513840315289746[D]: SensorFactory::createSensor() -> camera.gmsl, camera-type=ar0231-rccb,csi-port=ab,camera-count=3,output-format=raw+yuv,async-record=1,fifo-size=16
1513840315292644[D]: CameraGMSL: required FPS = 30, resolution = 1920x1208
1513840315733042[D]: Thread created for 0
1513840315733321[D]: Thread created for 1
1513840315733374[D]: EndpointTTY: started on /dev/ttyUSB0
1513840315733674[D]: GPS lock override: false
1513840315764219[D]: Available sensors count: 1
1513840315765001[D]: Total available bytes on disks: 31227318272
1513840315803460[D]: CameraGMSLDriver: Could not read frame for channel 0 due to DW_NOT_READY
1513840315863473[D]: CameraGMSLDriver: Could not read frame for channel 1 due to DW_NOT_READY
1513840316236782[D]: Available sensors count: 2
1513840317187057[D]: Total available bytes on disks: 31227314176
1513840317875750[D]: Start recording…
1513840317885262[D]: Record file(sensor type = 2, channel = 0, path = '/home/nvidia/tools/dw_2017_12_21_15:11:57_150322_default/gps_0.bin): Added to monitoring list
1513840317906311[W]: CameraGMSL: serializer bitrate not specified. Using 8000000.
1513840317906498[D]: SDK: Cuda context initialised successfully.
1513840318100879[D]: EGLStream: EGL_SUCCESS
1513840318100961[D]: SDK: Cuda context initialised successfully.
1513840318101766[D]: Record file(sensor type = 0, channel = 0, path = '/home/nvidia/tools/dw_2017_12_21_15:11:57_150322_default/video_first.lraw): Added to monitoring list
1513840318101958[W]: CameraGMSL: serializer bitrate not specified. Using 8000000.
1513840318102151[D]: SDK: Cuda context initialised successfully.
1513840318134332[E]: Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderLRAW: createNvMediaImageFromProperties() failed
1513840318134383[E]:
1513840318134433[E]: CameraGMSLDriver: Cannot start recording sensor channel 1 initialization of the serializer failed
1513840318134693[W]: CameraGMSL: serializer bitrate not specified. Using 8000000.
1513840318134800[D]: SDK: Cuda context initialised successfully.
1513840318138106[E]: Driveworks exception thrown: DW_NVMEDIA_ERROR: EncoderLRAW: createNvMediaImageFromProperties() failed
1513840318138151[E]:
1513840318138189[E]: CameraGMSLDriver: Cannot start recording sensor channel 2 initialization of the serializer failed
1513840318139716[E]: Driveworks exception thrown: DW_INVALID_ARGUMENT: Cannot cast handle, given instance is a nullptr
1513840318139787[E]:
1513840318139812[E]: CameraGMSLDriver: Serialization of image failed: DW_INVALID_ARGUMENT
1513840318139962[E]: Driveworks exception thrown: DW_INVALID_ARGUMENT: Cannot cast handle, given instance is a nullptr
1513840318140017[E]:
1513840318140095[E]: CameraGMSLDriver: Serialization of image failed: DW_INVALID_ARGUMENT
1513840318142559[E]: Driveworks exception thrown: DW_INVALID_ARGUMENT: Cannot cast handle, given instance is a nullptr
1513840318142611[E]:
1513840318142637[E]: CameraGMSLDriver: Serialization of image failed: DW_INVALID_ARGUMENT
1513840318142901[E]: Driveworks exception thrown: DW_INVALID_ARGUMENT: Cannot cast handle, given instance is a nullptr
1513840318142954[E]:
1513840318142984[E]: CameraGMSLDriver: Serialization of image failed: DW_INVALID_ARGUMENT
1513840318147061[E]: Driveworks exception thrown: DW_INVALID_ARGUMENT: Cannot cast handle, given instance is a nullptr
1513840318147246[E]:
1513840318147396[E]: CameraGMSLDriver: Serialization of image failed: DW_INVALID_ARGUMENT
1513840318147470[E]: Driveworks exception thrown: DW_INVALID_ARGUMENT: Cannot cast handle, given instance is a nullptr
1513840318147505[E]:
1513840318147529[E]: CameraGMSLDriver: Serialization of image failed: DW_INVALID_ARGUMENT
1513840318149124[E]: Driveworks exception thrown: DW_INVALID_ARGUMENT: Cannot cast handle, given instance is a nullptr
1513840318149244[E]:
1513840318149285[E]: CameraGMSLDriver: Serialization of image failed: DW_INVALID_ARGUMENT
1513840318149505[E]: Driveworks exception thrown: DW_INVALID_ARGUMENT: Cannot cast handle, given instance is a nullptr
1513840318149568[E]:
1513840318149623[E]: CameraGMSLDriver: Serialization of image failed: DW_INVALID_ARGUMENT
1513840318154673[E]: Driveworks exception thrown: DW_INVALID_ARGUMENT: Cannot cast handle, given instance is a nullptr
1513840318154716[E]:
1513840318154738[E]: CameraGMSLDriver: Serialization of image failed: DW_INVALID_ARGUMENT
1513840318154975[E]: Driveworks exception thrown: DW_INVALID_ARGUMENT: Cannot cast handle, given instance is a nullptr
1513840318155026[E]:
1513840318155079[E]: CameraGMSLDriver: Serialization of image failed: DW_INVALID_ARGUMENT
1513840318163002[E]: Driveworks exception thrown: DW_INVALID_ARGUMENT: Cannot cast handle, given instance is a nullptr
1513840318163373[E]: 1513840318163645[E]: Driveworks exception thrown: DW_INVALID_ARGUMENT: Cannot cast handle, given instance is a nullptr
1513840318163689[E]:
1513840318163725[E]: CameraGMSLDriver: Serialization of image failed: DW_INVALID_ARGUMENT

1513840318164056[E]: CameraGMSLDriver: Serialization of image failed: DW_INVALID_ARGUMENT
1513840318169976[E]: Driveworks exception thrown: DW_INVALID_ARGUMENT: Cannot cast handle, given instance is a nullptr

plus : I ran prerecorder-checker was working. (3 cameras, lraw format)
The result is Ok with 3 cameras and GPS.
But there still many driveworks exceptions thrown.

seem the screenshot as below.

https://drive.google.com/open?id=1slwUCVUZpy6WISjLv8ZDgZEtylOqdrXy

Dear d0121006,

May I know did you run recorder-qt with raw format option? is it OK?
And could you please help to check this topic after reboot the system? Thanks.

Hello,

I have similar issues, I can’t use recorder-qt to record raw but h264 is fine.

h264 config.json file:

"camera": {
        "separate-thread": true,
        "record-thread-priority": 0,
        "write-file-pattern": "camera_*",
        "sensors": [
          {
                "protocol": "camera.gmsl",
                "params": "camera-type=ar0231-rccb,csi-port=ab,camera-count=2,camera-mask=0011,output-format=h264,fifo-size=6,async-record=0",
                "channel-names": ["ab_0","ab_1"]
          },
          {
                "protocol": "camera.gmsl",
                "params": "camera-type=ar0231,csi-port=cd,camera-count=1,camera-mask=0001,output-format=h264,fifo-size=6,async-record=0",
                "channel-names": ["cd_0"]
          }
        ]
    }

raw config.json file:

"camera": {
        "separate-thread": true,
        "record-thread-priority": 0,
        "write-file-pattern": "camera_*",
        "sensors": [
          {
                "protocol": "camera.gmsl",
                "params": "camera-type=ar0231-rccb,csi-port=ab,camera-count=2,camera-mask=0011,output-format=raw,fifo-size=6,async-record=0",
                "channel-names": ["ab_0","ab_1"]
          },
          {
                "protocol": "camera.gmsl",
                "params": "camera-type=ar0231,csi-port=cd,camera-count=1,camera-mask=0001,output-format=raw,fifo-size=6,async-record=0",
                "channel-names": ["cd_0"]
          }
        ]
    }

prerecord-checker works with both config files.

When pressing the start recording button in recorder-qt with the raw configuration file it exits and throws the following errors in the terminal:

nvidia@nvidia:~/driveworks-0.6/tools$ sudo ./recorder-qt 
[sudo] password for nvidia: 
nvrm_gpu: Bug 200215060 workaround enabled.
Warning: MODS log does not exist!
1516093101603407[I]: Import paths:
1516093101603547[I]: /home/nvidia/driveworks-0.6/tools/qml
QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0
QFontDatabase: Cannot find font directory /usr/local/qt5/lib/fonts.
Note that Qt no longer ships fonts. Deploy some (from http://dejavu-fonts.org for example) or switch to fontconfig.
1516093102196930[V]: MainQmlBridge::Initializing
1516093102197052[V]: SettingsQmlBridge::Initializing
1516093102199044[V]: RecorderQmlBridge::Initializing
1516093102320934[D]: Initialize DriveWorks SDK v0.6.54
1516093102321017[V]: Release build with GNU 4.9.2 from v0.6.0-rc5-0-g3f25786 against Vibrante PDK v5.0.5.0
1516093102321112[D]: TimeSource: monotonic epoch time offset is 1516090602092552
1516093102322061[E]: TimeSource: PTP ioctl returned error. Synchronized time will not be available.
1516093102322236[W]: TimeSource: Could not detect valid PTP time source at 'eth0'. Fallback to CLOCK_MONOTONIC.
1516093102324934[D]: SDK: Resources mounted from /usr/local/driveworks-0.6/data/resources
1516093102985305[D]: SDK: Create NvMediaDevice
SDK: use EGL display as provided
SDK: Default GPU Device set to device number 0. Total number of devices detected: 2
1516093103057197[D]: Creating recorder with configuration "/home/nvidia/driveworks-0.6/tools/recorder-config_h264.json"
1516093103057619[D]: Recorder: Setting DriveWorks log level to verbose...
1516093103057921[D]: SAL: identified board as DrivePX2-TegraA
1516093103058100[D]: SensorFactory::createSensor() -> camera.gmsl, camera-type=ar0231-rccb,csi-port=ab,camera-count=2,camera-mask=0011,output-format=yuv,fifo-size=6,async-record=0
1516093103058602[D]: 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
***********************
1516093103419603[D]: SensorFactory::createSensor() -> camera.gmsl, camera-type=ar0231,csi-port=cd,camera-count=1,camera-mask=0001,output-format=yuv,fifo-size=6,async-record=0
1516093103420159[D]: 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
***********************
nvmEglStProducerCreateCommon: Entered
nvmEglStProducerCreateCommon: Entered
nvmEglStProducerCreateCommon: Entered
1516093103699148[D]: Thread created for 1
1516093103699709[D]: GPS lock override: false
1516093103725652[D]: Total available bytes on disks: 1997952937984
1516093103825642[D]: CameraGMSLDriver: Could not read frame for channel 2 due to DW_NOT_READY
1516093104194887[D]: Available sensors count: 1
1516093114995589[D]: Killing Recorder...
***** aurix state *****
 CAM_PWR_ON: 0x2
 TEGRA_GMSL: UNKNOWN
 TEGRA_FPDL: UNKNOWN
 TEGRA_A_HDMI: UNKNOWN
 TEGRA_B_HDMI: UNKNOWN
 TEGRA_PCI: UNKNOWN
 FAN_STATE: UNKNOWN
***********************
***** aurix state *****
 CAM_PWR_ON: 0x0
 TEGRA_GMSL: UNKNOWN
 TEGRA_FPDL: UNKNOWN
 TEGRA_A_HDMI: UNKNOWN
 TEGRA_B_HDMI: UNKNOWN
 TEGRA_PCI: UNKNOWN
 FAN_STATE: UNKNOWN
***********************
1516093115538343[D]: Creating recorder with configuration "/home/nvidia/driveworks-0.6/tools/recorder-config_raw.json"
1516093115538498[D]: Recorder: Setting DriveWorks log level to verbose...
1516093115538631[D]: SAL: identified board as DrivePX2-TegraA
1516093115538726[D]: CameraGMSLDriver: output-format=raw switching output-format=raw+h264 for on screen camera preview. Only raw will be recorded.
1516093115538746[D]: SensorFactory::createSensor() -> camera.gmsl, camera-type=ar0231-rccb,csi-port=ab,camera-count=2,camera-mask=0011,output-format=raw+yuv,fifo-size=6,async-record=0
1516093115538950[D]: 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
***********************
1516093115856628[D]: CameraGMSLDriver: output-format=raw switching output-format=raw+h264 for on screen camera preview. Only raw will be recorded.
1516093115856689[D]: SensorFactory::createSensor() -> camera.gmsl, camera-type=ar0231,csi-port=cd,camera-count=1,camera-mask=0001,output-format=raw+yuv,fifo-size=6,async-record=0
1516093115857117[D]: 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
***********************
nvmEglStProducerCreateCommon: Entered
nvmEglStProducerCreateCommon: Entered
nvmEglStProducerCreateCommon: Entered
1516093116129852[D]: Thread created for 1
1516093116130349[D]: GPS lock override: false
1516093116137240[D]: Total available bytes on disks: 1997952937984
1516093116259166[D]: CameraGMSLDriver: Could not read frame for channel 2 due to DW_NOT_READY
1516093116608792[D]: Available sensors count: 1
1516093120779108[D]: Start recording...
1516093120806926[D]: Record file(sensor type = 0, channel = 0, path = '/media/nvidia/LVDS1_T/dw_2018_01_16_09:58:40_100001_raw/camera_ab_0.raw): Added to monitoring list
1516093120808233[D]: Record file(sensor type = 0, channel = 1, path = '/media/nvidia/LVDS1_T/dw_2018_01_16_09:58:40_100001_raw/camera_ab_1.raw): Added to monitoring list
1516093120809309[D]: Record file(sensor type = 0, channel = 2, path = '/media/nvidia/LVDS1_T/dw_2018_01_16_09:58:40_100001_raw/camera_cd_0.raw): Added to monitoring list
cp: cannot stat '/var/log/mods_log.txt': No such file or directory
Warning: Unable to copy MODS log
cp: cannot stat '/var/log/mods_console_log.txt': No such file or directory
Warning: Unable to copy MODS console log
Segmentation fault (core dumped)

To gain access to the sensors once again I need to reboot the DrivePX2.

Dear Mattias_Johansson,

Could you please re-try it with below command? Thanks.
./record-qt CUDA_VISIBLE_DEVICES=0 or ./record-qt CUDA_VISIBLE_DEVICES=1