Lauszus / FaceRecognitionApp

Face Recognition Android App
GNU General Public License v2.0
507 stars 238 forks source link

Fatal signal #30

Closed ProfessorStein closed 5 years ago

ProfessorStein commented 5 years ago

hi, i'm having an error which is A/libc: C:/Users/FaceRecognitionApp-1.2.3/app/src/main/cpp/FaceRecognitionLib/LDA.cpp:45: int32_t LDA::compute(const Eigen::MatrixXf &, const Eigen::VectorXi &, int32_t): assertion "(size_t)classes.size() == N" failed A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 14254 (AsyncTask #6)

ProfessorStein commented 5 years ago

i have a new error A/libc: C:/Users/lenovo/Documents/Dai/app/src/main/cpp/../../../../Eigen3\Eigen/src/Core/CwiseBinaryOp.h:110: Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<float, float>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<int, float>, const Eigen::Matrix<int, -1, -1, 0, -1, -1> >, const Eigen::Replicate<Eigen::Matrix<float, -1, 1, 0, -1, 1>, 1, -1> >::CwiseBinaryOp(const Eigen::CwiseBinaryOp::Lhs &, const Eigen::CwiseBinaryOp::Rhs &, const BinaryOp &) [BinaryOp = Eigen::internal::scalar_difference_op<float, float>, LhsType = const Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<int, float>, const Eigen::Matrix<int, -1, -1, 0, -1, -1> >, RhsType = const Eigen::Replicate<Eigen::Matrix<float, -1, 1, 0, -1, 1>, 1, -1>]: assertion "aLhs.rows() == aRhs.rows() && aLhs.cols() == aRhs.cols()" failed Fatal signal 6 (SIGABRT), code -6 in tid 14724 (AsyncTask #3)

Lauszus commented 5 years ago

Does this happen with the app on Google Play as well?

Also I need to know exactly what you are doing in the app, so I can try to replicate it.

ProfessorStein commented 5 years ago

i've added an intent here if (faceDist < faceThreshold && minDist < distanceThreshold){ // 1. Near face space and near a face class showToast("Face detected: " + imagesLabels.get(minIndex) + ". Distance: " + minDistString, Toast.LENGTH_LONG); startActivity(new Intent(FaceRecognitionAppActivity.this, MyActivity.class); }

Lauszus commented 5 years ago

@ProfessorStein why do you want to start a new intent? Please try to explain your use case.

Lauszus commented 5 years ago

Closing due to inactivity.