AgoraIO-Community / VideoUIKit-Android

An Android package to simply integrate Agora Video Calling or Live Video Streaming to your app with just a few lines of code.
https://agoraio-community.github.io/VideoUIKit-Android/
MIT License
25 stars 15 forks source link

[BUG] Crash when init video call "Attempt to get length of null array" #39

Open A-Cordero opened 1 year ago

A-Cordero commented 1 year ago

Describe the bug Using the version 'com.github.AgoraIO-Community.VideoUIKit-Android:final:v4.0.1' when starting the video call the application crashes, the log is attached

io.agora.rtc2.video.VideoCaptureCamera2.createPreviewObjectsAndStartPreview (VideoCaptureCamera2.java:735) io.agora.rtc2.video.VideoCaptureCamera2.createTexturePreviewObjectsAndStartPreview (VideoCaptureCamera2.java:691) io.agora.rtc2.video.VideoCaptureCamera2.createPreviewObjectsAndStartPreviewOrFailWith (VideoCaptureCamera2.java:652) io.agora.rtc2.video.VideoCaptureCamera2.access$500 (VideoCaptureCamera2.java:65) io.agora.rtc2.video.VideoCaptureCamera2$CrStateListener.onOpened (VideoCaptureCamera2.java:77) android.hardware.camera2.impl.CameraDeviceImpl$1.run (CameraDeviceImpl.java:143) android.os.Handler.handleCallback (Handler.java:873) android.os.Handler.dispatchMessage (Handler.java:99) android.os.Looper.loop (Looper.java:193) android.os.HandlerThread.run (HandlerThread.java:65)

Smartphone (please complete the following information):