Voice-Recorder icon indicating copy to clipboard operation
Voice-Recorder copied to clipboard

java runtime exception when pushing record 2x (too) fast

Open GuitarBilly opened this issue 1 year ago • 1 comments

Checklist

  • [X] I can reproduce the bug with the latest version given here.
  • [X] I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • [X] I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • [X] I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • [X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • [X] This issue contains only one bug.
  • [X] I have read and understood the contribution guidelines.

Affected app version

1.0.0

Affected Android/Custom ROM version

Android 7.1.2

Affected device model

Nokia 6 - TA-1033

How did you install the app?

Google Play Store

Steps to reproduce the bug

  1. select the Recorder tab
  2. press the record microphone icon twice within 1sec
  3. "java.lang.RuntimeException: stop failed" is displayed in the screen

Expected behavior

I pressed the microphone twice in user error, as I attempted to start a recording.

Not sure how you want to deal with the situation that a user start and stops a recording within the first second. That could be on purpose or not.

Actual behavior

Voice Recorder (VR) app does not crash. VR does create a 00:00 recording file but that cannot be played. If you press play on the 0sec recording VR skips to next file and plays that one instead.

Screenshots/Screen recordings

screenshot: Screenshot_20240315-074140

Additional information

00:00 recording file. remove the .MP4 from the name as GH did not allow the .m4a extention. https://github.com/FossifyOrg/Voice-Recorder/assets/38086529/cc542c7b-65d9-46f4-ba4c-c9cda167dc43

GuitarBilly avatar Mar 24 '24 12:03 GuitarBilly

I'd say in most cares people don't want to makc such short recordings, so my opinion would ée to delete every recording below 1 second. But if people are maybe too fast, or do want such a short recording for some reason, enable an option for it.

Cwpute avatar Jul 11 '24 09:07 Cwpute

It seems to only happen when using MediaRecorder i.e. when recording m4a and opus.

naveensingh avatar Jan 04 '25 13:01 naveensingh