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

Camera freeze when shooting with flash #211

Open
1 task done
hmawla opened this issue Sep 26, 2019 · 0 comments
Open
1 task done

Camera freeze when shooting with flash #211

hmawla opened this issue Sep 26, 2019 · 0 comments
Labels
pinned requires investigation The changes requested in this PR requires further investigation/improvements

Comments

@hmawla
Copy link

hmawla commented Sep 26, 2019

The camera just freezes when shooting with FLASH_ON and after a small moment this error comes out
2019-09-26 03:38:21.827 17385-17385/com.waynyo.debug E/CameraFragment$onCreateView: com.priyankvasa.android.cameraviewex.CameraViewException: Error opening camera with id 0 (error: 4)
at com.priyankvasa.android.cameraviewex.Camera2$cameraDeviceCallback$2$1.onError(Camera2.kt:145)
at android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks.notifyError(CameraDeviceImpl.java:1929)
at android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks.lambda$Sm85frAzwGZVMAK-NE_gwckYXVQ(Unknown Source:0)
at android.hardware.camera2.impl.-$$Lambda$CameraDeviceImpl$CameraDeviceCallbacks$Sm85frAzwGZVMAK-NE_gwckYXVQ.accept(Unknown Source:8)
at com.android.internal.util.function.pooled.PooledLambdaImpl.doInvoke(PooledLambdaImpl.java:258)
at com.android.internal.util.function.pooled.PooledLambdaImpl.invoke(PooledLambdaImpl.java:182)
at com.android.internal.util.function.pooled.OmniFunction.run(OmniFunction.java:77)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:214)
at android.os.HandlerThread.run(HandlerThread.java:65)

Steps to reproduce the behavior:

  1. set FLASH_ON
    2.Shoot with the camera

Expected behavior
Give the image correctly with no freezes

Using ProGuard

  • without ProGuard

Screenshots
If applicable, add screenshots to help explain your problem.

Device (please complete the following information):

  • Device: Galaxy Note 9
  • OS: Android 9
  • API: 28
@pvasa pvasa added pinned requires investigation The changes requested in this PR requires further investigation/improvements labels Oct 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pinned requires investigation The changes requested in this PR requires further investigation/improvements
Projects
None yet
Development

No branches or pull requests

2 participants