Open JakeWharton opened 9 years ago
@JakeWharton How did you make this happen? Is this related to https://github.com/JakeWharton/Telecine/issues/6? How can I reproduce it? Have you seen this on any other devices other than the G3?
This is from Bugsnag. I have never seen this.
@JakeWharton That is what I thought. I was wondering if there were anymore details. Why do you use Bugsnag vs Google Analytics? Easier setup?
It's a vastly superior experience for integrating in the app and viewing/resolving crashes.
Alright, thanks for the fast reply.
I can confirm that. I get this error all the time and also reported it after the crash. I'm currently trying to debug RecordingSession but can't find anything suspicious. Every time recorder.stop() is called this is thrown RuntimeException: stop failed. Searching SO only reveals links to the docs stating: "Note that a RuntimeException is intentionally thrown to the application, if no valid audio/video data has been received when stop() is called."
My assumption is that the surface of which the MediaRecorder records is broken. Btw. I'm running CM12 Galaxy S3 but tested it also on a stock Nexus 7 (2012) each with Android 5 without success.
Just noticed that this bug happens on all emulators that i created, on my nexus 5 with lollipop 5.1 the code runs fine though.
I also read on SO that "RuntimeException is intentionally thrown to the application, if no valid audio/video data has been received when stop() is called" which raises the question what can be the cause of it?
@mrahbar stated that the app crashes on a nexus 7 (2012) and galaxy S3 which are outdated devices and for me it crashses on all emulator instances!
Maybe this bug happens on slower devices?
@RazorPT @mrahbar Have you guys pull the latest source and attempted to try to resolve the issue?
@jaredsburrows On emulator instances that i have tried when i tried to stop recording the first time the app crashes and then if i try to start recording sometimes the emulator will restart it self so i am not sure if it is reliable to debug on it since it seems the sdk is broken on the emulator.
I do have a samsung tablet with jelly bean that i will flash with cynogen lollipop to try to reproduce the bug i will report back once i do that.
Since my last pull the source didn't change, so I think the incompatibility remains. My recent testing still doesn't revel any more hints. A file on the sdcard is created though not readable and still the stop() issues. I have also a Samsung G4 but this is my 4.x testing device so I can't run Telecine on that. Sry can't help any further.
@mrahbar @jaredsburrows Great i just flashed my samsung tablet with cynogen 12.1 (Lollipop 5.1) and it crashes on prepare "Unable to prepare MediaRecorder" damn!
Edit: I used latest source :\
12-12 17:34:19.568 25673-25673/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.jakewharton.telecine.debug, PID: 25673
java.lang.RuntimeException: stop failed.
at android.media.MediaRecorder.stop(Native Method)
at com.jakewharton.telecine.RecordingSession.stopRecording(RecordingSession.java:269)
at com.jakewharton.telecine.RecordingSession.access$200(RecordingSession.java:57)
at com.jakewharton.telecine.RecordingSession$1.onStop(RecordingSession.java:142)
at com.jakewharton.telecine.OverlayView$4.onClick(OverlayView.java:159)
at android.view.View.performClick(View.java:4761)
at android.view.View$PerformClick.run(View.java:19767)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5310)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:117)
It crashed when i click start recording button.But....i can't reproduce it.
One fix ?