Leonidius20 / RecordingStudio

Audio recorder app for Android
GNU General Public License v3.0
95 stars 4 forks source link

App crashes when attempting to record into ogg vorbis #2

Closed pvagner closed 2 months ago

pvagner commented 2 months ago

Steps

Actual

The app crashes

Expected

Recording into ogg vorbis should be possible.

Crash and device data

Build version: 0.1.0 Current date: 2024-09-08 19:22:33 Device: Samsung SM-A546B OS version: Android 14 (SDK 34)

Stack trace:
java.lang.RuntimeException: Unable to start service io.github.leonidius20.recorder.data.recorder.RecorderService@6684ec4 with Intent { cmp=io.github.leonidius20.recorder.lite/io.github.leonidius20.recorder.data.recorder.RecorderService }: java.lang.RuntimeException: start failed. at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5286) at android.app.ActivityThread.-$$Nest$mhandleServiceArgs(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2531) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:230) at android.os.Looper.loop(Looper.java:319) at android.app.ActivityThread.main(ActivityThread.java:8893) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103) Caused by: java.lang.RuntimeException: start failed. at android.media.MediaRecorder._start(Native Method) at android.media.MediaRecorder.start(MediaRecorder.java:1591) at io.github.leonidius20.recorder.data.recorder.RecorderService.onStartCommand(SourceFile:431) at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5268) ... 9 more

Leonidius20 commented 2 months ago

Hello and thank you for reporting this issue! as it turned out during my investigation, Android does not support encoding Vorbis, at least without any 3rd party libraries. I will remove this option in a future version.

pvagner commented 2 months ago

Thanks for investigating and explaining this. I understand.