[OnePlus 5 Themes, Apps, and Mods] Sarabveer:
My GCam app crashes when I try to use the 2nd back camera. After the crash, sometimes the app is unable to open because it tries opening to the 2nd camera and crashes.

Info:

Phone: OnePlus 5

ROM: crDroid 6.12 (Android 10)

GCam: NGCam_7.4.104-v1.9

Config: Nik-1.9.xml

Fix: OnePlus5&5T-DotFix v6.0 (Magisk)

Log:

--------- beginning of crash
12-02 22:42:15.964 18817 18817 E AndroidRuntime: FATAL EXCEPTION: main
12-02 22:42:15.964 18817 18817 E AndroidRuntime: Process: com.google.android.GoogleCameraEng, PID: 18817
12-02 22:42:15.964 18817 18817 E AndroidRuntime: java.lang.IllegalArgumentException: supportsCameraApi:1990: Unknown camera ID 2
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:822)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at android.hardware.camera2.CameraManager.getCameraCharacteristics(CameraManager.java:331)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at mgf.a(Unknown Source:134)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at mgg.a(Unknown Source:392)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at mgw.a(Unknown Source:13)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at mgw.e(Unknown Source:99)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at mgw.b(Unknown Source:11)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at mhf.b(Unknown Source:9)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at lso.<init>(Unknown Source:11)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at kuf.a(Unknown Source:325)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at ebs.u(Unknown Source:1029)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at ebs.g(Unknown Source:158)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at dxy.g(Unknown Source:925)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at enp.a(Unknown Source:5)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at ent.b(Unknown Source:97)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at eol.onStart(Unknown Source:28)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at dwg.onStart(Unknown Source:48)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at com.google.android.apps.camera.legacy.app.activity.main.CameraActivity.onStart(Unknown Source:575)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at com.google.android.apps.camera.legacy.app.activity.main.CameraActivity.ReInit(Unknown Source:54)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at com.ButtonAuxMode.onRestart(Unknown Source:316)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at com.ButtonAuxMode$1.lambda$onClick$0$ButtonAuxMode$1(Unknown Source:105)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at com.ButtonAuxMode$1$$Lambda$0.accept(Unknown Source:43)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at java.util.ArrayList.forEach(ArrayList.java:1262)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at com.ButtonAuxMode$1.onClick(Unknown Source:72)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at android.view.View.performClick(View.java:7259)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at android.view.View.performClickInternal(View.java:7236)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at android.view.View.access$3600(View.java:801)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at android.view.View$PerformClick.run(View.java:27896)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:883)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:100)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7356)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: Caused by: android.os.ServiceSpecificException: supportsCameraApi:1990: Unknown camera ID 2 (code 3)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at android.os.Parcel.createException(Parcel.java:2085)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2039)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1987)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at android.hardware.ICameraService$Stub$Proxy.supportsCameraApi(ICameraService.java:800)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at android.hardware.camera2.CameraManager.supportsCameraApiLocked(CameraManager.java:875)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at android.hardware.camera2.CameraManager.supportsCamera2ApiLocked(CameraManager.java:851)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: at android.hardware.camera2.CameraManager.getCameraCharacteristics(CameraManager.java:307)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: ... 33 more
12-02 22:42:15.969 18817 18817 W CAM_ShotTracker: Uncaught exception. Annotating all active shots.
12-02 22:42:15.991 18817 18817 I Process : Sending signal. PID: 18817 SIG: 9
12-02 22:42:16.005 20829 20829 E ng:crash_repor: Not starting debugger since process cannot load the jdwp agent.