motion crashes when using two threads
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
motion (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: motion
When running motion with 2 webcams it crashes after a while.
thiago@
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7fe3b70 (LWP 17065)]
0x00d3dc1c in ?? () from /lib/tls/
(gdb) bt
#0 0x00d3dc1c in ?? () from /lib/tls/
#1 0x00d40ecd in free () from /lib/tls/
#2 0x0804cb08 in ?? ()
#3 0x0804f1ea in ?? ()
#4 0x0013396e in start_thread () from /lib/tls/
#5 0x00d9ea4e in clone () from /lib/tls/
motion.conf:
$ grep -v ^# motion.conf | egrep -v '^$'
daemon off
width 640
height 480
framerate 2
minimum_frame_time 1
auto_brightness off
brightness 0
contrast 0
saturation 0
hue 0
threshold 1500
threshold_tune off
noise_level 32
noise_tune on
pre_capture 0
post_capture 0
max_mpeg_time 0
output_all on
output_normal off
output_motion off
quality 85
ppm off
ffmpeg_cap_new off
ffmpeg_cap_motion off
ffmpeg_timelapse 0
ffmpeg_
ffmpeg_bps 500000
ffmpeg_
ffmpeg_video_codec mpeg1
ffmpeg_deinterlace off
snapshot_interval 1
locate off
text_right
text_changes off
text_event
text_double off
webcam_port 0
webcam_quality 50
webcam_motion off
webcam_maxrate 1
webcam_localhost on
webcam_limit 0
control_port 0
control_localhost on
control_html_output on
track_type 0
track_auto off
track_motorx 0
track_motory 0
track_maxx 0
track_maxy 0
track_iomojo_id 0
track_step_angle_x 10
track_step_angle_y 10
track_move_wait 10
track_speed 255
track_stepsize 40
quiet on
thread cam0.conf
thread cam1.conf
cam0.conf
thiago@
daemon off
setup_mode off
videodevice /dev/video0
width 640
height 480
framerate 30
minimum_frame_time 0
auto_brightness off
brightness 0
contrast 0
saturation 0
hue 0
threshold 1500
threshold_tune off
noise_level 32
noise_tune on
pre_capture 5
post_capture 5
max_mpeg_time 0
output_all off
output_normal on
output_motion off
quality 85
ppm off
ffmpeg_cap_new on
ffmpeg_cap_motion off
ffmpeg_timelapse 0
ffmpeg_
ffmpeg_bps 500000
ffmpeg_
ffmpeg_video_codec mpeg1
ffmpeg_deinterlace off
snapshot_interval 0
locate off
text_right
text_changes off
text_event
text_double off
jpeg_filename cam0/%v-
webcam_port 0
webcam_quality 50
webcam_motion off
webcam_maxrate 1
webcam_localhost on
webcam_limit 0
control_port 0
control_localhost on
control_html_output on
track_type 0
track_auto off
track_motorx 0
track_motory 0
track_maxx 0
track_maxy 0
track_iomojo_id 0
track_step_angle_x 10
track_step_angle_y 10
track_move_wait 10
track_speed 255
track_stepsize 40
quiet on
thiago@
daemon off
setup_mode off
videodevice /dev/video1
width 640
height 480
framerate 30
minimum_frame_time 0
auto_brightness off
brightness 0
contrast 0
saturation 0
hue 0
threshold 1500
threshold_tune off
noise_level 32
noise_tune on
pre_capture 5
post_capture 5
max_mpeg_time 0
output_all off
output_normal on
output_motion off
quality 85
ppm off
ffmpeg_cap_new on
ffmpeg_cap_motion off
ffmpeg_timelapse 0
ffmpeg_
ffmpeg_bps 500000
ffmpeg_
ffmpeg_video_codec mpeg1
ffmpeg_deinterlace off
snapshot_interval 0
locate off
text_right
text_changes off
text_event
text_double off
jpeg_filename cam1/%v-
webcam_port 0
webcam_quality 50
webcam_motion off
webcam_maxrate 1
webcam_localhost on
webcam_limit 0
control_port 0
control_localhost on
control_html_output on
track_type 0
track_auto off
track_motorx 0
track_motory 0
track_maxx 0
track_maxy 0
track_iomojo_id 0
track_step_angle_x 10
track_step_angle_y 10
track_move_wait 10
track_speed 255
track_stepsize 40
quiet on
I think something in the config above is making motion crash. With the configuration below motion doesn't seem to crash.
thiago@ haoni:~ /Desktop/ motion$ cat motion.conf
quiet on
output_all off
output_normal off
snapshot_interval 0
thread cam0.conf
thread cam1.conf
thiago@ haoni:~ /Desktop/ motion$ cat cam0.conf m%d%H%M% S-%q
daemon off
setup_mode off
videodevice /dev/video0
width 640
height 480
framerate 2
minimum_frame_time 1
auto_brightness off
brightness 0
contrast 0
saturation 0
hue 0
output_all on
output_normal on
output_motion off
quality 85
snapshot_interval 0
jpeg_filename cam0/%Y%
quiet on
thiago@ haoni:~ /Desktop/ motion$ cat cam1.conf m%d%H%M% S-%q
daemon off
setup_mode off
videodevice /dev/video1
width 640
height 480
framerate 2
minimum_frame_time 1
auto_brightness off
brightness 0
contrast 0
saturation 0
hue 0
output_all on
output_normal on
output_motion off
quality 85
snapshot_interval 0
jpeg_filename cam1/%Y%
quiet on