Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV Libs Cause Bad_Alloc on CARMA

Hello,

I quickly asked this question in a comment but I think it is better served as a topic.

I have a simple application that opens up an opengl window, nothing else, and it works fine on the CARMA board with opengl libraries and cuda libraries used when compiled. The moment I add opencv libraries to the project and try to run it on the CARMA board I get a std::bad_alloc error at runtime (doesn't even get to main()).It's the same opengl window code that has worked before. I think one or a couple libraries are allocating too much space for storage for the CARMA devboard? Not my area of expertise so it's just speculation at this point. Does any one have any suggestions on how to fix this? It may just be a compile flag that's missing or that is wrong.

Thanks in advance for the help.

OpenCV Libs Cause Bad_Alloc on CARMA

Hello,

I quickly asked this question in a comment but I think it is better served as a topic.

I have a simple application that opens up an opengl window, nothing else, and it works fine on the CARMA board with opengl libraries and cuda libraries used when compiled. The moment I add opencv libraries to the project and try to run it on the CARMA board I get a std::bad_alloc error at runtime (doesn't even get to main()).It's the same opengl window code that has worked before. I think one or a couple libraries are allocating too much space for storage for the CARMA devboard? Not my area of expertise so it's just speculation at this point. Does any one have any suggestions on how to fix this? It may just be a an compile flag that's missing or that is wrong.wrong when I compile Opencv.

Thanks in advance for the help.

OpenCV Libs Cause Bad_Alloc on CARMA

Hello,

I quickly asked this question in a comment but I think it is better served as a topic.

I have a simple application that opens up an opengl window, nothing else, and it works fine on the CARMA board with opengl libraries and cuda libraries used when compiled. The moment I add opencv libraries to the project and try to run it on the CARMA board I get a std::bad_alloc error at runtime (doesn't even get to main()).It's the same opengl window code that has worked before. I think one or a couple libraries are allocating too much space for storage for the CARMA devboard? Not my area of expertise so it's just speculation at this point. Does any one have any suggestions on how to fix this? It may just be an compile flag that's missing or that is wrong when I compile Opencv.

Thanks in advance for the help.

EDIT: After more trial and error tonight I believe that it's a lack of physical memory on CARMA. Does anyone know what the physical memory requirement is for OpenCV?