Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV fails on Run with realloc(): invalid pointer

Hello all,

I'm new to OpenCV and I have tried one simple code example with QT Creator. My program builds well, but when I add line:

_capture = cvCaptureFromCAM(1);

I get an error like this:

*** Error in `/home/ivan/Projects/.../Desktop_Qt_5_1_1_GCC_64bit-Debug/my-program': realloc(): invalid pointer: 0x00007fa78cc2d520 ***

======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x7f4c6)[0x7fa78bd584c6] /lib/x86_64-linux-gnu/libc.so.6(realloc+0x300)[0x7fa78bd5ccf0] /usr/lib/nvidia-319-updates/tls/libnvidia-tls.so.319.60(+0x2061)[0x7fa78428d061]

======= Memory map: ======== 00400000-00405000 r-xp 00000000 08:02 1585594 . . .

All libraries are loaded correctly and code passes build without an error. Did anyone had similar issues?

Thanks in advance.

click to hide/show revision 2
retagged

updated 2013-12-11 03:57:44 -0600

berak gravatar image

OpenCV fails on Run with realloc(): invalid pointer

Hello all,

I'm new to OpenCV and I have tried one simple code example with QT Creator. My program builds well, but when I add line:

_capture = cvCaptureFromCAM(1);

I get an error like this:

*** Error in `/home/ivan/Projects/.../Desktop_Qt_5_1_1_GCC_64bit-Debug/my-program': realloc(): invalid pointer: 0x00007fa78cc2d520 ***

======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x7f4c6)[0x7fa78bd584c6] /lib/x86_64-linux-gnu/libc.so.6(realloc+0x300)[0x7fa78bd5ccf0] /usr/lib/nvidia-319-updates/tls/libnvidia-tls.so.319.60(+0x2061)[0x7fa78428d061]

======= Memory map: ======== 00400000-00405000 r-xp 00000000 08:02 1585594 . . .

All libraries are loaded correctly and code passes build without an error. Did anyone had similar issues?

Thanks in advance.