Motion - Bug Report 2005x 10x 08x 150720

BUG: Segmentation Fault on Size Changes, when Mask Image doesn't fit

Having a mask file of i.e. 640*480 and changing the catpture size to any different size causes the according thread to segv when trying to load the image.

Test case

config:

width 512

height 384

mask file "Image file of a pgm mask of 640*480"

Environment

Motion version: 3.2.3
ffmpeg version: 0.4.9pre1
Shared libraries: ffmpeg
Server OS: linux

-- AxelAmthor - 08 Oct 2005

Follow up

Naturally mask file must be same size as the image size. That is how Motion is designed.

Maybe Motion should report it more elegantly but it should not work with it.


Hmm. Forgot to add a nicer error message to 3.2.4. Will keep this open for 3.2.5.

Not a very important bug I think. There is no plan to make Motion scale mask files.

-- KennethLavrsen - 18 Dec 2005

Fix record

It turned out to be a small syntax error (one % too many) in get_pgm - in a line that prints the error message that caused the seg fault.

The code was all there to report the mask size failure and to continue without the mask.

Fixed SVN 46 / motion-daily 20060223

-- KennethLavrsen - 22 Feb 2006

In 3.2.6

-- KennethLavrsen - 20 Oct 2006

BugReportForm edit

TopicTitle Segmentation Fault on Size Changes, when Mask Image doesn't fit
BugStatus Released
AssignedBugTo KennethLavrsen
SubmittedBy AxelAmthor
Topic revision: r5 - 20 Oct 2006, KennethLavrsen
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.