flutter-package / flutter_scan

scanner qrcode in widget tree & decoder qrcode from image
MIT License
80 stars 61 forks source link

E/BufferQueueProducer(27147): [SurfaceTexture-0-27147-2] dequeueBuffer: BufferQueue has been abandoned #58

Open BerndWessels opened 1 year ago

BerndWessels commented 1 year ago

Environment

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.3.2, on Microsoft Windows [Version 10.0.19044.2006], locale en-NZ)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.2.0)
[√] Android Studio (version 2021.3)
[√] VS Code (version 1.71.2)
[√] Connected device (5 available)
[√] HTTP Host Availability
Technology Version
Flutter version 3.3.2
Plugin version 1.6.0
Android version any
iOS version na
Xcode version na

Device information:

emulator samsung xiaomi huawai sony

Description

Getting error logs on android like this, which remain and even get worse using the scanner

E/BufferQueueProducer(27147): [SurfaceTexture-0-27147-2] dequeueBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(27147): [SurfaceTexture-0-27147-2] dequeueBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(27147): [SurfaceTexture-0-27147-2] dequeueBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(27147): [SurfaceTexture-0-27147-2] dequeueBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(27147): [SurfaceTexture-0-27147-2] dequeueBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(27147): [SurfaceTexture-0-27147-2] dequeueBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(27147): [SurfaceTexture-0-27147-2] dequeueBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(27147): [SurfaceTexture-0-27147-2] dequeueBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(27147): [SurfaceTexture-0-27147-2] dequeueBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(27147): [SurfaceTexture-0-27147-2] dequeueBuffer: BufferQueue has been abandoned
...

Expected behavior:

no error logs

Current behavior:

ever growing error logs list

Steps to reproduce

  1. use the scan plugin with android
  2. logs appear after a few minutes
  3. logs appear if you use pause resume
  4. logs appear if you move off the scan page and return to it (plugin getting destroyed and re-instantiated)

Images

Stacktrace/Logcat

wattanakorn495 commented 1 year ago

+1

vito-go commented 1 year ago

i also meet this problem

ruhulrahat commented 1 year ago

+1

opsquid commented 1 year ago

📌➕1️⃣

nr-ghost commented 1 year ago

+1

CauaLW commented 1 year ago

Same here, someone managed to solve the problem?

dlutfrank commented 1 year ago

+1

LiRenGuo commented 1 year ago

+1

guduqiucai commented 1 year ago

+1

popopopdcvvbf commented 1 year ago

+1

dian00 commented 1 year ago

+1

maxwellcatoo commented 1 year ago

In the dispose callback function of the scanned page, calling the pause method of the ScanController instance can solve the problem

bingbingbog commented 1 year ago

In the dispose callback function of the scanned page, calling the pause method of the ScanController instance can solve the problem

not work for me

Komche commented 1 year ago

I have the same problem

Komche commented 1 year ago

+1

thKali commented 1 year ago

Na função de retorno de chamada descartada da página digitalizada, chamar o método de pausa da instância ScanController pode resolver o problema

não funciona para mim

to me, not works

+1

luciano-cervantes commented 1 year ago

+1

kevin6512 commented 2 months ago

+1,