Inappropriate ioctl for device

I’ve done some digging, but haven’t been able to resolve this issue, though I’ve found other threads on a related topic.

(Edit: also getting this error for samples 09-10, which I had running yesterday. While trying to debug 11, it looks like 9 and 10 have broken as well.)

I’m trying to get the sample

~/tegra_multimedia_api/samples/11_camera_object_identification

to work, but running into a lot of issues. Here’s what’s happening at the moment when I run the app:

nvidia@tegra-ubuntu:~/tegra_multimedia_api/samples/11_camera_object_identification$ ./camera_caffe -width 1920 -height 1080     -lib opencv_consumer_lib/libopen
cv_consumer.so     -model $HOME/caffe/models/bvlc_reference_caffenet/deploy.prototxt     -trained $HOME/caffe/models/bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel     -mean $HOME/caffe/data/ilsvrc12/imagenet_mean.binaryproto     -label $HOME/caffe/data/ilsvrc12/synset_words.txt
opencv_handler_open is called
opencv_set_config 0
Image width 1920
opencv_set_config 1
Image height 1080
opencv_set_config 2
CAFFE model file : 0x666f50
opencv_set_config 3
CAFFE trained file : 0x666ee0
opencv_set_config 4
CAFFE mean file : 0x664d50
opencv_set_config 5
CAFFE label file : 0x664c10
opencv_set_config 6
PCLHW_DTParser
PCLHW_DTParser
LoadOverridesFile: looking for override file [/Calib/camera_override.isp] 1/16LoadOverridesFile: looking for override file [/data/nvcam/settings/camera_overrides.isp] 2/16LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/camera_overrides.isp] 3/16LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/camera_overrides.isp] 4/16LoadOverridesFile: looking for override file [/data/nvcam/camera_overrides.isp] 5/16LoadOverridesFile: looking for override file [/data/nvcam/settings/e3326_front_P5V27C.isp] 6/16LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/e3326_front_P5V27C.isp] 7/16LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/e3326_front_P5V27C.isp] 8/16---- imager: No override file found. ----
PRODUCER: Creating output stream
PRODUCER: Launching consumer thread
Failed to query video capabilities: Inappropriate ioctl for device
libv4l2_nvvidconv (0):(774) (INFO) : Allocating (10) OUTPUT PLANE BUFFERS Layout=1
libv4l2_nvvidconv (0):(790) (INFO) : Allocating (10) CAPTURE PLANE BUFFERS Layout=0
create vidoe converter return true
CONSUMER: Waiting until producer is connected...
PRODUCER: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
(NvOdmDevice) Error IoctlFailed: error setting format (in dvs/git/dirty/git-master_linux/camera-partner/imager/src/V4L2Device.cpp, function setActiveMode(), line 1189)

(Many more errors ensue, which I’ve omitted, since they’re likely just cascading off of previous faults.)

Apollys,
which Jetpack version or download link you are using?