-
Notifications
You must be signed in to change notification settings - Fork 212
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
[Android] App Crashes consistently when calling stop()
#381
Comments
stop()
This should be already fixed in record_android: 1.2.5 |
I just tried record_android: 1.2.5, Now app is not crashing but getting the below exception from native platform, this happens when |
Now we are got some more crashes
@llfbandit Do you have any update on this? |
Yes :) |
Sure, will check and let you know. You can actually reproduce the issue, if you run on Android 9 Simulator |
Well I don't rely on simulators in audio recording area. Too much inconsistencies. |
Now got a new error, this happens after E/AudioRecorder(31752): Unable to instantiate PCM reader.
E/AudioRecorder(31752): java.lang.Exception: Unable to instantiate PCM reader.
E/AudioRecorder(31752): at com.llfbandit.record.record.PCMReader.createReader(PCMReader.kt:101)
E/AudioRecorder(31752): at com.llfbandit.record.record.PCMReader.<init>(PCMReader.kt:28)
E/AudioRecorder(31752): at com.llfbandit.record.record.recorder.RecordThread.startRecording$lambda$0(RecordThread.kt:92)
E/AudioRecorder(31752): at com.llfbandit.record.record.recorder.RecordThread.$r8$lambda$ldmev7sgpiaTAinIeDKedqNmCzU(Unknown Source:0)
E/AudioRecorder(31752): at com.llfbandit.record.record.recorder.RecordThread$$ExternalSyntheticLambda0.run(Unknown Source:2)
E/AudioRecorder(31752): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/AudioRecorder(31752): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/AudioRecorder(31752): at java.lang.Thread.run(Thread.java:764)
E/AudioRecorder(31752): Caused by: java.lang.IllegalArgumentException: Invalid audio buffer size 6989 (frame size 4)
E/AudioRecorder(31752): at android.media.AudioRecord.audioBuffSizeCheck(AudioRecord.java:731)
E/AudioRecorder(31752): at android.media.AudioRecord.<init>(AudioRecord.java:380)
E/AudioRecorder(31752): at android.media.AudioRecord.<init>(AudioRecord.java:284)
E/AudioRecorder(31752): at com.llfbandit.record.record.PCMReader.createReader(PCMReader.kt:93)
E/AudioRecorder(31752): ... 7 more Tested Devices
|
Argh, this has nothing to do with the current issue. You can pull again, I propagated another fix for this. |
Got this exception after pull
Tested Devices
|
I guess I finally found the bug. I also tested on Emulator with Android 9 where I reproduced the issue too. |
Yeah, Now it is working fine, thanks for your update :) |
Released in record_android 1.2.6 |
Package version
5.0.4 and above
Environment
Describe the bug
App crashes consistently when
AudioRecorder().stop()
method is called.This crash happens on Android 9 emulator and some of the real devices including
RecordConfig(encoder: AudioEncoder.aacLc, bitRate: 128000)
To Reproduce
Steps to reproduce the behavior:
start()
stop()
Expected behavior
Calling
stop()
Should stop recording and provide the recorded audio file pathAdditional context
Please find the complete log in the below file which was recorded during crash.
audio_crash_log_report.txt
The text was updated successfully, but these errors were encountered: