[Android Apps and Games] b1h:
Redmi 2 Crashes that I've observed:

App crashes when in front camera video mode and you try to zoom in when the resolution is set at 1080p (Redmi 2 front camera supports max of 720p)

java.lang.RuntimeException: setParameters failed

at android.hardware.Camera.native_setParameters(Native Method)

at android.hardware.Camera.setParameters(Camera.java:1967)

at freed.cam.apis.camera1.CameraHolder.SetCameraParameters(CameraHolder.java:144)

at freed.cam.apis.camera1.parameters.ParametersHandler.SetParametersToCamera(ParametersHandler.java:83)

at freed.cam.apis.camera1.parameters.manual.ZoomManualParameter.SetValue(ZoomManualParameter.java:53)

at freed.cam.ui.themesample.cameraui.ManualButton.setparameter(ManualButton.java:330)

at freed.cam.ui.themesample.cameraui.ManualButton.access$700(ManualButton.java:52)

at freed.cam.ui.themesample.cameraui.ManualButton$6.run(ManualButton.java:306)

at android.os.Handler.handleCallback(Handler.java:739)

at android.os.Handler.dispatchMessage(Handler.java:95)

at android.os.Looper.loop(Looper.java:148)

at android.app.ActivityThread.main(ActivityThread.java:5471)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Stacking mode crashes when trying to save to an unplugged otg usb device

java.lang.NullPointerException: Attempt to invoke virtual method 'android.net.Uri android.support.v4.provider.DocumentFile.getUri()' on a null object reference

at freed.cam.apis.basecamera.modules.ModuleAbstract.saveBytesToFile(ModuleAbstract.java:134)

at freed.cam.apis.camera1.modules.StackingModule.processData(StackingModule.java:168)

at freed.cam.apis.camera1.modules.StackingModule.access$100(StackingModule.java:48)

at freed.cam.apis.camera1.modules.StackingModule$1.run(StackingModule.java:105)

at java.lang.Thread.run(Thread.java:818)

Stacking mode crashes...

java.lang.OutOfMemoryError: Failed to allocate a 7680012 byte allocation with 6797288 free bytes and 6MB until OOM

at dalvik.system.VMRuntime.newNonMovableArray(Native Method)

at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)

at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:635)

at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:611)

at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:391)

at freed.viewer.helper.BitmapHelper.getBitmap(BitmapHelper.java:80)

at freed.cam.ActivityFreeDcamMain$5$1.run(ActivityFreeDcamMain.java:525)

at java.lang.Thread.run(Thread.java:818)

java.lang.OutOfMemoryError: Failed to allocate a 7680012 byte allocation with 4938232 free bytes and 4MB until OOM

at freed.viewer.screenslide.ImageFragment.createHistogramm(ImageFragment.java:193)

at freed.viewer.screenslide.ImageFragment.loadImage(ImageFragment.java:165)

at freed.viewer.screenslide.ImageFragment.access$000(ImageFragment.java:47)

at freed.viewer.screenslide.ImageFragment$1.run(ImageFragment.java:133)

at java.lang.Thread.run(Thread.java:818)

Video recording with camera2 (I don't expect to use camera2.)

java.lang.IllegalStateException: Session has been closed; further changes are illegal.

at android.hardware.camera2.impl.CameraCaptureSessionImpl.checkNotClosed(CameraCaptureSessionImpl.java:606)

at android.hardware.camera2.impl.CameraCaptureSessionImpl.setRepeatingRequest(CameraCaptureSessionImpl.java:227)

at freed.cam.apis.camera2.CameraHolderApi2$CaptureSessionHandler.StartRepeatingCaptureSession(CameraHolderApi2.java:751)

at freed.cam.apis.camera2.CameraHolderApi2.SetParameterRepeating(CameraHolderApi2.java:283)

at freed.cam.apis.camera2.parameters.ParameterHandler.SetPictureOrientation(ParameterHandler.java:183)

at freed.cam.ActivityFreeDcamMain.OrientationChanged(ActivityFreeDcamMain.java:385)

at freed.cam.ui.handler.OrientationHandler$1.onOrientationChanged(OrientationHandler.java:33)

at android.view.OrientationEventListener$SensorEventListenerImpl.onSensorChanged(OrientationEventListener.java:143)

at android.hardware.SystemSensorManager$SensorEventQueue.dispatchSensorEvent(SystemSensorManager.java:483)

at android.os.MessageQueue.nativePollOnce(Native Method)

at android.os.MessageQueue.next(MessageQueue.java:323)

at android.os.Looper.loop(Looper.java:135)

at android.app.ActivityThread.main(ActivityThread.java:5471)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Crashes when trying to use RAW2DNG with the file on a SD card. (Also happens with the stacker)

java.lang.NullPointerException: Attempt to invoke virtual method 'android.graphics.Bitmap$Config android.graphics.Bitmap.getConfig()' on a null object reference

at android.renderscript.Allocation.copyFrom(Allocation.java:775)

at freed.cam.apis.camera1.modules.StackingModule.stackImage(StackingModule.java:214)

at freed.cam.apis.camera1.modules.StackingModule.processData(StackingModule.java:196)

at freed.cam.apis.camera1.modules.StackingModule.access$100(StackingModule.java:48)

at freed.cam.apis.camera1.modules.StackingModule$1.run(StackingModule.java:105)

at java.lang.Thread.run(Thread.java:818)

Crashed right after opening app... To reproduce do the above. Then when you see "Unfortunatately, FreeDCam has stopped." Press home, press OK and open up FreeDCam.

java.lang.RuntimeException: Unable to start activity ComponentInfo{troop.com.freedcam/freed.cam.ActivityFreeDcamMain}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference

at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2462)

at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2522)

at android.app.ActivityThread.-wrap11(ActivityThread.java)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1363)

at android.os.Handler.dispatchMessage(Handler.java:102)

at android.os.Looper.loop(Looper.java:148)

at android.app.ActivityThread.main(ActivityThread.java:5471)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference

at freed.cam.apis.basecamera.parameters.modes.LocationParameter.<init>(LocationParameter.java:53)

at freed.cam.apis.basecamera.parameters.AbstractParameterHandler.<init>(AbstractParameterHandler.java:186)

at freed.cam.apis.camera1.parameters.ParametersHandler.<init>(ParametersHandler.java:77)

at freed.cam.apis.camera1.Camera1Fragment.onViewCreated(Camera1Fragment.java:93)

at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1123)

at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1286)

at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1268)

at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2143)

at android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:201)

at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:615)

at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1238)

at android.app.Activity.performStart(Activity.java:7142)

at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2425)

... 9 more

Other issues:

Swiping right doesn't show photos & videos taken with an SD card or OTG drive.

When the mode menu is open and you close the app if's still in memory, re-opening the app causes the mode menu to triple its list.

Suggestions:

Record from headset mic?

Audio monitoring?

Version 3.3.137

Great app keep it up! :good: