Simple-Camera icon indicating copy to clipboard operation
Simple-Camera copied to clipboard

Video start button closes app

Open mrvanes opened this issue 6 years ago • 14 comments

When pressing the start videorecording button, Simple-Camera closes by sliding down out of view, no FC messages from OS. Phone: Alcatel Idol 2 Mini S (6036Y) Android: 6.0.1 Kernel: 3.10.49

mrvanes avatar Jun 15 '18 18:06 mrvanes

what app version do you have?

tibbi avatar Jun 15 '18 19:06 tibbi

4.1.1 12 june 2018.

mrvanes avatar Jun 15 '18 19:06 mrvanes

not sure what is the issue, but instead of crashing a message should appear in version 4.1.2 released soon. Let me know if you see it and what is written on it :) Thanks

tibbi avatar Jun 18 '18 20:06 tibbi

4.1.2 Installed. The app still silently closes and leaves no trace.

mrvanes avatar Jun 19 '18 17:06 mrvanes

Might changing the resolution help? Or switching between camera and video mode before hand? (For me, the video mode works better than before, since the newest version 4.1.0)

Klimmbimmel avatar Jun 23 '18 10:06 Klimmbimmel

Already tried that. No improvement.

mrvanes avatar Jun 25 '18 07:06 mrvanes

I would like to take a note that in my case video start button also closes app when videos are set to be saved on SD card. If this setting is changed to save videos on internal memory, everything works as expected.

GarciaPL avatar Jul 28 '18 15:07 GarciaPL

I got the same Issue (probably a second one too). I had the same behaviour as @mrvanes when saving to SD Card When trying @GarciaPL s solution I'm getting a Java.lang.IllegalArgumentException: Surface was abandoned

Nokia 5 (TA-1053), Android 8.1 All permissions granted

gleichda avatar Aug 08 '18 09:08 gleichda

The issue still exists and app crash with java.lang.IllegalStateException: failed to get surface at android.media.MediaRecorder.getSurface(Native Method)

fahime-ghasemi avatar Oct 29 '18 08:10 fahime-ghasemi

are you using app version 5.0.0?

tibbi avatar Oct 29 '18 08:10 tibbi

yes, I cloned the master branch a few hours ago and app version in build.gradle is 5.0.0. My android version is 7.0

fahime-ghasemi avatar Oct 29 '18 09:10 fahime-ghasemi

This is the logcat

Process: com.simplemobiletools.camera.debug, PID: 25279 java.lang.IllegalStateException: failed to get surface at android.media.MediaRecorder.getSurface(Native Method) at com.simplemobiletools.camera.views.CameraPreview.startRecording(CameraPreview.kt:819) at com.simplemobiletools.camera.views.CameraPreview.toggleRecording(CameraPreview.kt:951) at com.simplemobiletools.camera.activities.MainActivity.handleShutter(MainActivity.kt:271) at com.simplemobiletools.camera.activities.MainActivity.shutterPressed(MainActivity.kt:262) at com.simplemobiletools.camera.activities.MainActivity.access$shutterPressed(MainActivity.kt:30) at com.simplemobiletools.camera.activities.MainActivity$initButtons$4.onClick(MainActivity.kt:221) at android.view.View.performClick(View.java:6261) at android.view.View$PerformClick.run(View.java:23752) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6776) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1518) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)

fahime-ghasemi avatar Oct 29 '18 09:10 fahime-ghasemi

hm ok, sadly I cannot reproduce the issue on any of my devices, will try it again someday

tibbi avatar Oct 29 '18 10:10 tibbi

I have exactly the same issue with SimpleCamera 5.0.1 on Android 8.0

ghost avatar Jun 22 '19 16:06 ghost

camera has been rewritten from scratch in 5.4.0, so Im closing this

tibbi avatar Oct 15 '22 18:10 tibbi