Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash the moment i click record #30

Open
jeffreyliu8 opened this issue Sep 22, 2023 · 0 comments
Open

Crash the moment i click record #30

jeffreyliu8 opened this issue Sep 22, 2023 · 0 comments

Comments

@jeffreyliu8
Copy link

jeffreyliu8 commented Sep 22, 2023

FATAL EXCEPTION: main
Process: com.example.android.opengl, PID: 32096
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.MediaRecorder.start()' on a null object reference
at com.uncorkedstudios.android.view.recordablesurfaceview.RecordableSurfaceView.startRecording(RecordableSurfaceView.java:364)

and it was because prepare failed:

Couldn't re-init recording
java.io.IOException: prepare failed.
at android.media.MediaRecorder._prepare(Native Method)
at android.media.MediaRecorder.prepare(MediaRecorder.java:1320)
at com.uncorkedstudios.android.view.recordablesurfaceview.RecordableSurfaceView.initRecorder(RecordableSurfaceView.java:350)
at com.uncorkedstudios.android.view.recordablesurfaceview.RecordableSurfaceView.initRecorder(RecordableSurfaceView.java:289)
at com.example.android.opengl.OpenGLES20Activity.onResume(OpenGLES20Activity.java:88)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1603)
at android.app.Activity.performResume(Activity.java:8743)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant