Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Assertion failed (ssize.area > 0) cv::resize

This problem occurs only sometimes: when calling cv::resize my application crashes and prints "Assetion failed (ssize.area > 0)." I use the same size (30, 32) to scale my matrix every time and the src matrix is set by the camera. I have a feeling this is a bug in opencv or the camera API it use (V4L). Using a different camera temporarily solves the problem. When I run this program on a machine using ARMHF instead of AMD64 the program quits printing "Bus error." The OpenCV version I used to write the application is 2.4.8, the version on the ARMHF machine is 2.3.1. I am using Debian and c++11 if it matters.

Assertion failed (ssize.area > 0) cv::resize

This problem occurs only sometimes: when calling cv::resize my application crashes and prints "Assetion failed (ssize.area > 0)." I use the same size (30, 32) to scale my matrix every time and the src matrix is set by the camera. I have a feeling this is a bug in opencv or the camera API it use uses (V4L). Using a different camera temporarily solves the problem. When I run this program on a machine using ARMHF instead of AMD64 the program quits printing "Bus error." The OpenCV version I used to write the application is 2.4.8, the version on the ARMHF machine is 2.3.1. I am using Debian and c++11 if it matters.

click to hide/show revision 3
retagged

updated 2014-04-25 00:28:36 -0600

berak gravatar image

Assertion failed (ssize.area > 0) cv::resize

This problem occurs only sometimes: when calling cv::resize my application crashes and prints "Assetion failed (ssize.area > 0)." I use the same size (30, 32) to scale my matrix every time and the src matrix is set by the camera. I have a feeling this is a bug in opencv or the camera API it uses (V4L). Using a different camera temporarily solves the problem. When I run this program on a machine using ARMHF instead of AMD64 the program quits printing "Bus error." The OpenCV version I used to write the application is 2.4.8, the version on the ARMHF machine is 2.3.1. I am using Debian and c++11 if it matters.

click to hide/show revision 4
Provided code detailing the cause of the error.

Assertion failed (ssize.area > 0) cv::resizecv::resize, Bus error on ARMHF

This problem occurs only sometimes: when calling cv::resize my application crashes and prints "Assetion failed (ssize.area > 0)." I use the same size (30, 32) to scale my matrix every time and the src matrix is set by the camera. I have a feeling this is a bug in opencv or the camera API it uses (V4L). Using a different camera temporarily solves the problem. When I run this program on a machine using ARMHF instead of AMD64 the program quits printing "Bus error." The OpenCV version I used to write the application is 2.4.8, the version on the ARMHF machine is 2.3.1. I am using Debian and c++11 if it matters.

The offending code is

cv::resize(videoMat, scaled, scaledSize, 0, 0, CV_INTER_AREA);

Where videoMat is a cv::Mat update by an instance of cv::VideoCapture, scaled is a cv::Mat to hold the scaled matrix information, and scaled size is the size I wish to scaled to (30, 32).

Assertion failed (ssize.area > 0) cv::resize, Bus error on ARMHF

This problem occurs only sometimes: when calling cv::resize my application crashes and prints "Assetion failed (ssize.area > 0)." I use the same size (30, 32) to scale my matrix every time and the src matrix is set by the camera. I have a feeling this is a bug in opencv or the camera API it uses (V4L). Using a different camera temporarily solves the problem. When I run this program on a machine using ARMHF instead of AMD64 the program quits printing "Bus error." The OpenCV version I used to write the application is 2.4.8, the version on the ARMHF machine is 2.3.1. I am using Debian and c++11 if it matters.

The offending code is

cv::resize(videoMat, scaled, scaledSize, 0, 0, CV_INTER_AREA);

Where videoMat is a cv::Mat update updated by an instance of cv::VideoCapture, scaled is a cv::Mat to hold the scaled matrix information, and scaled size is the size I wish to scaled to (30, 32).

Assertion failed (ssize.area > 0) cv::resize, Bus error on ARMHF

This problem occurs only sometimes: when calling cv::resize my application crashes and prints "Assetion failed (ssize.area > 0)." I use the same size (30, 32) to scale my matrix every time and the src matrix is set by the camera. I have a feeling this is a bug in opencv or the camera API it uses (V4L). Using a different camera temporarily solves the problem. When I run this program on a machine using ARMHF instead of AMD64 the program quits printing "Bus error." The OpenCV version I used to write the application is 2.4.8, the version on the ARMHF machine is 2.3.1. I am using Debian and c++11 if it matters.

The offending code is

cv::resize(videoMat, scaled, scaledSize, 0, 0, CV_INTER_AREA);

Where videoMat is a cv::Mat updated by an instance of cv::VideoCapture, scaled is a cv::Mat to hold the scaled matrix information, and scaled size scaledSize is the size I wish to scaled to (30, 32).

click to hide/show revision 7
error reproducible on amd64

Assertion failed (ssize.area > 0) cv::resize, Bus error on ARMHF

Edit: I have found out that the error listed in the title also occurs on amd64 machines after attempting to debug the application. All I can assume is buggy Opencv/V4L code causing this. Once again a reboot fixes the issue until the next debug attempt. Running works fine (without debugging).

This problem occurs only sometimes: when calling cv::resize my application crashes and prints "Assetion failed (ssize.area > 0)." I use the same size (30, 32) to scale my matrix every time and the src matrix is set by the camera. I have a feeling this is a bug in opencv or the camera API it uses (V4L). Using a different camera temporarily solves the problem. When I run this program on a machine using ARMHF instead of AMD64 the program quits printing "Bus error." The OpenCV version I used to write the application is 2.4.8, the version on the ARMHF machine is 2.3.1. I am using Debian and c++11 if it matters.

The offending code is

cv::resize(videoMat, scaled, scaledSize, 0, 0, CV_INTER_AREA);

Where videoMat is a cv::Mat updated by an instance of cv::VideoCapture, scaled is a cv::Mat to hold the scaled matrix information, and scaledSize is the size I wish to scaled to (30, 32).

Assertion failed (ssize.area > 0) cv::resize, Bus error on ARMHF

Edit: I have found out that the error listed in the title also occurs on amd64 machines after attempting to debug the application. application and terminating it prematurely. All I can assume is buggy Opencv/V4L OpenCV/V4L code causing this. Once again a reboot fixes the issue until the next debug attempt. Running works fine (without debugging).fine.

This problem occurs only sometimes: when calling cv::resize my application crashes and prints "Assetion failed (ssize.area > 0)." I use the same size (30, 32) to scale my matrix every time and the src matrix is set by the camera. I have a feeling this is a bug in opencv or the camera API it uses (V4L). Using a different camera temporarily solves the problem. When I run this program on a machine using ARMHF instead of AMD64 the program quits printing "Bus error." The OpenCV version I used to write the application is 2.4.8, the version on the ARMHF machine is 2.3.1. I am using Debian and c++11 if it matters.

The offending code is

cv::resize(videoMat, scaled, scaledSize, 0, 0, CV_INTER_AREA);

Where videoMat is a cv::Mat updated by an instance of cv::VideoCapture, scaled is a cv::Mat to hold the scaled matrix information, and scaledSize is the size I wish to scaled to (30, 32).