Closed ooxoxx closed 7 months ago
I only have a small portion of the bottom screen black, I'm not sure what the reason is
Hm, this is weird. Maybe this is an actual bug in the Redmi phones?
I am not sure - from the logs it looks like it destroys everything properly 🤔
Hm, this is weird. Maybe this is an actual bug in the Redmi phones?
I am not sure - from the logs it looks like it destroys everything properly 🤔
Thanks for your attention. Other camera and qr scanning related apps work properly on this phone. This bug is also reproducible on HONOR Magic4 Pro. What do you suggest to do next?
Is Device error received, code 4
there related to this? surface view is created twice due to the error? That is the only difference in logs between the problem phone and other devices that work.
I don't know. I'd need to thoroughly investigate this, preferrably with the device in my hands.
The bug is reproducible also on a honor x6a
I only have a small portion of the bottom screen black, I'm not sure what the reason is
here facing the same problem when taking photos using Redmi K30
or Huawei Honor
also, it will leave a black screen after navigating to other screen when qr code is scanned.
Working on a fix for this issue here: https://github.com/mrousavy/react-native-vision-camera/pull/2494 👀
Still in development, so don't test yet. Long way to go, this is a really complicated issue (as you can see in the changes/Files of that PR)...
Just released VisionCamera 3.9.0-beta.1, which includes the big PersistentCaptureSession
PR that aims to fix all the blackscreen issues.... :eyes::tada:
You can try that new beta out yourself and let me know if you still encounter blackscreen issues. I'll continue to test on more devices in the meantime, organize the code a bit better, and then I'll tackle the preview stretching, focus, and flash issues!
If that fixes the blackscreen issues for you, please consider sponsoring me on GitHub to say thanks! ❤️
What's happening?
I'm working on some QR code scanning functionality. It works well on android emulator and most devices. But on Redmi K30 pro, the camera component failed to destroy itself leaving a "black mask" (maybe a surface view?) out there, when I switch back with navigation of react-native-navigation/stack.
https://github.com/mrousavy/react-native-vision-camera/assets/11285169/e91e4512-e649-4dca-9df0-329fe992cc5b
Reproduceable Code
Relevant log output
Camera Device
Device
Redmi K30 pro
VisionCamera Version
3.7.1
Can you reproduce this issue in the VisionCamera Example app?
Yes, I can reproduce the same issue in the Example app here
Additional information