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

Black Screen on POCO X4🐛 #2716

Closed
3 of 5 tasks
PedroGabrielCB opened this issue Apr 4, 2024 · 7 comments
Closed
3 of 5 tasks

Black Screen on POCO X4🐛 #2716

PedroGabrielCB opened this issue Apr 4, 2024 · 7 comments
Labels
🐛 bug Something isn't working

Comments

@PedroGabrielCB
Copy link

What's happening?

The Camera is working fine on most devices. However, there are a few on which it just won't work. The camera will simply try to load and stay black.

i tried add -> const device = useCameraDevices() but does work....

Reproduceable Code

<SafeAreaView style={StyleSheet.absoluteFill}>
                                <Camera
                                    style={{ flex: 1 }}
                                    torch='off'
                                    device={device}
                                    isActive={true}
                                    zoom={0}
                                    photo={true}
                                    exposure={0}
                                    ref={camera}
                                    orientation='portrait'
                                />

                            </SafeAreaView>

Relevant log output

none

Camera Device

{
  "formats": [],
  "sensorOrientation": "landscape-right",
  "hardwareLevel": "full",
  "maxZoom": 10,
  "minZoom": 1,
  "maxExposure": 24,
  "supportsLowLightBoost": false,
  "neutralZoom": 1,
  "physicalDevices": [
    "wide-angle-camera"
  ],
  "supportsFocus": true,
  "supportsRawCapture": false,
  "isMultiCam": false,
  "minFocusDistance": 0,
  "minExposure": -24,
  "name": "1 (FRONT) androidx.camera.camera2",
  "hasFlash": false,
  "hasTorch": false,
  "position": "front",
  "id": "1"
}

Device

Poco X4 Pro

VisionCamera Version

4.0.0-beta.10

Can you reproduce this issue in the VisionCamera Example app?

No, I cannot reproduce the issue in the Example app

Additional information

@PedroGabrielCB PedroGabrielCB added the 🐛 bug Something isn't working label Apr 4, 2024
@PedroGabrielCB PedroGabrielCB changed the title 🐛 Blank Screen on POCO X4🐛 Apr 4, 2024
@PedroGabrielCB PedroGabrielCB changed the title Blank Screen on POCO X4🐛 Black Screen on POCO X4🐛 Apr 4, 2024
@versusvoid
Copy link
Contributor

versusvoid commented Apr 17, 2024

POCO M3 reports isZslSupported() = true, but initializing ImageCapture with CAPTURE_MODE_ZERO_SHUTTER_LAG (default behavior on 4.0.0-beta.14) will fail (results in black screen and "recoverable" error)

likely camerax bug, but maybe it's worth to workaround it

@PedroGabrielCB
Copy link
Author

Redmi note 14 pro also has the same problem

@PedroGabrielCB
Copy link
Author

@mrousavy do you have any suggestions on how I can fix it? I have an app in production with this problem... @

@mrousavy
Copy link
Owner

If you have issues you cannot solve yourself, feel free to contact me for consultancy so I can fix them for you.

@PedroGabrielCB
Copy link
Author

PedroGabrielCB commented Apr 17, 2024

If you have issues you cannot solve yourself, feel free to contact me for consultancy so I can fix them for you.

But isn't this a library bug as versusvoid put it above?

@mrousavy
Copy link
Owner

Yea, might be. I didn't investigate it yet.

@mrousavy
Copy link
Owner

Hey - I think this issue has been fixed in VisionCamera 4.0.0. 🥳

Please try V4 and let me know if you still experience this issue;

  • if not, please consider 💖 sponsoring me on GitHub 💖 to support the development of VisionCamera and thank me for my time spent on fixing bugs and building new features.
  • if you still see this issue, please comment and we can re-open this. But please update your native logs with the native (Xcode/Android Studio) logs from running VisionCamera V4 so I can investigate this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants