05-23 19:45:58.694 31276 31276 E AndroidRuntime: FATAL EXCEPTION: main
05-23 19:45:58.694 31276 31276 E AndroidRuntime: Process: es.esy.CosyDVR, PID: 31276
05-23 19:45:58.694 31276 31276 E AndroidRuntime: java.lang.RuntimeException: Camera is being used after Camera.release() was called
05-23 19:45:58.694 31276 31276 E AndroidRuntime: at android.hardware.Camera.native_getParameters(Native Method)
05-23 19:45:58.694 31276 31276 E AndroidRuntime: at android.hardware.Camera.getParameters(Camera.java:2050)
05-23 19:45:58.694 31276 31276 E AndroidRuntime: at es.esy.CosyDVR.BackgroundVideoRecorder.applyCameraParameters(BackgroundVideoRecorder.java:713)
05-23 19:45:58.694 31276 31276 E AndroidRuntime: at es.esy.CosyDVR.BackgroundVideoRecorder.StartRecording(BackgroundVideoRecorder.java:524)
05-23 19:45:58.694 31276 31276 E AndroidRuntime: at es.esy.CosyDVR.BackgroundVideoRecorder.RestartRecording(BackgroundVideoRecorder.java:469)
05-23 19:45:58.694 31276 31276 E AndroidRuntime: at es.esy.CosyDVR.CosyDVR$3.onClick(CosyDVR.java:220)
05-23 19:45:58.694 31276 31276 E AndroidRuntime: at android.view.View.performClick(View.java:5647)
05-23 19:45:58.694 31276 31276 E AndroidRuntime: at android.view.View$PerformClick.run(View.java:22462)
05-23 19:45:58.694 31276 31276 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:754)
05-23 19:45:58.694 31276 31276 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
05-23 19:45:58.694 31276 31276 E AndroidRuntime: at android.os.Looper.loop(Looper.java:163)
05-23 19:45:58.694 31276 31276 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6361)
05-23 19:45:58.694 31276 31276 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-23 19:45:58.694 31276 31276 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
05-23 19:45:58.694 31276 31276 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
Project Information
Repository : https://github.com/sergstetsuk/CosyDVR/
Title App : CosyDVR
Publisher App : Dzmitry Lahoda
Expected behavior
Supposedly, When changing numbers on the "Video Height" feature and doing a video record does not cause the application to crash.
Actual behavior
When changing numbers on the "Video Height" feature and making a video recording causes the app to crash.
How to reproduce
Environment
Device : Redmi Note 5A
System Operating : 7.1.0 Nougat
App Version : 1.3.21
https://youtu.be/_3u83ckOuVg
Logcat
Proof Of Work Done
Submit in github