Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashing randomly #8

Open
madiguzel opened this issue Dec 20, 2019 · 7 comments
Open

Crashing randomly #8

madiguzel opened this issue Dec 20, 2019 · 7 comments

Comments

@madiguzel
Copy link

Hi,

After updating the latest SDK and using [.number, .date] as recognizerMode, Firebase crashes increased. Here are some crash logs:

PayCardsRecognizer
CNumberRecognizer::ValidateNumber(std::__1::shared_ptr const&)

Crashed: Thread
0  PayCardsRecognizer             0x1023b1b94 CNumberRecognizer::ValidateNumber(std::__1::shared_ptr<INeuralNetworkResultList> const&) + 156
1  PayCardsRecognizer             0x1023b1b94 CNumberRecognizer::ValidateNumber(std::__1::shared_ptr<INeuralNetworkResultList> const&) + 156
2  PayCardsRecognizer             0x1023b10f0 CNumberRecognizer::ProcessMatrixFinal(cv::Mat&, std::__1::vector<cv::Point_<int>, std::__1::allocator<cv::Point_<int> > > const&, std::__1::shared_ptr<INeuralNetwork> const&, cv::Point_<int>, cv::Rect_<int>&) + 1164
3  PayCardsRecognizer             0x1023b0170 CNumberRecognizer::Process(cv::Mat&, cv::Rect_<int>&) + 680
4  PayCardsRecognizer             0x102116a0c CRecognitionCore::RecognizeNumber() + 224
5  PayCardsRecognizer             0x102116654 CRecognitionCore::Recognize() + 120
6  PayCardsRecognizer             0x102116574 CRecognitionCore::ProcessFrameThreaded() + 120
7  PayCardsRecognizer             0x10211d22c CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0::operator()() const + 28
8  PayCardsRecognizer             0x10211d1c8 decltype(std::__1::forward<CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0>(fp)()) std::__1::__invoke<CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0>(CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0&&) + 28
9  PayCardsRecognizer             0x10211d128 void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0>&, std::__1::__tuple_indices<>) + 32
10 PayCardsRecognizer             0x10211c80c void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0> >(void*) + 116
11 libsystem_pthread.dylib        0x22347d2c0 _pthread_body + 128
12 libsystem_pthread.dylib        0x22347d220 _pthread_start + 44
13 libsystem_pthread.dylib        0x223480cdc thread_start + 4

PayCardsRecognizer
CRecognitionCore::Recognize()

Crashed: Thread
0  PayCardsRecognizer             0x10495287c CRecognitionCore::Recognize() + 672
1  PayCardsRecognizer             0x104952574 CRecognitionCore::ProcessFrameThreaded() + 120
2  PayCardsRecognizer             0x10495922c CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0::operator()() const + 28
3  PayCardsRecognizer             0x1049591c8 decltype(std::__1::forward<CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0>(fp)()) std::__1::__invoke<CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0>(CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0&&) + 28
4  PayCardsRecognizer             0x104959128 void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0>&, std::__1::__tuple_indices<>) + 32
5  PayCardsRecognizer             0x10495880c void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0> >(void*) + 116
6  libsystem_pthread.dylib        0x19d9f5d8c _pthread_start + 156
7  libsystem_pthread.dylib        0x19d9f976c thread_start + 8

PayCardsRecognizer
CDateRecognizer::RefineDateLocationL1(cv::Mat&, std::_1::vector<cv::Point, std::_1::allocator<cv::Point > >, std::_1::vector<cv::Rect, std::_1::allocator<cv::Rect > >&)

Crashed: Thread
0  PayCardsRecognizer             0x102abfbf8 CDateRecognizer::RefineDateLocationL1(cv::Mat&, std::__1::vector<cv::Point_<int>, std::__1::allocator<cv::Point_<int> > >, std::__1::vector<cv::Rect_<int>, std::__1::allocator<cv::Rect_<int> > >&) + 596
1  PayCardsRecognizer             0x102ac042c CDateRecognizer::Process(cv::Mat&, std::__1::vector<cv::Mat, std::__1::allocator<cv::Mat> >&, cv::Rect_<int>&) + 1384
2  PayCardsRecognizer             0x10276eda4 CRecognitionCore::RecognizeDate() + 256
3  PayCardsRecognizer             0x10276e6e4 CRecognitionCore::Recognize() + 264
4  PayCardsRecognizer             0x10276e574 CRecognitionCore::ProcessFrameThreaded() + 120
5  PayCardsRecognizer             0x10277522c CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0::operator()() const + 28
6  PayCardsRecognizer             0x1027751c8 decltype(std::__1::forward<CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0>(fp)()) std::__1::__invoke<CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0>(CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0&&) + 28
7  PayCardsRecognizer             0x102775128 void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0>&, std::__1::__tuple_indices<>) + 32
8  PayCardsRecognizer             0x10277480c void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0> >(void*) + 116
9  libsystem_pthread.dylib        0x1a8085d8c _pthread_start + 156
10 libsystem_pthread.dylib        0x1a808976c thread_start + 8

PayCardsRecognizer
CNumberRecognizer::PreLocalize(cv::Mat&, cv::Mat&, std::_1::vector<cv::Point, std::_1::allocator<cv::Point > >&)

Crashed: Thread
0  PayCardsRecognizer             0x1032648ec CNumberRecognizer::PreLocalize(cv::Mat&, cv::Mat&, std::__1::vector<cv::Point_<int>, std::__1::allocator<cv::Point_<int> > >&) + 1520
1  PayCardsRecognizer             0x103264044 CNumberRecognizer::Process(cv::Mat&, cv::Rect_<int>&) + 380
2  PayCardsRecognizer             0x102fcaa0c CRecognitionCore::RecognizeNumber() + 224
3  PayCardsRecognizer             0x102fca654 CRecognitionCore::Recognize() + 120
4  PayCardsRecognizer             0x102fca574 CRecognitionCore::ProcessFrameThreaded() + 120
5  PayCardsRecognizer             0x102fd122c CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0::operator()() const + 28
6  PayCardsRecognizer             0x102fd11c8 decltype(std::__1::forward<CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0>(fp)(std::__1::forward<>(fp0))) std::__1::__invoke<CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0>(CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0&&) + 28
7  PayCardsRecognizer             0x102fd1128 void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0>&, std::__1::__tuple_indices<>) + 32
8  PayCardsRecognizer             0x102fd080c void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, CRecognitionCore::ProcessFrame(DetectedLineFlags&, void*, void*, unsigned long, unsigned long)::$_0> >(void*) + 116
9  libsystem_pthread.dylib        0x182645220 _pthread_body + 272
10 libsystem_pthread.dylib        0x182645110 _pthread_body + 290
11 libsystem_pthread.dylib        0x182643b10 thread_start + 4
@tchernitski
Copy link

thanks, what is ios version?

@madiguzel
Copy link
Author

All iOS versions.

versions

crashes

@madiguzel
Copy link
Author

Hi again,

I reproduced the crash with iPhone 5(MD297TU/A) and iOS 10.3.3(14G60). After recognizing the card number and expiration date successfully, the app crashes.

Screen Shot 2019-12-24 at 16 19 09

@tchernitski
Copy link

I played around with the application built form code source PayCards_iOS_Source and couldn't catch any crash. According to the screenshot you use your own application with build-in sdk? right? could you play with original prototype built from PayCards_iOS_Source repo? does it crash?

@madiguzel
Copy link
Author

I was using faceterteam/PayCards_iOS before iOS 13 crashing problem has occurred. Then, this repo has been updated for iOS 13 but faceterteam/PayCards_iOS not updated. So I forked it and replaced the framework from this repo to use with CocoaPods. Unfortunately, my forked version caused crashes. Now I removed it from Podfile, and used the framework as embedded framework. It is not crashing now. But I didn't understand what causes the problem. Forked version -> https://github.com/madiguzel/PayCards_iOS

@quyenUET
Copy link

Hi again,

I reproduced the crash with iPhone 5(MD297TU/A) and iOS 10.3.3(14G60). After recognizing the card number and expiration date successfully, the app crashes.

Screen Shot 2019-12-24 at 16 19 09

@madiguzel Did you fix it? I have same issue as your image. Please help.

@madiguzel
Copy link
Author

No. I thought the crash had gone but it still exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants