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

Illegal Argument Exception (unreproducible) #99

Open
robillo opened this issue Sep 9, 2021 · 2 comments
Open

Illegal Argument Exception (unreproducible) #99

robillo opened this issue Sep 9, 2021 · 2 comments

Comments

@robillo
Copy link

robillo commented Sep 9, 2021

FATAL EXCEPTION: local-camera-capturer-thread
Process: com.kutumb.android, PID: 11120
java.lang.IllegalArgumentException: supportsCameraApi:2095: Unknown camera ID 1
at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:888)
at android.hardware.camera2.CameraManager.getCameraCharacteristics(CameraManager.java:359)
at org.webrtc.Camera2Session.start(Camera2Session.java:304)
at org.webrtc.Camera2Session.(Camera2Session.java:296)
at org.webrtc.Camera2Session.create(Camera2Session.java:274)
at org.webrtc.Camera2Capturer.createCameraSession(Camera2Capturer.java:35)
at org.webrtc.CameraCapturer$5.run(CameraCapturer.java:272)
at android.os.Handler.handleCallback(Handler.java:914)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:225)
at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: android.os.ServiceSpecificException: supportsCameraApi:2095: Unknown camera ID 1 (code 3)
at android.os.Parcel.createException(Parcel.java:2088)
at android.os.Parcel.readException(Parcel.java:2042)
at android.os.Parcel.readException(Parcel.java:1990)
at android.hardware.ICameraService$Stub$Proxy.supportsCameraApi(ICameraService.java:800)
at android.hardware.camera2.CameraManager.supportsCameraApiLocked(CameraManager.java:941)
at android.hardware.camera2.CameraManager.supportsCamera2ApiLocked(CameraManager.java:917)
at android.hardware.camera2.CameraManager.getCameraCharacteristics(CameraManager.java:307)
at org.webrtc.Camera2Session.start(Camera2Session.java:304) 
at org.webrtc.Camera2Session.(Camera2Session.java:296) 
at org.webrtc.Camera2Session.create(Camera2Session.java:274) 
at org.webrtc.Camera2Capturer.createCameraSession(Camera2Capturer.java:35) 
at org.webrtc.CameraCapturer$5.run(CameraCapturer.java:272) 
at android.os.Handler.handleCallback(Handler.java:914) 
at android.os.Handler.dispatchMessage(Handler.java:100) 
at android.os.Looper.loop(Looper.java:225) 
at android.os.HandlerThread.run(HandlerThread.java:67) 

@PratimMallick
Copy link
Member

@robillo When are you getting this issue, and which device this is coming on?

@robillo
Copy link
Author

robillo commented Sep 9, 2021

wasn't able to replicate, got this randomly (Xiaomi Redmi Note 8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants