journeyapps / zxing-android-embedded

Barcode scanner library for Android, based on the ZXing decoder
https://journeyapps.com/
Apache License 2.0
5.74k stars 1.27k forks source link

Doesn't scan under debbuger qr or receive result after few minutes and generate qr very slowly #701

Open RJSDevel opened 2 years ago

RJSDevel commented 2 years ago

Description of the problem:

implementation 'com.journeyapps:zxing-android-embedded:4.3.0'

Google pixel 4, 5, Android 12

    private val barcodeLauncher: ActivityResultLauncher<ScanOptions> =
        registerForActivityResult(ScanContract()) { result: ScanIntentResult ->

            }
        }

        barcodeLauncher.launch(
                ScanOptions()
                    .setBeepEnabled(false)
                    .addExtra(Intents.Scan.SCAN_TYPE, Intents.Scan.MIXED_SCAN)
                    .setPrompt(getString(R.string.point_your_camera_at_the_qr_code))
            )

log.txt

rkistner commented 2 years ago

That is expected unfortunately - the debugger significantly slows down the scanning algorithms.

firesh commented 2 years ago

Yes, Run APP in Debug Mode, the scan is extremely slow.