faceterteam / PayCards_iOS

Credit card scanning for mobile apps
https://pay.cards/
Other
199 stars 53 forks source link

App is getting crashed after scanning card in iOS 11 #8

Open AmitIOSGuy opened 6 years ago

AmitIOSGuy commented 6 years ago

Here is the crash logs from Crashlytics...Can you please help in resolving this issue

9. Crashed: Thread

0 PayCardsRecognizer 0x100e3277c CNumberRecognizer::ValidateNumber(std::1::shared_ptr const&) + 336 1 PayCardsRecognizer 0x100e31d84 CNumberRecognizer::ProcessMatrixFinal(cv::Mat&, std::_1::vector<cv::Point, std::1::allocator<cv::Point_ > > const&, std::1::sharedptr const&, cv::Point, cv::Rect&) + 2176 2 PayCardsRecognizer 0x100e3059c CNumberRecognizer::Process(cv::Mat&, cv::Rect&) + 1272 3 PayCardsRecognizer 0x100beb0a4 CRecognitionCore::RecognizeNumber() + 312 4 PayCardsRecognizer 0x100beabf8 CRecognitionCore::Recognize() + 152 5 PayCardsRecognizer 0x100beaa88 CRecognitionCore::ProcessFrameThreaded() + 152 6 PayCardsRecognizer 0x100beeb20 CRecognitionCore::ProcessFrame(DetectedLineFlags&, void, void, unsigned long, unsigned long)::$_0::operator()() const + 28 7 PayCardsRecognizer 0x100bee904 void* std::1::thread_proxy<std::1::tuple<CRecognitionCore::ProcessFrame(DetectedLineFlags&, void, void, unsigned long, unsigned long)::$_0> >(void*) + 276 8 libsystem_pthread.dylib 0x18c3e568c _pthread_body + 240 9 libsystem_pthread.dylib 0x18c3e559c _pthread_body + 282 10 libsystem_pthread.dylib 0x18c3e2cb4 thread_start + 4

--

0. com.apple.main-thread

0 libsystem_kernel.dylib 0x18c2ff224 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x18c2ff09c mach_msg + 72 2 CoreFoundation 0x18d2d0e90 CFRunLoopServiceMachPort + 192 3 CoreFoundation 0x18d2ceae4 CFRunLoopRun + 1060 4 CoreFoundation 0x18d1feda4 CFRunLoopRunSpecific + 424 5 GraphicsServices 0x18ec69074 GSEventRunModal + 100 6 UIKit 0x1934b9c9c UIApplicationMain + 208 7 iconGo 0x10018570c main (main.m:14) 8 libdyld.dylib 0x18c20d59c start + 4

1. Thread

0 libsystem_kernel.dylib 0x18c31da88 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x18c3e31a4 _pthread_wqthread + 1260 2 libsystem_pthread.dylib 0x18c3e2cac start_wqthread + 4

2. com.apple.uikit.eventfetch-thread

0 libsystem_kernel.dylib 0x18c2ff224 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x18c2ff09c mach_msg + 72 2 CoreFoundation 0x18d2d0e90 CFRunLoopServiceMachPort + 192 3 CoreFoundation 0x18d2ceae4 CFRunLoopRun + 1060 4 CoreFoundation 0x18d1feda4 CFRunLoopRunSpecific + 424 5 Foundation 0x18dd19db4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304 6 Foundation 0x18dd3ab84 -[NSRunLoop(NSRunLoop) runUntilDate:] + 96 7 UIKit 0x193e43830 -[UIEventFetcher threadMain] + 136 8 Foundation 0x18de17318 NSThreadstart__ + 996 9 libsystem_pthread.dylib 0x18c3e568c _pthread_body + 240 10 libsystem_pthread.dylib 0x18c3e559c _pthread_body + 282 11 libsystem_pthread.dylib 0x18c3e2cb4 thread_start + 4

3. Thread

0 libsystem_kernel.dylib 0x18c31da88 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x18c3e31a4 _pthread_wqthread + 1260 2 libsystem_pthread.dylib 0x18c3e2cac start_wqthread + 4

4. com.twitter.crashlytics.ios.MachExceptionServer

0 iconGo 0x1001f90e8 CLSProcessRecordAllThreads + 4296773864 1 iconGo 0x1001f90e8 CLSProcessRecordAllThreads + 4296773864 2 iconGo 0x1001f8fa4 CLSProcessRecordAllThreads + 4296773540 3 iconGo 0x1001e8d70 CLSHandler + 4296707440 4 iconGo 0x1001e3d84 CLSMachExceptionServer + 4296686980 5 libsystem_pthread.dylib 0x18c3e568c _pthread_body + 240 6 libsystem_pthread.dylib 0x18c3e559c _pthread_body + 282 7 libsystem_pthread.dylib 0x18c3e2cb4 thread_start + 4

5. com.apple.NSURLConnectionLoader

0 libsystem_kernel.dylib 0x18c2ff224 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x18c2ff09c mach_msg + 72 2 CoreFoundation 0x18d2d0e90 CFRunLoopServiceMachPort + 192 3 CoreFoundation 0x18d2ceae4 CFRunLoopRun + 1060 4 CoreFoundation 0x18d1feda4 CFRunLoopRunSpecific + 424 5 CFNetwork 0x18da0bdf4 +[NSURLConnection(Loader) _resourceLoadLoop:] + 404 6 Foundation 0x18de17318 NSThreadstart__ + 996 7 libsystem_pthread.dylib 0x18c3e568c _pthread_body + 240 8 libsystem_pthread.dylib 0x18c3e559c _pthread_body + 282 9 libsystem_pthread.dylib 0x18c3e2cb4 thread_start + 4

6. com.apple.CoreMotion.MotionThread

0 libsystem_kernel.dylib 0x18c2ff224 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x18c2ff09c mach_msg + 72 2 CoreFoundation 0x18d2d0e90 CFRunLoopServiceMachPort + 192 3 CoreFoundation 0x18d2ceae4 CFRunLoopRun + 1060 4 CoreFoundation 0x18d1feda4 CFRunLoopRunSpecific + 424 5 CoreFoundation 0x18d24b9c0 CFRunLoopRun + 112 6 CoreMotion 0x194357fdc (null) + 203104 7 libsystem_pthread.dylib 0x18c3e568c _pthread_body + 240 8 libsystem_pthread.dylib 0x18c3e559c _pthread_body + 282 9 libsystem_pthread.dylib 0x18c3e2cb4 thread_start + 4

7. Thread

0 libsystem_kernel.dylib 0x18c31da88 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x18c3e2fd0 _pthread_wqthread + 792 2 libsystem_pthread.dylib 0x18c3e2cac start_wqthread + 4

8. Thread

0 libsystem_kernel.dylib 0x18c31da88 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x18c3e31a4 _pthread_wqthread + 1260 2 libsystem_pthread.dylib 0x18c3e2cac start_wqthread + 4

9. Crashed: Thread

0 PayCardsRecognizer 0x100e3277c CNumberRecognizer::ValidateNumber(std::1::shared_ptr const&) + 336 1 PayCardsRecognizer 0x100e31d84 CNumberRecognizer::ProcessMatrixFinal(cv::Mat&, std::_1::vector<cv::Point, std::1::allocator<cv::Point_ > > const&, std::1::sharedptr const&, cv::Point, cv::Rect&) + 2176 2 PayCardsRecognizer 0x100e3059c CNumberRecognizer::Process(cv::Mat&, cv::Rect&) + 1272 3 PayCardsRecognizer 0x100beb0a4 CRecognitionCore::RecognizeNumber() + 312 4 PayCardsRecognizer 0x100beabf8 CRecognitionCore::Recognize() + 152 5 PayCardsRecognizer 0x100beaa88 CRecognitionCore::ProcessFrameThreaded() + 152 6 PayCardsRecognizer 0x100beeb20 CRecognitionCore::ProcessFrame(DetectedLineFlags&, void, void, unsigned long, unsigned long)::$_0::operator()() const + 28 7 PayCardsRecognizer 0x100bee904 void* std::1::thread_proxy<std::1::tuple<CRecognitionCore::ProcessFrame(DetectedLineFlags&, void, void, unsigned long, unsigned long)::$_0> >(void*) + 276 8 libsystem_pthread.dylib 0x18c3e568c _pthread_body + 240 9 libsystem_pthread.dylib 0x18c3e559c _pthread_body + 282 10 libsystem_pthread.dylib 0x18c3e2cb4 thread_start + 4

10. Thread

0 libsystem_kernel.dylib 0x18c31da88 __workq_kernreturn + 8 1 libsystem_pthread.dylib 0x18c3e2fd0 _pthread_wqthread + 792 2 libsystem_pthread.dylib 0x18c3e2cac start_wqthread + 4

tchernitski commented 6 years ago

Does it happen every time for you?

AmitIOSGuy commented 6 years ago

Not every time, but mostly time

On Wed, Nov 22, 2017 at 6:34 PM, tchernitski notifications@github.com wrote:

Does it happen every time for you?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/faceterteam/PayCards_iOS/issues/8#issuecomment-346344257, or mute the thread https://github.com/notifications/unsubscribe-auth/AgVEYLNSH4rz9h8CVnPcwCv7ifU4Rjs4ks5s5BvMgaJpZM4QnWqi .

tchernitski commented 6 years ago

Sorry for late answer Unfortunately I could not reproduce the crash did you use classic visa/mastercard card with 16 digits splitted into 4 blocks? Is it possible to share card image causes the crash with me?