Motion - Bug Report 2010x 04x 02x 124450
You are here: Foswiki>Motion Web>BugReports>BugReport2010x04x02x124450 (10 Feb 2011, AngelCarpintero)Edit Attach

BUG: Segmentation fault

I do not understand why. Motion 3.10.1 compiled by another person on Doug computer processor brcm47xx started normally. Compiled by me under the Motion 3.11.1 or trunk on a personal computer running on a brcm47xx no cross-compilation of course I do. FFmpeg version under which the intended movement and Motion 3.10.1 3.11.1 or trunk are the same.

Motion 3.11.1 or motion trunk

root@OpenWrt:/# LD_PRELOAD=/mnt/lib/libv4l/v4l2convert.so /mnt/bin/motion -c /mnt/conf/motion.conf -n -d 10
[0] conf_load: Processing thread 0 - config file /mnt/conf/motion.conf
[0] motion_startup: Motion trunk-r483 Started
[0] ffmpeg_init: ffmpeg LIBAVCODEC_BUILD 3356416 LIBAVFORMAT_BUILD 3411200
[0] main: Thread 1 is from /mnt/conf/motion.conf
[0] main: Thread 1 is device: /dev/video0 input 8
[0] main: Stream port 0
[1] motion_init: Thread 1 started
[0] main: Waiting for threads to finish, pid: 2092
[1] vid_v4lx_start: Using videodevice /dev/video0 and input 8
Segmentation fault

Motion 3.11.1 or motion trunk without  LD_PRELOAD=/mnt/lib/libv4l/v4l2convert.so (not work camera)
root@OpenWrt:/# /mnt/bin/motion -c /mnt/conf/motion.conf -n           
[0] conf_load: Processing thread 0 - config file /mnt/conf/motion.conf
[0] motion_startup: Motion trunk-r483 Started
[0] ffmpeg_init: ffmpeg LIBAVCODEC_BUILD 3356416 LIBAVFORMAT_BUILD 3411200
[0] main: Thread 1 is from /mnt/conf/motion.conf
[1] motion_init: Thread 1 started
[1] vid_v4lx_start: Using videodevice /dev/video0 and input 8
[1] v4l2_get_capability: 
------------------------
cap.driver: "pac207"
cap.card: "CIF Single Chip     "
cap.bus_info: "usb-ssb0:1-1.4"
cap.capabilities=0x05000001
------------------------
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] v4l2_set_pix_format: Supported palettes:
[1] 0: P207 (P207)
[1] v4l2_set_pix_format: 0 - P207 (compressed : 1) (0x37303250)
[1] Selected palette P207
[1] v4l2_set_pix_format: index_format 6 Testing palette P207 (320x240)
[1] v4l2_set_pix_format: Adjusting resolution from 320x240 to 176x144.
[1] v4l2_set_pix_format: Using palette P207 (176x144) bytesperlines 176 sizeimage 25632 colorspace 00000008
[1] v4l2_scan_controls: found control 0x00980900, "Brightness", range 0,255 
[1] v4l2_scan_controls:         "Brightness", default 46, current 46
[1] v4l2_scan_controls: found control 0x00980911, "exposure", range 3,26 
[1] v4l2_scan_controls:         "exposure", default 5, current 4
[1] v4l2_scan_controls: found control 0x00980912, "Auto Gain", range 0,1 
[1] v4l2_scan_controls:         "Auto Gain", default 1, current 1
[1] v4l2_scan_controls: found control 0x00980913, "gain", range 0,31 
[1] v4l2_scan_controls:         "gain", default 9, current 9
[1] v4l2_set_mmap: mmap information: frames=4
[1] v4l2_set_mmap: 0 length=28672
[1] v4l2_set_mmap: 1 length=28672
[1] v4l2_set_mmap: 2 length=28672
[1] v4l2_set_mmap: 3 length=28672
[1] vid_v4lx_start: Using V4L2
[1] image_ring_resize: Resizing pre_capture buffer to 1 items
[1] motion_init: Error capturing first image
[1] event_newfile: File of type 8 saved to: /mnt/video/1-19700101024226.avi



Motion 3.10.1 compiled other men on other machine run on mips32
root@OpenWrt:/# LD_PRELOAD=/mnt/lib/libv4l/v4l2convert.so /mnt/motion -c /mnt/conf/motion.conf-old2 -n          
[0] Processing thread 0 - config file /mnt/conf/motion.conf-old2
[0] Motion 3.2.10.1 Started
[0] ffmpeg LIBAVCODEC_BUILD 3356416 LIBAVFORMAT_BUILD 3411200
[0] Thread 1 is from /mnt/conf/motion.conf-old2
[1] Thread 1 started
[1] cap.driver: "pac207"
[1] cap.card: "CIF Single Chip     "
[1] cap.bus_info: "usb-ssb0:1-1.4"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] Supported palettes:
[1] 0: RGB3 (RGB3)
[1] Selected palette RGB3
[1] index_format 4 Test palette RGB3 (320x240)
[1] Using palette RGB3 (320x240) bytesperlines 960 sizeimage 230400 colorspace 00000008
[1] found control 0x00980900, "Brightness", range 0,255 
[1]     "Brightness", default 46, current 46
[1] found control 0x00980910, "Gamma (software)", range 500,3000 
[1]     "Gamma (software)", default 1500, current 0
[1] found control 0x00980911, "exposure", range 3,26 
[1]     "exposure", default 5, current 4
[1] found control 0x00980912, "Auto Gain", range 0,1 
[1]     "Auto Gain", default 1, current 1
[1] found control 0x00980913, "gain", range 0,31 
[1]     "gain", default 9, current 9
[1] mmap information:
[1] frames=4
[1] 0 length=2048000
[1] 1 length=2048000
[1] 2 length=2048000
[1] 3 length=2048000
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
[1] Resizing pre_capture buffer to 6 items
[1] File of type 8 saved to: /mnt/video/video.avi

Environment

Motion version: 3.2.11.1
ffmpeg version:  
Shared libraries: ffmpeg, sqlite3
Server OS:  
-- PavelShilin - 02 Apr 2010

Follow up

Hi Pavel,

Hard to guess what the issue without config files or a backtrace from core dump :

http://www.lavrsen.dk/foswiki/bin/view/Motion/CoreDumpInMotion

-- AngelCarpintero - 03 Apr 2010


Without some feedback this cannot be fixed.

-- AngelCarpintero - 10 Feb 2011

Fix record
Topic revision: r3 - 10 Feb 2011, AngelCarpintero
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.