getbouncer / cardscan-ios

A library for scanning credit and debit cards
MIT License
203 stars 67 forks source link

Rare crash on an iPhone SE(2nd Generation) #261

Closed julioarregoitia closed 3 years ago

julioarregoitia commented 3 years ago

Hello, i have this strange crash with the flag SIGABART(in DEBUG mode) when I try to assign any value to the instance of ScanViewController (CardScan version 2.0.7).

Captura de Pantalla 2021-02-18 a la(s) 1 43 00 a  m

That only happen in a real device, the iPhone SE(2nd Generation), iOS 14.4 . I already tried with the Simulator and an iPhone 12(iOS 14.4 too) but nothing bad happens. The crash only happens on the iPhone SE.

By the way it works fine and displays correctly if I type the following

    func recognizerScanCard() -> ScanViewController?
    {
        guard let vc = ScanViewController.createViewController(withDelegate: self) else {
            return nil
        }

        // vc.stringDataSource = self
        // vc.cornerColor = UIColor(hexString: "002BD9")
        // vc.allowSkip = true

        return vc

    }

    @IBAction func buttonScanCardPressed(_ sender: AnimatableButtonCustomized)
    {
        if let vc = self.recognizerScanCard() {
            self.present(vc, animated: true, completion: nil)
        }

    }

Best regards

kingst commented 3 years ago

Hi @julioarregoitia I'm going to take this issue on personally. I have an iPhone SE 2nd generation, let me spin it up and see if I can reproduce your crash.

kingst commented 3 years ago

@julioarregoitia I tried it out on my iPhone SE (2nd generation) and it worked fine. Can you send us more information about the crash itself? The screen shot doesn't say anything about why it crashed.

julioarregoitia commented 3 years ago

Don't worry then. I put a try-catch with the help of Objective-C, so just keep working in your things. Thanks for the hard work. Best regards