Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck on white screen and overlay #15

Open
BunlaiKek opened this issue Feb 18, 2021 · 3 comments
Open

Stuck on white screen and overlay #15

BunlaiKek opened this issue Feb 18, 2021 · 3 comments

Comments

@BunlaiKek
Copy link

BunlaiKek commented Feb 18, 2021

Camera Preview stop working and show only white screen and overlay when:

  • Do hot reload
  • On device with auto hide bottom navbar, when I tap on screen and the navbar pop up
    Environment:
  • Flutter 1.22.6
  • Android 11 and 10
    Any solution, please. Thank in advance.
@DrFornax
Copy link

I have the same problem. Reproducible in the emulator with hot reload.
The same problem occurs on Xiaomi Mi devices. Here it looks like the camera stream does not even start.

A hot reload gives me the following messages:

D/skia (16530): onFlyCompress I/Tesseract(native)(16530): Initialized Tesseract API with language=ocrb E/BufferQueueProducer(16530): [SurfaceTexture-0-16530-27](id:40920000001b,api:4,p:424,c:16530) queueBuffer: BufferQueue has been abandoned E/BufferQueueProducer(16530): [SurfaceTexture-0-16530-27](id:40920000001b,api:4,p:424,c:16530) dequeueBuffer: BufferQueue has been abandoned I/BpBinder(16530): onLastStrongRef automatically unlinking death recipients: <uncached descriptor> Reloaded 0 libraries in 409ms. E/BufferQueueProducer(16530): [SurfaceTexture-0-16530-27](id:40920000001b,api:4,p:424,c:16530) queueBuffer: BufferQueue has been abandoned E/BufferQueueProducer(16530): [SurfaceTexture-0-16530-27](id:40920000001b,api:4,p:424,c:16530) queueBuffer: BufferQueue has been abandoned

@buyka98
Copy link

buyka98 commented Dec 19, 2022

Hi! I am having the same problem? Anyone find any solution? Please help me

@WardenCommander
Copy link

WardenCommander commented Jul 5, 2023

@BunlaiKek, @DrFornax, @buyka98 you are all missing camera permissions.

  1. add <uses-permission android:name="android.permission.CAMERA" /> in AndroidManifest.xml
  2. in app/build.gradle you will probably need to add: minSdkVersion 21 instead of minSdkVersion flutter.minSdkVersion
  3. copy files from here if you just want to see it work: https://github.com/olexale/flutter_mrz_scanner/tree/master/example/lib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants