java.lang.IllegalArgumentException: Bad argument passed to camera service

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Madhavan Malolan
, 1 year ago
Bad argument passed to camera service
via GitHub by PatrickGuo
, 11 months ago
Bad argument passed to camera service
via Stack Overflow by Simon
, 1 year ago
Bad argument passed to camera service
via Stack Overflow by made4engineering
, 1 year ago
Bad argument passed to camera service
via GitHub by vajiralasantha
, 2 months ago
Bad argument passed to camera service
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 java.lang.reflect.Proxy.invoke(Proxy.java:393)
at undefined.$Proxy1.createStream(Unknown Source)
at android.hardware.camera2.impl.CameraDeviceImpl.configureStreamsChecked(CameraDeviceImpl.java:429)
at android.hardware.camera2.impl.CameraDeviceImpl.createCaptureSessionInternal(CameraDeviceImpl.java:561)
at com.example.app.MainActivity$3.onOpened(MainActivity.java:249)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)

Users with the same issue

2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.