Comments (6)
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.
from react-native-vision-camera.
i have updated to v 4.0.1
and i got this error :
{"error": "Camera.onError(session/invalid-output-configuration): Failed to configure the Camera Session because the output/stream configurations are invalid!"} JSExceptionHandler
@mrousavy
from react-native-vision-camera.
There's nothing I can do without native (adb logcat) logs
from react-native-vision-camera.
2024-04-22 07:36:57.816 ١١١٨-١٤١٦ CameraDeviceUserShim com.mas.mashh E createDefaultRequest - invalid templateId specified
2024-04-22 07:36:57.816 ١١١٨-١٤١٦ CaptureSession com.mas.mashh W Opening session with fail OPENING
java.lang.IllegalArgumentException: Bad argument passed to camera service
at android.hardware.camera2.utils.CameraBinderDecorator.throwOnError(CameraBinderDecorator.java:114)
at android.hardware.camera2.utils.CameraBinderDecorator$CameraBinderDecoratorListener.onAfterInvocation(CameraBinderDecorator.java:73)
at android.hardware.camera2.utils.Decorator.invoke(Decorator.java:81)
at java.lang.reflect.Proxy.invoke(Proxy.java:393)
at $Proxy13.createDefaultRequest(Unknown Source)
at android.hardware.camera2.impl.CameraDeviceImpl.createCaptureRequest(CameraDeviceImpl.java:628)
at androidx.camera.camera2.internal.Camera2CaptureRequestBuilder.buildWithoutTarget(Camera2CaptureRequestBuilder.java:213)
at androidx.camera.camera2.internal.CaptureSession.openCaptureSession(CaptureSession.java:334)
at androidx.camera.camera2.internal.CaptureSession.lambda$open$0$androidx-camera-camera2-internal-CaptureSession(CaptureSession.java:215)
at androidx.camera.camera2.internal.CaptureSession$$ExternalSyntheticLambda2.apply(D8$$SyntheticClass)
at androidx.camera.core.impl.utils.futures.ChainingListenableFuture.run(ChainingListenableFuture.java:203)
at androidx.camera.core.impl.utils.executor.SequentialExecutor$QueueWorker.workOnQueue(SequentialExecutor.java:231)
at androidx.camera.core.impl.utils.executor.SequentialExecutor$QueueWorker.run(SequentialExecutor.java:173)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
2024-04-22 07:36:57.817 ١١١٨-١٤١٦ Camera2CameraImpl com.mas.mashh D {Camera@dac031b[id=0]} Transitioning camera internal state: OPENED --> OPENED
2024-04-22 07:36:57.817 ١١١٨-١٤١٦ CameraStateMachine com.mas.mashh D New public camera state CameraState{type=OPEN, error=StateError{code=4, cause=java.lang.IllegalArgumentException: Bad argument passed to camera service}} from OPEN and StateError{code=4, cause=java.lang.IllegalArgumentException: Bad argument passed to camera service}
2024-04-22 07:36:57.817 ١١١٨-١٤١٦ CameraStateMachine com.mas.mashh D Publishing new public camera state CameraState{type=OPEN, error=StateError{code=4, cause=java.lang.IllegalArgumentException: Bad argument passed to camera service}}
2024-04-22 07:36:57.817 ١١١٨-١٤١٦ Camera2CameraImpl com.mas.mashh E Unable to configure camera Camera@dac031b[id=0]
java.lang.IllegalArgumentException: Bad argument passed to camera service
at android.hardware.camera2.utils.CameraBinderDecorator.throwOnError(CameraBinderDecorator.java:114)
at android.hardware.camera2.utils.CameraBinderDecorator$CameraBinderDecoratorListener.onAfterInvocation(CameraBinderDecorator.java:73)
at android.hardware.camera2.utils.Decorator.invoke(Decorator.java:81)
at java.lang.reflect.Proxy.invoke(Proxy.java:393)
at $Proxy13.createDefaultRequest(Unknown Source)
at android.hardware.camera2.impl.CameraDeviceImpl.createCaptureRequest(CameraDeviceImpl.java:628)
at androidx.camera.camera2.internal.Camera2CaptureRequestBuilder.buildWithoutTarget(Camera2CaptureRequestBuilder.java:213)
at androidx.camera.camera2.internal.CaptureSession.openCaptureSession(CaptureSession.java:334)
at androidx.camera.camera2.internal.CaptureSession.lambda$open$0$androidx-camera-camera2-internal-CaptureSession(CaptureSession.java:215)
at androidx.camera.camera2.internal.CaptureSession$$ExternalSyntheticLambda2.apply(D8$$SyntheticClass)
at androidx.camera.core.impl.utils.futures.ChainingListenableFuture.run(ChainingListenableFuture.java:203)
at androidx.camera.core.impl.utils.executor.SequentialExecutor$QueueWorker.workOnQueue(SequentialExecutor.java:231)
at androidx.camera.core.impl.utils.executor.SequentialExecutor$QueueWorker.run(SequentialExecutor.java:173)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
2024-04-22 07:36:57.817 ١١١٨-١٤١٦ Camera2CameraImpl com.mas.mashh D {Camera@dac031b[id=0]} Resetting Capture Session
2024-04-22 07:36:57.817 ١١١٨-١٤١٦ Camera2CameraImpl com.mas.mashh D {Camera@dac031b[id=0]} Releasing session in state OPENED
2024-04-22 07:36:57.862 ١١١٨-١١١٨ CameraSession com.mas.mashh I Camera State: OPEN (has error: true)
2024-04-22 07:36:57.862 ١١١٨-١١١٨ CameraView com.mas.mashh E invokeOnError(...):
2024-04-22 07:36:57.862 ١١١٨-١١١٨ System.err com.mas.mashh W com.mrousavy.camera.core.InvalidOutputConfigurationError: Failed to configure the Camera Session because the output/stream configurations are invalid!
2024-04-22 07:36:57.862 ١١١٨-١١١٨ System.err com.mas.mashh W at com.mrousavy.camera.core.extensions.StateError_toCameraErrorKt.toCameraError(StateError+toCameraError.kt:23)
2024-04-22 07:36:57.863 ١١١٨-١١١٨ System.err com.mas.mashh W at com.mrousavy.camera.core.CameraSession$configureCamera$2.invoke(CameraSession.kt:452)
2024-04-22 07:36:57.863 ١١١٨-١١١٨ System.err com.mas.mashh W at com.mrousavy.camera.core.CameraSession$configureCamera$2.invoke(CameraSession.kt:440)
2024-04-22 07:36:57.863 ١١١٨-١١١٨ System.err com.mas.mashh W at com.mrousavy.camera.core.CameraSession.configureCamera$lambda$10(CameraSession.kt:440)
2024-04-22 07:36:57.863 ١١١٨-١١١٨ System.err com.mas.mashh W at com.mrousavy.camera.core.CameraSession.$r8$lambda$PcshN6VsPerRLH_dzPSSGTBQXms(CameraSession.kt)
2024-04-22 07:36:57.863 ١١١٨-١١١٨ System.err com.mas.mashh W at com.mrousavy.camera.core.CameraSession$$ExternalSyntheticLambda0.onChanged(D8$$SyntheticClass)
2024-04-22 07:36:57.863 ١١١٨-١١١٨ System.err com.mas.mashh W at androidx.lifecycle.LiveData.considerNotify(LiveData.java:133)
2024-04-22 07:36:57.863 ١١١٨-١١١٨ System.err com.mas.mashh W at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:151)
2024-04-22 07:36:57.863 ١١١٨-١١١٨ System.err com.mas.mashh W at androidx.lifecycle.LiveData.setValue(LiveData.java:309)
2024-04-22 07:36:57.863 ١١١٨-١١١٨ System.err com.mas.mashh W at androidx.lifecycle.MutableLiveData.setValue(MutableLiveData.java:50)
2024-04-22 07:36:57.863 ١١١٨-١١١٨ System.err com.mas.mashh W at androidx.camera.camera2.internal.Camera2CameraInfoImpl$RedirectableLiveData$$ExternalSyntheticLambda0.onChanged(D8$$SyntheticClass)
2024-04-22 07:36:57.863 ١١١٨-١١١٨ System.err com.mas.mashh W at androidx.lifecycle.MediatorLiveData$Source.onChanged(MediatorLiveData.java:152)
2024-04-22 07:36:57.863 ١١١٨-١١١٨ System.err com.mas.mashh W at androidx.lifecycle.LiveData.considerNotify(LiveData.java:133)
2024-04-22 07:36:57.863 ١١١٨-١١١٨ System.err com.mas.mashh W at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:151)
2024-04-22 07:36:57.863 ١١١٨-١١١٨ System.err com.mas.mashh W at androidx.lifecycle.LiveData.setValue(LiveData.java:309)
2024-04-22 07:36:57.863 ١١١٨-١١١٨ System.err com.mas.mashh W at androidx.lifecycle.MutableLiveData.setValue(MutableLiveData.java:50)
2024-04-22 07:36:57.863 ١١١٨-١١١٨ System.err com.mas.mashh W at androidx.lifecycle.LiveData$1.run(LiveData.java:93)
2024-04-22 07:36:57.863 ١١١٨-١١١٨ System.err com.mas.mashh W at android.os.Handler.handleCallback(Handler.java:739)
2024-04-22 07:36:57.863 ١١١٨-١١١٨ System.err com.mas.mashh W at android.os.Handler.dispatchMessage(Handler.java:95)
2024-04-22 07:36:57.863 ١١١٨-١١١٨ System.err com.mas.mashh W at android.os.Looper.loop(Looper.java:148)
2024-04-22 07:36:57.863 ١١١٨-١١١٨ System.err com.mas.mashh W at android.app.ActivityThread.main(ActivityThread.java:5423)
2024-04-22 07:36:57.863 ١١١٨-١١١٨ System.err com.mas.mashh W at java.lang.reflect.Method.invoke(Native Method)
2024-04-22 07:36:57.863 ١١١٨-١١١٨ System.err com.mas.mashh W at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
2024-04-22 07:36:57.864 ١١١٨-١١١٨ System.err com.mas.mashh W at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
2024-04-22 07:36:57.864 ١١١٨-١١١٨ System.err com.mas.mashh W Caused by: java.lang.IllegalArgumentException: Bad argument passed to camera service
2024-04-22 07:36:57.864 ١١١٨-١١١٨ System.err com.mas.mashh W at android.hardware.camera2.utils.CameraBinderDecorator.throwOnError(CameraBinderDecorator.java:114)
2024-04-22 07:36:57.864 ١١١٨-١١١٨ System.err com.mas.mashh W at android.hardware.camera2.utils.CameraBinderDecorator$CameraBinderDecoratorListener.onAfterInvocation(CameraBinderDecorator.java:73)
2024-04-22 07:36:57.864 ١١١٨-١١١٨ System.err com.mas.mashh W at android.hardware.camera2.utils.Decorator.invoke(Decorator.java:81)
2024-04-22 07:36:57.864 ١١١٨-١١١٨ System.err com.mas.mashh W at java.lang.reflect.Proxy.invoke(Proxy.java:393)
2024-04-22 07:36:57.864 ١١١٨-١١١٨ System.err com.mas.mashh W at $Proxy13.createDefaultRequest(Unknown Source)
2024-04-22 07:36:57.864 ١١١٨-١١١٨ System.err com.mas.mashh W at android.hardware.camera2.impl.CameraDeviceImpl.createCaptureRequest(CameraDeviceImpl.java:628)
2024-04-22 07:36:57.864 ١١١٨-١١١٨ System.err com.mas.mashh W at androidx.camera.camera2.internal.Camera2CaptureRequestBuilder.buildWithoutTarget(Camera2CaptureRequestBuilder.java:213)
2024-04-22 07:36:57.864 ١١١٨-١١١٨ System.err com.mas.mashh W at androidx.camera.camera2.internal.CaptureSession.openCaptureSession(CaptureSession.java:334)
2024-04-22 07:36:57.864 ١١١٨-١١١٨ System.err com.mas.mashh W at androidx.camera.camera2.internal.CaptureSession.lambda$open$0$androidx-camera-camera2-internal-CaptureSession(CaptureSession.java:215)
2024-04-22 07:36:57.864 ١١١٨-١١١٨ System.err com.mas.mashh W at androidx.camera.camera2.internal.CaptureSession$$ExternalSyntheticLambda2.apply(D8$$SyntheticClass)
2024-04-22 07:36:57.864 ١١١٨-١١١٨ System.err com.mas.mashh W at androidx.camera.core.impl.utils.futures.ChainingListenableFuture.run(ChainingListenableFuture.java:203)
2024-04-22 07:36:57.864 ١١١٨-١١١٨ System.err com.mas.mashh W at androidx.camera.core.impl.utils.executor.SequentialExecutor$QueueWorker.workOnQueue(SequentialExecutor.java:231)
2024-04-22 07:36:57.864 ١١١٨-١١١٨ System.err com.mas.mashh W at androidx.camera.core.impl.utils.executor.SequentialExecutor$QueueWorker.run(SequentialExecutor.java:173)
2024-04-22 07:36:57.864 ١١١٨-١١١٨ System.err com.mas.mashh W at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
2024-04-22 07:36:57.864 ١١١٨-١١١٨ System.err com.mas.mashh W at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
2024-04-22 07:36:57.864 ١١١٨-١١١٨ System.err com.mas.mashh W at java.lang.Thread.run(Thread.java:818)
from react-native-vision-camera.
- UPDATE -
Adding prop photoQualityBalance='speed' solves this issue for me.
Hi, facing same issue.
Device: vivo Y55L
react-native-vision-camera: 4.0.1
Logs below.
04-23 20:38:10.487 16702 24125 E ACodec : [OMX.qcom.video.encoder.avc] storeMetaDataInBuffers (output) failed w/ err -1010
04-23 20:38:10.487 16702 24125 W ACodec : do not know color format 0x7fa30c04 = 2141391876
04-23 20:38:10.487 16702 24125 W ACodec : do not know color format 0x7f000789 = 2130708361
04-23 20:38:10.497 658 6439 E OMX-VENC: ERROR: Unsupported H.264 level= 0
04-23 20:38:10.507 658 6438 E OMX-VENC: ERROR: Unsupported H.264 level= 0
04-23 20:38:10.527 16702 24125 W ACodec : do not know color format 0x7f000789 = 2130708361
04-23 20:38:10.547 658 6439 E OMXNodeInstance: getParameter(bb:qcom.encoder.avc, ParamConsumerUsageBits(0x6f800004)) ERROR: UnsupportedIndex(0x8000101a)
04-23 20:38:10.647 658 24086 W AMessage: failed to post message as target looper for handler 0 is gone.
04-23 20:38:10.647 658 24092 W AMessage: failed to post message as target looper for handler 0 is gone.
04-23 20:38:10.647 658 24094 W AMessage: failed to post message as target looper for handler 0 is gone.
04-23 20:38:10.707 658 1738 E CameraService: getVivoLogCtrl:persist.sys.log.ctrl is 0
04-23 20:38:10.707 658 1738 E CameraService: getVivoLogCtrl:gLogLevel 0
04-23 20:38:10.727 658 1738 E QCamera : yangqing g_cam_log[1][1] is 0
04-23 20:38:10.727 658 1738 E QCamera : yangqing g_cam_log[1][2] is 0
04-23 20:38:10.727 658 1738 E QCamera : yangqing g_cam_log[1][3] is 0
04-23 20:38:10.727 658 1738 E QCamera : yangqing g_cam_log[1][4] is 0
04-23 20:38:10.727 658 1738 E QCamera : yangqing g_cam_log[1][5] is 0
04-23 20:38:10.727 658 1738 E QCamera : yangqing g_cam_log[1][6] is 0
04-23 20:38:10.787 687 24150 E mm-camera: <SENSOR><ERROR> s5k4h8_rear_eeprom_get_calibration_items: 21: Enter
04-23 20:38:10.787 687 24150 E mm-camera: <SENSOR><ERROR> s5k4h8_rear_eeprom_get_calibration_items: 31: Exit
04-23 20:38:10.787 16702 17201 E CameraDeviceUserShim: createDefaultRequest - invalid templateId specified
04-23 20:38:10.787 16702 17201 W CaptureSession: Opening session with fail OPENING
04-23 20:38:10.787 16702 17201 W CaptureSession: java.lang.IllegalArgumentException: Bad argument passed to camera service
04-23 20:38:10.787 16702 17201 W CaptureSession: at android.hardware.camera2.utils.CameraBinderDecorator.throwOnError(CameraBinderDecorator.java:114)
04-23 20:38:10.787 16702 17201 W CaptureSession: at android.hardware.camera2.utils.CameraBinderDecorator$CameraBinderDecoratorListener.onAfterInvocation(CameraBinderDecorator.java:73)
04-23 20:38:10.787 16702 17201 W CaptureSession: at android.hardware.camera2.utils.Decorator.invoke(Decorator.java:81)
04-23 20:38:10.787 16702 17201 W CaptureSession: at java.lang.reflect.Proxy.invoke(Proxy.java:393)
04-23 20:38:10.787 16702 17201 W CaptureSession: at $Proxy15.createDefaultRequest(Unknown Source)
04-23 20:38:10.787 16702 17201 W CaptureSession: at android.hardware.camera2.impl.CameraDeviceImpl.createCaptureRequest(CameraDeviceImpl.java:628)
04-23 20:38:10.787 16702 17201 W CaptureSession: at androidx.camera.camera2.internal.Camera2CaptureRequestBuilder.buildWithoutTarget(Camera2CaptureRequestBuilder.java:213)
04-23 20:38:10.787 16702 17201 W CaptureSession: at androidx.camera.camera2.internal.CaptureSession.openCaptureSession(CaptureSession.java:334)
04-23 20:38:10.787 16702 17201 W CaptureSession: at androidx.camera.camera2.internal.CaptureSession.lambda$open$0$androidx-camera-camera2-internal-CaptureSession(CaptureSession.java:215)
04-23 20:38:10.787 16702 17201 W CaptureSession: at androidx.camera.camera2.internal.CaptureSession$$ExternalSyntheticLambda2.apply(D8$$SyntheticClass)
04-23 20:38:10.787 16702 17201 W CaptureSession: at androidx.camera.core.impl.utils.futures.ChainingListenableFuture.run(ChainingListenableFuture.java:203)
04-23 20:38:10.787 16702 17201 W CaptureSession: at androidx.camera.core.impl.utils.executor.SequentialExecutor$QueueWorker.workOnQueue(SequentialExecutor.java:231)
04-23 20:38:10.787 16702 17201 W CaptureSession: at androidx.camera.core.impl.utils.executor.SequentialExecutor$QueueWorker.run(SequentialExecutor.java:173)
04-23 20:38:10.787 16702 17201 W CaptureSession: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
04-23 20:38:10.787 16702 17201 W CaptureSession: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
04-23 20:38:10.787 16702 17201 W CaptureSession: at java.lang.Thread.run(Thread.java:818)
04-23 20:38:10.797 16702 16702 E CameraView: invokeOnError(...):
04-23 20:38:10.797 16702 16702 W System.err: com.mrousavy.camera.core.InvalidOutputConfigurationError: Failed to configure the Camera Session because the output/stream configurations are invalid!
04-23 20:38:10.797 16702 16702 W System.err: at com.mrousavy.camera.core.extensions.StateError_toCameraErrorKt.toCameraError(StateError+toCameraError.kt:23)
04-23 20:38:10.797 16702 16702 W System.err: at com.mrousavy.camera.core.CameraSession$configureCamera$2.invoke(CameraSession.kt:452)
04-23 20:38:10.797 16702 16702 W System.err: at com.mrousavy.camera.core.CameraSession$configureCamera$2.invoke(CameraSession.kt:440)
04-23 20:38:10.797 16702 16702 W System.err: at com.mrousavy.camera.core.CameraSession.configureCamera$lambda$10(CameraSession.kt:440)
04-23 20:38:10.797 16702 16702 W System.err: at com.mrousavy.camera.core.CameraSession.$r8$lambda$PcshN6VsPerRLH_dzPSSGTBQXms(CameraSession.kt)
04-23 20:38:10.797 16702 16702 W System.err: at com.mrousavy.camera.core.CameraSession$$ExternalSyntheticLambda0.onChanged(D8$$SyntheticClass)
04-23 20:38:10.797 16702 16702 W System.err: at androidx.lifecycle.LiveData.considerNotify(LiveData.java:133)
04-23 20:38:10.797 16702 16702 W System.err: at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:151)
04-23 20:38:10.797 16702 16702 W System.err: at androidx.lifecycle.LiveData.setValue(LiveData.java:309)
04-23 20:38:10.797 16702 16702 W System.err: at androidx.lifecycle.MutableLiveData.setValue(MutableLiveData.java:50)
04-23 20:38:10.797 16702 16702 W System.err: at androidx.camera.camera2.internal.Camera2CameraInfoImpl$RedirectableLiveData$$ExternalSyntheticLambda0.onChanged(D8$$SyntheticClass)
04-23 20:38:10.797 16702 17201 E Camera2CameraImpl: Unable to configure camera Camera@127faf7[id=0]
04-23 20:38:10.797 16702 17201 E Camera2CameraImpl: java.lang.IllegalArgumentException: Bad argument passed to camera service
04-23 20:38:10.797 16702 17201 E Camera2CameraImpl: at android.hardware.camera2.utils.CameraBinderDecorator.throwOnError(CameraBinderDecorator.java:114)
04-23 20:38:10.797 16702 17201 E Camera2CameraImpl: at android.hardware.camera2.utils.CameraBinderDecorator$CameraBinderDecoratorListener.onAfterInvocation(CameraBinderDecorator.java:73)
04-23 20:38:10.797 16702 17201 E Camera2CameraImpl: at android.hardware.camera2.utils.Decorator.invoke(Decorator.java:81)
04-23 20:38:10.797 16702 17201 E Camera2CameraImpl: at java.lang.reflect.Proxy.invoke(Proxy.java:393)
04-23 20:38:10.797 16702 17201 E Camera2CameraImpl: at $Proxy15.createDefaultRequest(Unknown Source)
04-23 20:38:10.797 16702 17201 E Camera2CameraImpl: at android.hardware.camera2.impl.CameraDeviceImpl.createCaptureRequest(CameraDeviceImpl.java:628)
04-23 20:38:10.797 16702 17201 E Camera2CameraImpl: at androidx.camera.camera2.internal.Camera2CaptureRequestBuilder.buildWithoutTarget(Camera2CaptureRequestBuilder.java:213)
04-23 20:38:10.797 16702 17201 E Camera2CameraImpl: at androidx.camera.camera2.internal.CaptureSession.openCaptureSession(CaptureSession.java:334)
04-23 20:38:10.797 16702 17201 E Camera2CameraImpl: at androidx.camera.camera2.internal.CaptureSession.lambda$open$0$androidx-camera-camera2-internal-CaptureSession(CaptureSession.java:215)
04-23 20:38:10.797 16702 17201 E Camera2CameraImpl: at androidx.camera.camera2.internal.CaptureSession$$ExternalSyntheticLambda2.apply(D8$$SyntheticClass)
04-23 20:38:10.797 16702 17201 E Camera2CameraImpl: at androidx.camera.core.impl.utils.futures.ChainingListenableFuture.run(ChainingListenableFuture.java:203)
04-23 20:38:10.797 16702 17201 E Camera2CameraImpl: at androidx.camera.core.impl.utils.executor.SequentialExecutor$QueueWorker.workOnQueue(SequentialExecutor.java:231)
04-23 20:38:10.797 16702 17201 E Camera2CameraImpl: at androidx.camera.core.impl.utils.executor.SequentialExecutor$QueueWorker.run(SequentialExecutor.java:173)
04-23 20:38:10.797 16702 17201 E Camera2CameraImpl: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
04-23 20:38:10.797 16702 17201 E Camera2CameraImpl: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
04-23 20:38:10.797 16702 17201 E Camera2CameraImpl: at java.lang.Thread.run(Thread.java:818)
04-23 20:38:10.797 16702 16702 W System.err: at androidx.lifecycle.MediatorLiveData$Source.onChanged(MediatorLiveData.java:152)
04-23 20:38:10.797 16702 16702 W System.err: at androidx.lifecycle.LiveData.considerNotify(LiveData.java:133)
04-23 20:38:10.797 16702 16702 W System.err: at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:151)
04-23 20:38:10.797 16702 16702 W System.err: at androidx.lifecycle.LiveData.setValue(LiveData.java:309)
04-23 20:38:10.797 16702 16702 W System.err: at androidx.lifecycle.MutableLiveData.setValue(MutableLiveData.java:50)
04-23 20:38:10.797 16702 16702 W System.err: at androidx.lifecycle.LiveData$1.run(LiveData.java:93)
04-23 20:38:10.797 16702 16702 W System.err: at android.os.Handler.handleCallback(Handler.java:739)
04-23 20:38:10.797 16702 16702 W System.err: at android.os.Handler.dispatchMessage(Handler.java:95)
04-23 20:38:10.797 16702 16702 W System.err: at android.os.Looper.loop(Looper.java:148)
04-23 20:38:10.797 16702 16702 W System.err: at android.app.ActivityThread.main(ActivityThread.java:5541)
04-23 20:38:10.797 16702 16702 W System.err: at java.lang.reflect.Method.invoke(Native Method)
04-23 20:38:10.797 16702 16702 W System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:853)
04-23 20:38:10.797 16702 16702 W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:737)
04-23 20:38:10.797 16702 16702 W System.err: Caused by: java.lang.IllegalArgumentException: Bad argument passed to camera service
04-23 20:38:10.797 16702 16702 W System.err: at android.hardware.camera2.utils.CameraBinderDecorator.throwOnError(CameraBinderDecorator.java:114)
04-23 20:38:10.797 16702 16702 W System.err: at android.hardware.camera2.utils.CameraBinderDecorator$CameraBinderDecoratorListener.onAfterInvocation(CameraBinderDecorator.java:73)
04-23 20:38:10.797 16702 16702 W System.err: at android.hardware.camera2.utils.Decorator.invoke(Decorator.java:81)
04-23 20:38:10.797 16702 16702 W System.err: at java.lang.reflect.Proxy.invoke(Proxy.java:393)
04-23 20:38:10.797 16702 16702 W System.err: at $Proxy15.createDefaultRequest(Unknown Source)
04-23 20:38:10.797 16702 16702 W System.err: at android.hardware.camera2.impl.CameraDeviceImpl.createCaptureRequest(CameraDeviceImpl.java:628)
04-23 20:38:10.797 16702 16702 W System.err: at androidx.camera.camera2.internal.Camera2CaptureRequestBuilder.buildWithoutTarget(Camera2CaptureRequestBuilder.java:213)
04-23 20:38:10.797 16702 16702 W System.err: at androidx.camera.camera2.internal.CaptureSession.openCaptureSession(CaptureSession.java:334)
04-23 20:38:10.797 16702 16702 W System.err: at androidx.camera.camera2.internal.CaptureSession.lambda$open$0$androidx-camera-camera2-internal-CaptureSession(CaptureSession.java:215)
04-23 20:38:10.797 16702 16702 W System.err: at androidx.camera.camera2.internal.CaptureSession$$ExternalSyntheticLambda2.apply(D8$$SyntheticClass)
04-23 20:38:10.797 16702 16702 W System.err: at androidx.camera.core.impl.utils.futures.ChainingListenableFuture.run(ChainingListenableFuture.java:203)
04-23 20:38:10.797 16702 16702 W System.err: at androidx.camera.core.impl.utils.executor.SequentialExecutor$QueueWorker.workOnQueue(SequentialExecutor.java:231)
04-23 20:38:10.797 16702 16702 W System.err: at androidx.camera.core.impl.utils.executor.SequentialExecutor$QueueWorker.run(SequentialExecutor.java:173)
04-23 20:38:10.797 16702 16702 W System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
04-23 20:38:10.797 16702 16702 W System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
04-23 20:38:10.797 16702 16702 W System.err: at java.lang.Thread.run(Thread.java:818)
from react-native-vision-camera.
Interesting, so it seems like qualityPrioritization="speed"
or qualityPrioritization="quality"
works. Apparently the balanced
(ZSL option) doesn't work on all devices, even though CameraX docs suggest it will automatically fallback.
from react-native-vision-camera.
Related Issues (20)
- 🐛 Blank screen when enabling photo (`photo={true}`) HOT 6
- 🐛 Android Back Camera Zoom Breaks in 4.0.4 HOT 2
- 🐛 Taking a photo throws `[session/recoverable-error]: An unknown error occurred while creating the Camera Session, but the Camera can recover from it` HOT 4
- barcodeScan mask flipped view HOT 1
- 💭 Is it possible to display the front and back cameras at the same time HOT 1
- ✨ Contrast HOT 1
- _NativeCameraModule.CameraModule.getLocationPermissionStatus is not a function (it is undefined)🔧 HOT 1
- 💭 Two separate frame processors at different target FPS HOT 4
- 🐛 [AVCaptureDevice setActiveColorSpace:] Not supported - use activeFormat.supportedColorSpaces'. HOT 2
- APK Size increase After implementing react-native-vision-camera lib double the apk size HOT 4
- 💭 Why the Photo Result Does Not Come Out in the Specified Aspect Ratio HOT 1
- 🐛 `finally` on a `Promise` stops camera on Android HOT 2
- 🐛 [V4][Android] Release crash: maxImages (6) has already been acquired
- 🔧 Not able to build expo dev client when using any of the given frame processing plugin for OCR HOT 1
- 🐛 [Android] isActive change doesn't happen fast enough causing device/camera-already-in-use error when switching to native camera app
- 🔧 Execution failed for task ':react-native-vision-camera:compileReleaseKotlin'. HOT 3
- 🔧 This API is provided only for React Native frameworks and not intended for general users. This API can change between minor versions in alignment with React Native frameworks and won't be considered a breaking change. HOT 9
- 💭 Android: Frameprocessor
- 💭 Focus not work
- 🐛 Memory leak Android HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-vision-camera.