Failed to run impulse First photo was not created within 20 seconds

I’ve launched the “edge-impulse-linux-runner”, I got the following error:
[RUN] Using camera /base/soc/i2c0mux/i2c@1/imx219@10 starting…
[RUN] Failed to run impulse First photo was not created within 20 seconds

here is the result
command : “edge-impulse-linux-runner --verbose”.

[GST] Found devices: [
{
“id”: “”,
“name”: “/base/soc/i2c0mux/i2c@1/imx219@10”,
“caps”: [
{
“type”: “video/x-raw”,
“width”: 160,
“height”: 120,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 240,
“height”: 160,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 320,
“height”: 240,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 400,
“height”: 240,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 480,
“height”: 320,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 640,
“height”: 360,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 640,
“height”: 480,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 720,
“height”: 480,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 768,
“height”: 480,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 854,
“height”: 480,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 720,
“height”: 576,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 800,
“height”: 600,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 960,
“height”: 540,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 1024,
“height”: 576,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 960,
“height”: 640,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 1024,
“height”: 600,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 1024,
“height”: 768,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 1280,
“height”: 720,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 1152,
“height”: 864,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 1280,
“height”: 800,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 1360,
“height”: 768,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 1366,
“height”: 768,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 1440,
“height”: 900,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 1280,
“height”: 1024,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 1536,
“height”: 864,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 1280,
“height”: 1080,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 1600,
“height”: 900,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 1400,
“height”: 1050,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 1680,
“height”: 1050,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 1600,
“height”: 1200,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 1920,
“height”: 1080,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 2048,
“height”: 1080,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 1920,
“height”: 1200,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 2160,
“height”: 1080,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 2048,
“height”: 1152,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 2560,
“height”: 1080,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 2048,
“height”: 1536,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 2560,
“height”: 1440,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 2560,
“height”: 1600,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 2960,
“height”: 1440,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 2560,
“height”: 2048,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 3200,
“height”: 1800,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 3200,
“height”: 2048,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 3200,
“height”: 2400,
“framerate”: 0
},
{
“type”: “video/x-raw”,
“width”: 64,
“height”: 64,
“framerate”: 0
}
]
}
]
[RUN] Using camera /base/soc/i2c0mux/i2c@1/imx219@10 starting…
[GST] Starting gst-launch-1.0 with [
‘libcamerasrc’,
‘!’,
‘video/x-raw,width=640,height=480’,
‘!’,
‘videoconvert’,
‘!’,
‘jpegenc’,
‘!’,
‘multifilesink’,
‘location=test%05d.jpg’
]
[GST] Setting pipeline to PAUSED …

[GST] [0:34:43.958200950] [2222] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3700-f30ad033

[GST] [0:34:43.975094263] [2223] ERROR V4L2 v4l2_device.cpp:349 ‘imx219 10-0010’: Unable to set controls: Device or resource busy

[GST] [0:34:43.990207726] [2223] WARN RPI raspberrypi.cpp:1252 Mismatch between Unicam and CamHelper for embedded data usage!

[GST] [0:34:43.991211009] [2223] INFO RPI raspberrypi.cpp:1368 Registered camera /base/soc/i2c0mux/i2c@1/imx219@10 to Unicam device /dev/media3 and ISP device /dev/media0

[RUN] Failed to run impulse First photo was not created within 20 seconds

Hi @Jisu,

I am unable to replicate your error. I recommend trying some of the fixes suggested here:

https://forums.raspberrypi.com/viewtopic.php?t=327299

https://forums.raspberrypi.com/viewtopic.php?t=328686

The “Device or resource busy” makes me think that some other program is trying to use the camera. Can you take photos with the camera using another program (e.g. Raspberry Pi Documentation - Camera)?