Error std::bad_alloc in face detection+gender+age estimation

236 views
Skip to first unread message

Tony VillaZapata

unread,
Jun 16, 2014, 5:37:07 PM6/16/14
to openb...@googlegroups.com
Hi, I'm trying to run OpenBR on a raspberry Pi, with raspbian as OS. Installation was OK, even i ran some basic examples and works ok,but I'm getting this error:
terminate called after throwing an instance of 'std::bad_alloc'   what():  std::bad_alloc
when i load the transform.
The C/C++ code that is given this error is:

QSharedPointer<br::Transform> transform = br::Transform::fromAlgorithm("FaceDetection+<FaceClassificationRegistration>+<FaceClassificationExtraction>+<GenderClassifier>+<AgeRegressor>");

Is face detection + gender + age estimation, but if I run only face detection it works ok. adding gender and age estimation produces the error.

It seems that is getting out of memory or something like that. Raspberry Pi has 512 MB RAM

Is there a minimum of RAM to get this works? or maybe the problem is not the RAM?
Does anyone has experienced in a device as raspberry pi?

Thanks.

Scott Klum

unread,
Jun 16, 2014, 9:35:58 PM6/16/14
to Tony VillaZapata, openb...@googlegroups.com
Tony,

I am glad to hear your were able to get things compiled on Raspian.  I tried, unsuccessfully, to do the same on an Arch build.  I'll probably try to do the same over the next week or so and I will let you know if I can figure out the issue.

Age and gender estimation both involve loading support vectors, but I'm not sure how expensive of an operation that is.

Regards,
Scott
--
You received this message because you are subscribed to the Google Groups "Open Source Biometric Recognition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openbr-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Scott Klum
B.S. in Computer Science, Michigan State University 2012
M.S. in Computer Science, Michigan State University 2014

Tony VillaZapata

unread,
Jun 19, 2014, 6:57:43 PM6/19/14
to openb...@googlegroups.com, tonyvil...@gmail.com
Thanks for your answer, I can confirm that openBR can be compiled on Raspbian, i didn't use crosscompile, I compiled directly in the Raspberry following the install instructions for linux in the webpage. Anyway, regarding to the error I mentioned, I ran the AgeGenderDemo and it gives more details, here is the output:

Set algorithm to AgeGenderDemo
Warning: Qt Concurrent has caught an exception thrown from a worker thread.
This is not supported, exceptions thrown in worker threads must be
caught before control returns to Qt Concurrent.
  SDK Path: /usr/local
  File: thread/qthreadpool.cpp
  Function: virtual void QThreadPoolThread::run()
  Line: 103

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Abortado


Seems that is something related to QT and threads, in the question https://groups.google.com/forum/#!topic/openbr-dev/-ve1x96I58k appears the same error running FaceRecognition, and according to that, it was fixed, maybe this is something very similar.


Thank you.



El lunes, 16 de junio de 2014 20:35:58 UTC-5, Scott Klum escribió:
Tony,

I am glad to hear your were able to get things compiled on Raspian.  I tried, unsuccessfully, to do the same on an Arch build.  I'll probably try to do the same over the next week or so and I will let you know if I can figure out the issue.

Age and gender estimation both involve loading support vectors, but I'm not sure how expensive of an operation that is.

Regards,
Scott

On Monday, June 16, 2014, Tony VillaZapata <tonyvil...@gmail.com> wrote:
Hi, I'm trying to run OpenBR on a raspberry Pi, with raspbian as OS. Installation was OK, even i ran some basic examples and works ok,but I'm getting this error:
terminate called after throwing an instance of 'std::bad_alloc'   what():  std::bad_alloc
when i load the transform.
The C/C++ code that is given this error is:

QSharedPointer<br::Transform> transform = br::Transform::fromAlgorithm("FaceDetection+<FaceClassificationRegistration>+<FaceClassificationExtraction>+<GenderClassifier>+<AgeRegressor>");

Is face detection + gender + age estimation, but if I run only face detection it works ok. adding gender and age estimation produces the error.

It seems that is getting out of memory or something like that. Raspberry Pi has 512 MB RAM

Is there a minimum of RAM to get this works? or maybe the problem is not the RAM?
Does anyone has experienced in a device as raspberry pi?

Thanks.

--
You received this message because you are subscribed to the Google Groups "Open Source Biometric Recognition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openbr-dev+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Tony VillaZapata

unread,
Jun 27, 2014, 4:50:47 PM6/27/14
to openb...@googlegroups.com, tonyvil...@gmail.com
Any update about this? or any idea what could be the problem?  I'm currently working on a project and i'm stuck on this :(


Thanks.


El lunes, 16 de junio de 2014 20:35:58 UTC-5, Scott Klum escribió:
Tony,

I am glad to hear your were able to get things compiled on Raspian.  I tried, unsuccessfully, to do the same on an Arch build.  I'll probably try to do the same over the next week or so and I will let you know if I can figure out the issue.

Age and gender estimation both involve loading support vectors, but I'm not sure how expensive of an operation that is.

Regards,
Scott

On Monday, June 16, 2014, Tony VillaZapata <tonyvil...@gmail.com> wrote:
Hi, I'm trying to run OpenBR on a raspberry Pi, with raspbian as OS. Installation was OK, even i ran some basic examples and works ok,but I'm getting this error:
terminate called after throwing an instance of 'std::bad_alloc'   what():  std::bad_alloc
when i load the transform.
The C/C++ code that is given this error is:

QSharedPointer<br::Transform> transform = br::Transform::fromAlgorithm("FaceDetection+<FaceClassificationRegistration>+<FaceClassificationExtraction>+<GenderClassifier>+<AgeRegressor>");

Is face detection + gender + age estimation, but if I run only face detection it works ok. adding gender and age estimation produces the error.

It seems that is getting out of memory or something like that. Raspberry Pi has 512 MB RAM

Is there a minimum of RAM to get this works? or maybe the problem is not the RAM?
Does anyone has experienced in a device as raspberry pi?

Thanks.

--
You received this message because you are subscribed to the Google Groups "Open Source Biometric Recognition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openbr-dev+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Brian Williams

unread,
Jul 9, 2014, 10:34:29 AM7/9/14
to Tony VillaZapata, openb...@googlegroups.com
What version of openbr are you using?  Head? Release?
To unsubscribe from this group and stop receiving emails from it, send an email to openbr-dev+...@googlegroups.com.

Tony VillaZapata

unread,
Jul 15, 2014, 4:15:11 PM7/15/14
to openb...@googlegroups.com
I'm not sure, i think i'm using release, i built it following the instructions in the web page for linux (http://openbiometrics.org/doxygen/latest/linux_gcc.html)

Reddy B

unread,
Dec 10, 2014, 4:43:20 PM12/10/14
to openb...@googlegroups.com
Hi,

Sorry for posting on old post, i am trying to install Open br on raspberry pi.. i failed during openCV 2.4.9 installation. I am getting below error during cmake. I would appreciate any help on this.

-- Looking for sys/videoio.h
-- Looking for sys/videoio.h - not found
-- Looking for libavformat/avformat.h
-- Looking for libavformat/avformat.h - found
-- Looking for ffmpeg/avformat.h
-- Looking for ffmpeg/avformat.h - not found
-- Could NOT find JNI (missing:  JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 

Thanks and Regards,
Naraismha
Reply all
Reply to author
Forward
0 new messages