Fatal Exception: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:503)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
Caused by java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
Caused by java.util.concurrent.ExecutionException: androidx.camera.core.InitializationException: androidx.camera.core.CameraUnavailableException: androidx.camera.camera2.internal.compat.CameraAccessExceptionCompat: Some API 28 devices cannot access the camera when the device is in "Do Not Disturb" mode. The camera will not be accessible until "Do Not Disturb" mode is disabled.
at androidx.concurrent.futures.AbstractResolvableFuture.i(AbstractResolvableFuture.java:4)
at androidx.concurrent.futures.AbstractResolvableFuture.get(AbstractResolvableFuture.java:48)
at androidx.concurrent.futures.CallbackToFutureAdapter$c.get(CallbackToFutureAdapter.java:1)
at d.e.b.m2.l2.n.e.get(FutureChain.java:1)
at d.e.b.m2.l2.n.c.get(ChainingListenableFuture.java:7)
at com.metamap.sdk_components.featue_common.ui.camera.PhotoCameraFragment.f0(PhotoCameraFragment.kt:1)
at com.metamap.sdk_components.featue_common.ui.camera.PhotoCameraFragment.S()
at g.f.b.f.b.a.b.run(:4)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6702)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
Caused by androidx.camera.core.InitializationException: androidx.camera.core.CameraUnavailableException: androidx.camera.camera2.internal.compat.CameraAccessExceptionCompat: Some API 28 devices cannot access the camera when the device is in "Do Not Disturb" mode. The camera will not be accessible until "Do Not Disturb" mode is disabled.
at androidx.camera.camera2.Camera2Config.b(Camera2Config.java:2)
at d.e.a.b.a()
at androidx.camera.core.CameraX.k(CameraX.java:14)
at androidx.camera.core.CameraX.l()
at d.e.b.f.run(:10)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
Caused by androidx.camera.core.CameraUnavailableException: androidx.camera.camera2.internal.compat.CameraAccessExceptionCompat: Some API 28 devices cannot access the camera when the device is in "Do Not Disturb" mode. The camera will not be accessible until "Do Not Disturb" mode is disabled.
at d.e.a.e.b2.a(CameraUnavailableExceptionHelper.java:2)
at d.e.a.e.o2.(SupportedSurfaceCombination.java:22)
at d.e.a.e.s1.c(Camera2DeviceSurfaceManager.java:3)
at d.e.a.e.s1.(Camera2DeviceSurfaceManager.java:9)
at d.e.a.e.s1.(Camera2DeviceSurfaceManager.java:1)
at androidx.camera.camera2.Camera2Config.b(Camera2Config.java:1)
at d.e.a.b.a()
at androidx.camera.core.CameraX.k(CameraX.java:14)
at androidx.camera.core.CameraX.l()
at d.e.b.f.run(:10)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
Caused by androidx.camera.camera2.internal.compat.CameraAccessExceptionCompat: Some API 28 devices cannot access the camera when the device is in "Do Not Disturb" mode. The camera will not be accessible until "Do Not Disturb" mode is disabled.
at d.e.a.e.x2.n0.j(CameraManagerCompatApi28Impl.java:1)
at d.e.a.e.x2.n0.c(CameraManagerCompatApi28Impl.java:3)
at d.e.a.e.x2.l0.c(CameraManagerCompat.java:4)
at d.e.a.e.o2.(SupportedSurfaceCombination.java:14)
at d.e.a.e.s1.c(Camera2DeviceSurfaceManager.java:3)
at d.e.a.e.s1.(Camera2DeviceSurfaceManager.java:9)
at d.e.a.e.s1.(Camera2DeviceSurfaceManager.java:1)
at androidx.camera.camera2.Camera2Config.b(Camera2Config.java:1)
at d.e.a.b.a()
at androidx.camera.core.CameraX.k(CameraX.java:14)
at androidx.camera.core.CameraX.l()
at d.e.b.f.run(:10)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
Caused by java.lang.RuntimeException: Camera is being used after Camera.release() was called
at android.hardware.Camera._enableShutterSound(Camera.java)
at android.hardware.Camera.updateAppOpsPlayAudio(Camera.java:1792)
at android.hardware.Camera.initAppOps(Camera.java:590)
at android.hardware.Camera.(Camera.java:583)
at android.hardware.Camera.getEmptyParameters(Camera.java:2159)
at android.hardware.camera2.legacy.LegacyMetadataMapper.createCharacteristics(LegacyMetadataMapper.java:153)
at android.hardware.camera2.CameraManager.getCameraCharacteristics(CameraManager.java:274)
at d.e.a.e.x2.p0.c(CameraManagerCompatBaseImpl.java:1)
at d.e.a.e.x2.n0.c(CameraManagerCompatApi28Impl.java:1)
at d.e.a.e.x2.l0.c(CameraManagerCompat.java:4)
at d.e.a.e.o2.(SupportedSurfaceCombination.java:14)
at d.e.a.e.s1.c(Camera2DeviceSurfaceManager.java:3)
at d.e.a.e.s1.(Camera2DeviceSurfaceManager.java:9)
at d.e.a.e.s1.(Camera2DeviceSurfaceManager.java:1)
at androidx.camera.camera2.Camera2Config.b(Camera2Config.java:1)
at d.e.a.b.a()
at androidx.camera.core.CameraX.k(CameraX.java:14)
at androidx.camera.core.CameraX.l()
at d.e.b.f.run(:10)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
Fatal Exception: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:503) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
Caused by java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
Caused by java.util.concurrent.ExecutionException: androidx.camera.core.InitializationException: androidx.camera.core.CameraUnavailableException: androidx.camera.camera2.internal.compat.CameraAccessExceptionCompat: Some API 28 devices cannot access the camera when the device is in "Do Not Disturb" mode. The camera will not be accessible until "Do Not Disturb" mode is disabled. at androidx.concurrent.futures.AbstractResolvableFuture.i(AbstractResolvableFuture.java:4) at androidx.concurrent.futures.AbstractResolvableFuture.get(AbstractResolvableFuture.java:48) at androidx.concurrent.futures.CallbackToFutureAdapter$c.get(CallbackToFutureAdapter.java:1) at d.e.b.m2.l2.n.e.get(FutureChain.java:1) at d.e.b.m2.l2.n.c.get(ChainingListenableFuture.java:7) at com.metamap.sdk_components.featue_common.ui.camera.PhotoCameraFragment.f0(PhotoCameraFragment.kt:1) at com.metamap.sdk_components.featue_common.ui.camera.PhotoCameraFragment.S() at g.f.b.f.b.a.b.run(:4) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6702) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
Caused by androidx.camera.core.InitializationException: androidx.camera.core.CameraUnavailableException: androidx.camera.camera2.internal.compat.CameraAccessExceptionCompat: Some API 28 devices cannot access the camera when the device is in "Do Not Disturb" mode. The camera will not be accessible until "Do Not Disturb" mode is disabled. at androidx.camera.camera2.Camera2Config.b(Camera2Config.java:2) at d.e.a.b.a() at androidx.camera.core.CameraX.k(CameraX.java:14) at androidx.camera.core.CameraX.l() at d.e.b.f.run(:10) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:764)
Caused by androidx.camera.core.CameraUnavailableException: androidx.camera.camera2.internal.compat.CameraAccessExceptionCompat: Some API 28 devices cannot access the camera when the device is in "Do Not Disturb" mode. The camera will not be accessible until "Do Not Disturb" mode is disabled. at d.e.a.e.b2.a(CameraUnavailableExceptionHelper.java:2) at d.e.a.e.o2.(SupportedSurfaceCombination.java:22)
at d.e.a.e.s1.c(Camera2DeviceSurfaceManager.java:3)
at d.e.a.e.s1.(Camera2DeviceSurfaceManager.java:9)
at d.e.a.e.s1.(Camera2DeviceSurfaceManager.java:1)
at androidx.camera.camera2.Camera2Config.b(Camera2Config.java:1)
at d.e.a.b.a()
at androidx.camera.core.CameraX.k(CameraX.java:14)
at androidx.camera.core.CameraX.l()
at d.e.b.f.run(:10)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
Caused by androidx.camera.camera2.internal.compat.CameraAccessExceptionCompat: Some API 28 devices cannot access the camera when the device is in "Do Not Disturb" mode. The camera will not be accessible until "Do Not Disturb" mode is disabled. at d.e.a.e.x2.n0.j(CameraManagerCompatApi28Impl.java:1) at d.e.a.e.x2.n0.c(CameraManagerCompatApi28Impl.java:3) at d.e.a.e.x2.l0.c(CameraManagerCompat.java:4) at d.e.a.e.o2.(SupportedSurfaceCombination.java:14)
at d.e.a.e.s1.c(Camera2DeviceSurfaceManager.java:3)
at d.e.a.e.s1.(Camera2DeviceSurfaceManager.java:9)
at d.e.a.e.s1.(Camera2DeviceSurfaceManager.java:1)
at androidx.camera.camera2.Camera2Config.b(Camera2Config.java:1)
at d.e.a.b.a()
at androidx.camera.core.CameraX.k(CameraX.java:14)
at androidx.camera.core.CameraX.l()
at d.e.b.f.run(:10)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
Caused by java.lang.RuntimeException: Camera is being used after Camera.release() was called at android.hardware.Camera._enableShutterSound(Camera.java) at android.hardware.Camera.updateAppOpsPlayAudio(Camera.java:1792) at android.hardware.Camera.initAppOps(Camera.java:590) at android.hardware.Camera.(Camera.java:583)
at android.hardware.Camera.getEmptyParameters(Camera.java:2159)
at android.hardware.camera2.legacy.LegacyMetadataMapper.createCharacteristics(LegacyMetadataMapper.java:153)
at android.hardware.camera2.CameraManager.getCameraCharacteristics(CameraManager.java:274)
at d.e.a.e.x2.p0.c(CameraManagerCompatBaseImpl.java:1)
at d.e.a.e.x2.n0.c(CameraManagerCompatApi28Impl.java:1)
at d.e.a.e.x2.l0.c(CameraManagerCompat.java:4)
at d.e.a.e.o2.(SupportedSurfaceCombination.java:14)
at d.e.a.e.s1.c(Camera2DeviceSurfaceManager.java:3)
at d.e.a.e.s1.(Camera2DeviceSurfaceManager.java:9)
at d.e.a.e.s1.(Camera2DeviceSurfaceManager.java:1)
at androidx.camera.camera2.Camera2Config.b(Camera2Config.java:1)
at d.e.a.b.a()
at androidx.camera.core.CameraX.k(CameraX.java:14)
at androidx.camera.core.CameraX.l()
at d.e.b.f.run(:10)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)