juliansteenbakker / mobile_scanner

A universal scanner for Flutter based on MLKit. Uses CameraX on Android and AVFoundation on iOS.
BSD 3-Clause "New" or "Revised" License
888 stars 512 forks source link

Error: attempting to exceed the max dequeued buffer count #581

Open PureSci opened 1 year ago

PureSci commented 1 year ago

Hello! A weird error is appearing when I try to use the package. The scanner works but this error spams my terminal.

E/BufferQueueProducer( 6535): [SurfaceTexture-0-6535-0](id:198700000002,api:4,p:511,c:6535) dequeueBuffer: attempting to exceed the max dequeued buffer count (4)
E/BufferQueueProducer( 6535): [SurfaceTexture-0-6535-0](id:198700000002,api:4,p:511,c:6535) dequeueBuffer: attempting to exceed the max dequeued buffer count (4)
 Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Mobile Scanner')),
      body: MobileScanner(
        // fit: BoxFit.contain,
        onDetect: (capture) {
          final List<Barcode> barcodes = capture.barcodes;
          final Uint8List? image = capture.image;
          for (final barcode in barcodes) {
            debugPrint('Barcode found! ${barcode.rawValue} ${barcode.type}');
          }
        },

        controller: MobileScannerController(
          detectionSpeed: DetectionSpeed.noDuplicates,

         // formats: List<BarcodeFormat.>
        ),
      ),
    );
  }
Mgoumane commented 1 year ago

Hi , i have the same problem , did you found a solution ?

Thank you

PureSci commented 1 year ago

Hi, Sorry, no fixes...

DobleV55 commented 10 months ago

any fix?

rasphlat commented 8 months ago

I have the same issue when I use 'DetectionSpeed.noDuplicates'