Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7503

Camera board • Motion not working on Trixie

$
0
0
Pi 3 running Trixie, new install (using rpi installer), PiCam V2.

I can get the camera to stream, so I'm confident that the camera works.

Motion installed using apt install. The motion.conf file is as installed.

I've looked through other threads on here which appear to relate to this problem, but I think mine is different.

Motion will start from the command line, and using systemctl start, but with slightly differing results, but in neither case does it run successfully.

If I run

Code:

# libcamerify motion -c /etc/motion/motion.conf -l /var/log/motion/motion.log 2> /tmp/motion.log

I get :

Code:

[0:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file /etc/motion/motion.conf[0:motion] [NTC] [ALL] motion_startup: Logging to file (/var/log/motion/motion.log)[0:21:07.527456200] [1706] [1;32m INFO [1;37mCamera [1;34mcamera_manager.cpp:340 [0mlibcamera v0.6.0+rpt20251202[0:21:07.612705964] [1707] [1;32m INFO [1;37mIPAProxy [1;34mipa_proxy.cpp:180 [0mUsing tuning file /usr/share/libcamera/ipa/rpi/vc4/imx219.json[0:21:07.625049088] [1707] [1;32m INFO [1;37mCamera [1;34mcamera_manager.cpp:223 [0mAdding camera '/base/soc/i2c0mux/i2c@1/imx219@10' for pipeline handler rpi/vc4[0:21:07.625117682] [1707] [1;32m INFO [1;37mRPI [1;34mvc4.cpp:445 [0mRegistered camera /base/soc/i2c0mux/i2c@1/imx219@10 to Unicam device /dev/media3 and ISP device /dev/media0[0:21:07.627055519] [1706] [1;32m INFO [1;37mCamera [1;34mcamera.cpp:1215 [0mconfiguring streams: (0) 640x480-YUV420/sYCC[0:21:07.627597036] [1707] [1;32m INFO [1;37mRPI [1;34mvc4.cpp:620 [0mSensor: /base/soc/i2c0mux/i2c@1/imx219@10 - Selected sensor format: 640x480-SBGGR10_1X10/RAW - Selected unicam format: 640x480-pBAA/RAWmotion: ../include/libcamera/controls.h:190: T libcamera::ControlValue::get() const [with T = long int; typename std::enable_if<((! libcamera::details::is_span<U>::value) && (! std::is_same<std::basic_string_view<char>, typename std::remove_cv< <template-parameter-1-1> >::type>::value)), std::nullptr_t>::type <anonymous> = nullptr]: Assertion `!isArray_' failed.
and it then aborts.

The log file contains :

Code:

Hello[0:motion] [NTC] [ALL] [Jan 14 14:55:54] motion_startup: Motion 4.7.0 Started[0:motion] [NTC] [ALL] [Jan 14 14:55:54] motion_startup: Using default log type (ALL)[0:motion] [NTC] [ALL] [Jan 14 14:55:54] motion_startup: Using log type (ALL) log level (NTC)[0:motion] [NTC] [STR] [Jan 14 14:55:54] webu_start_strm: Starting all camera streams on port 8081[0:motion] [NTC] [STR] [Jan 14 14:55:54] webu_strm_ntc: Started camera 0 stream on port 8081[0:motion] [NTC] [STR] [Jan 14 14:55:54] webu_start_ctrl: Starting webcontrol on port 8080[0:motion] [NTC] [STR] [Jan 14 14:55:54] webu_start_ctrl: Started webcontrol on port 8080[0:motion] [NTC] [ENC] [Jan 14 14:55:54] ffmpeg_global_init: ffmpeg libavcodec version 61.19.101 libavformat version 61.7.100[0:motion] [NTC] [ALL] [Jan 14 14:55:54] translate_init: Language: English[0:motion] [NTC] [ALL] [Jan 14 14:55:54] motion_start_thread: Camera ID: 0 is from /etc/motion/motion.conf[0:motion] [NTC] [ALL] [Jan 14 14:55:54] motion_start_thread: Camera ID: 0 Camera Name: (null) Device: /dev/video0[0:motion] [NTC] [ALL] [Jan 14 14:55:54] main: Waiting for threads to finish, pid: 1680[1:ml1] [NTC] [ALL] [Jan 14 14:55:54] motion_init: Camera 0 started: motion detection Enabled[1:ml1] [NTC] [VID] [Jan 14 14:55:54] vid_start: Opening V4L2 device[1:ml1] [NTC] [VID] [Jan 14 14:55:54] v4l2_device_open: Using videodevice /dev/video0 and input -1[1:ml1] [NTC] [VID] [Jan 14 14:55:54] v4l2_device_capability: - VIDEO_CAPTURE[1:ml1] [NTC] [VID] [Jan 14 14:55:54] v4l2_device_capability: - STREAMING[1:ml1] [NTC] [VID] [Jan 14 14:55:54] v4l2_input_select: Name = "/base/soc/i2c0mux/i2c@1/imx219@"- CAMERA[1:ml1] [NTC] [VID] [Jan 14 14:55:54] v4l2_norm_select: Device does not support specifying PAL/NTSC norm[1:ml1] [NTC] [VID] [Jan 14 14:55:54] v4l2_pixfmt_try: Testing palette YU12 (640x480)[0:motion] [NTC] [ALL] [Jan 14 14:57:25] motion_startup: Motion 4.7.0 Started[0:motion] [NTC] [ALL] [Jan 14 14:57:25] motion_startup: Using default log type (ALL)[0:motion] [NTC] [ALL] [Jan 14 14:57:25] motion_startup: Using log type (ALL) log level (NTC)[0:motion] [NTC] [STR] [Jan 14 14:57:25] webu_start_strm: Starting all camera streams on port 8081[0:motion] [NTC] [STR] [Jan 14 14:57:25] webu_strm_ntc: Started camera 0 stream on port 8081[0:motion] [NTC] [STR] [Jan 14 14:57:25] webu_start_ctrl: Starting webcontrol on port 8080[0:motion] [NTC] [STR] [Jan 14 14:57:25] webu_start_ctrl: Started webcontrol on port 8080[0:motion] [NTC] [ENC] [Jan 14 14:57:25] ffmpeg_global_init: ffmpeg libavcodec version 61.19.101 libavformat version 61.7.100[0:motion] [NTC] [ALL] [Jan 14 14:57:25] translate_init: Language: English[0:motion] [NTC] [ALL] [Jan 14 14:57:25] motion_start_thread: Camera ID: 0 is from /etc/motion/motion.conf[0:motion] [NTC] [ALL] [Jan 14 14:57:25] motion_start_thread: Camera ID: 0 Camera Name: (null) Device: /dev/video0[0:motion] [NTC] [ALL] [Jan 14 14:57:25] main: Waiting for threads to finish, pid: 1692[1:ml1] [NTC] [ALL] [Jan 14 14:57:25] motion_init: Camera 0 started: motion detection Enabled[1:ml1] [NTC] [VID] [Jan 14 14:57:25] vid_start: Opening V4L2 device[1:ml1] [NTC] [VID] [Jan 14 14:57:25] v4l2_device_open: Using videodevice /dev/video0 and input -1[1:ml1] [NTC] [VID] [Jan 14 14:57:26] v4l2_device_capability: - VIDEO_CAPTURE[1:ml1] [NTC] [VID] [Jan 14 14:57:26] v4l2_device_capability: - STREAMING[1:ml1] [NTC] [VID] [Jan 14 14:57:26] v4l2_input_select: Name = "/base/soc/i2c0mux/i2c@1/imx219@"- CAMERA[1:ml1] [NTC] [VID] [Jan 14 14:57:26] v4l2_norm_select: Device does not support specifying PAL/NTSC norm[1:ml1] [NTC] [VID] [Jan 14 14:57:26] v4l2_pixfmt_try: Testing palette YU12 (640x480)[0:motion] [NTC] [ALL] [Jan 14 14:57:37] motion_startup: Motion 4.7.0 Started[0:motion] [NTC] [ALL] [Jan 14 14:57:37] motion_startup: Using default log type (ALL)[0:motion] [NTC] [ALL] [Jan 14 14:57:37] motion_startup: Using log type (ALL) log level (NTC)[0:motion] [NTC] [STR] [Jan 14 14:57:37] webu_start_strm: Starting all camera streams on port 8081[0:motion] [NTC] [STR] [Jan 14 14:57:37] webu_strm_ntc: Started camera 0 stream on port 8081[0:motion] [NTC] [STR] [Jan 14 14:57:37] webu_start_ctrl: Starting webcontrol on port 8080[0:motion] [NTC] [STR] [Jan 14 14:57:37] webu_start_ctrl: Started webcontrol on port 8080[0:motion] [NTC] [ENC] [Jan 14 14:57:37] ffmpeg_global_init: ffmpeg libavcodec version 61.19.101 libavformat version 61.7.100[0:motion] [NTC] [ALL] [Jan 14 14:57:37] translate_init: Language: English[0:motion] [NTC] [ALL] [Jan 14 14:57:37] motion_start_thread: Camera ID: 0 is from /etc/motion/motion.conf[0:motion] [NTC] [ALL] [Jan 14 14:57:37] motion_start_thread: Camera ID: 0 Camera Name: (null) Device: /dev/video0[0:motion] [NTC] [ALL] [Jan 14 14:57:37] main: Waiting for threads to finish, pid: 1701[1:ml1] [NTC] [ALL] [Jan 14 14:57:37] motion_init: Camera 0 started: motion detection Enabled[1:ml1] [NTC] [VID] [Jan 14 14:57:37] vid_start: Opening V4L2 device[1:ml1] [NTC] [VID] [Jan 14 14:57:37] v4l2_device_open: Using videodevice /dev/video0 and input -1[1:ml1] [NTC] [VID] [Jan 14 14:57:37] v4l2_device_capability: - VIDEO_CAPTURE[1:ml1] [NTC] [VID] [Jan 14 14:57:37] v4l2_device_capability: - STREAMING[1:ml1] [NTC] [VID] [Jan 14 14:57:37] v4l2_input_select: Name = "/base/soc/i2c0mux/i2c@1/imx219@"- CAMERA[1:ml1] [NTC] [VID] [Jan 14 14:57:37] v4l2_norm_select: Device does not support specifying PAL/NTSC norm[1:ml1] [NTC] [VID] [Jan 14 14:57:37] v4l2_pixfmt_try: Testing palette YU12 (640x480)
If I run it using :

Code:

# systemctl start motion
I get the following in the log file :

Code:

[0:motion] [NTC] [ALL] [Jan 14 15:43:18] motion_startup: Motion 4.7.0 Started[0:motion] [NTC] [ALL] [Jan 14 15:43:18] motion_startup: Using default log type (ALL)[0:motion] [NTC] [ALL] [Jan 14 15:43:18] motion_startup: Using log type (ALL) log level (NTC)[0:motion] [NTC] [STR] [Jan 14 15:43:18] webu_start_strm: Starting all camera streams on port 8081[0:motion] [NTC] [STR] [Jan 14 15:43:18] webu_strm_ntc: Started camera 0 stream on port 8081[0:motion] [NTC] [STR] [Jan 14 15:43:18] webu_start_ctrl: Starting webcontrol on port 8080[0:motion] [NTC] [STR] [Jan 14 15:43:18] webu_start_ctrl: Started webcontrol on port 8080[0:motion] [NTC] [ENC] [Jan 14 15:43:18] ffmpeg_global_init: ffmpeg libavcodec version 61.19.101 libavformat version 61.7.100[0:motion] [NTC] [ALL] [Jan 14 15:43:18] translate_init: Language: English[0:motion] [NTC] [ALL] [Jan 14 15:43:18] motion_start_thread: Camera ID: 0 is from /etc/motion/motion.conf[0:motion] [NTC] [ALL] [Jan 14 15:43:18] motion_start_thread: Camera ID: 0 Camera Name: (null) Device: /dev/video0[0:motion] [NTC] [ALL] [Jan 14 15:43:18] main: Waiting for threads to finish, pid: 1631[1:ml1] [NTC] [ALL] [Jan 14 15:43:18] motion_init: Camera 0 started: motion detection Enabled[1:ml1] [NTC] [VID] [Jan 14 15:43:18] vid_start: Opening V4L2 device[1:ml1] [NTC] [VID] [Jan 14 15:43:18] v4l2_device_open: Using videodevice /dev/video0 and input -1[1:ml1] [NTC] [VID] [Jan 14 15:43:18] v4l2_device_capability: - VIDEO_CAPTURE[1:ml1] [NTC] [VID] [Jan 14 15:43:18] v4l2_device_capability: - STREAMING[1:ml1] [NTC] [VID] [Jan 14 15:43:18] v4l2_input_select: Name = "/base/soc/i2c0mux/i2c@1/imx219@"- CAMERA[1:ml1] [NTC] [VID] [Jan 14 15:43:18] v4l2_norm_select: Device does not support specifying PAL/NTSC norm[1:ml1] [NTC] [VID] [Jan 14 15:43:18] v4l2_pixfmt_try: Testing palette YU12 (640x480)
and

Code:

# systemctl status motion
gives me :

Code:

motion.service - Motion detection video capture daemon     Loaded: loaded (/usr/lib/systemd/system/motion.service; disabled; preset: enabled)     Active: failed (Result: signal) since Wed 2026-01-14 15:43:18 UTC; 1min 0s ago   Duration: 993ms Invocation: c54c5a5c1695450a8f4d4d56ffaf7b76       Docs: man:motion(1)    Process: 1631 ExecStart=libcamerify /usr/bin/motion (code=killed, signal=ABRT)   Main PID: 1631 (code=killed, signal=ABRT)        CPU: 970msJan 14 15:43:18 misc motion[1631]: [0:motion] [NTC] [ALL] motion_startup: Logging to file (/var/log/motion/motion.log)Jan 14 15:43:18 misc libcamerify[1631]: [0:26:49.382973044] [1636]  INFO Camera camera_manager.cpp:340 libcamera v0.6.0+rpt20251202Jan 14 15:43:18 misc libcamerify[1631]: [0:26:49.468471390] [1637]  INFO IPAProxy ipa_proxy.cpp:180 Using tuning file /usr/share/libcamera/ipa/rpi/vc4/imx219.jsonJan 14 15:43:18 misc libcamerify[1631]: [0:26:49.481042268] [1637]  INFO Camera camera_manager.cpp:223 Adding camera '/base/soc/i2c0mux/i2c@1/imx219@10' for pipeline handler rpi/vc4Jan 14 15:43:18 misc libcamerify[1631]: [0:26:49.481144351] [1637]  INFO RPI vc4.cpp:445 Registered camera /base/soc/i2c0mux/i2c@1/imx219@10 to Unicam device /dev/media1 and ISP device /dev/media0Jan 14 15:43:18 misc libcamerify[1631]: [0:26:49.483469601] [1636]  INFO Camera camera.cpp:1215 configuring streams: (0) 640x480-YUV420/sYCCJan 14 15:43:18 misc libcamerify[1631]: [0:26:49.484060535] [1637]  INFO RPI vc4.cpp:620 Sensor: /base/soc/i2c0mux/i2c@1/imx219@10 - Selected sensor format: 640x480-SBGGR10_1X10/RAW - Selected unicam format: 640x480-pBAA/RAWJan 14 15:43:18 misc libcamerify[1631]: motion: ../include/libcamera/controls.h:190: T libcamera::ControlValue::get() const [with T = long int; typename std::enable_if<((! libcamera::details::is_span<U>::value) && (! std::is_same<std::basic_string_view<char>, typename std::remove_cv< <template-parameter-1-1> >::type>::value)), std::nullptr_t>::type <anonymous> = nullptr]: Assertion `!isArray_' failed.Jan 14 15:43:18 misc systemd[1]: motion.service: Main process exited, code=killed, status=6/ABRTJan 14 15:43:18 misc systemd[1]: motion.service: Failed with result 'signal'.
Any suggestions on where to look next ?

TIA

Adrian

Statistics: Posted by ffoiled — Wed Jan 14, 2026 3:55 pm — Replies 2 — Views 39



Viewing all articles
Browse latest Browse all 7503

Trending Articles