-
Notifications
You must be signed in to change notification settings - Fork 27
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
Recordings are not as long as they should be #81
Comments
@naveensingh urgent attention required. this bug is very bad. |
I figured it out, if the recording is ever paused it saves. Everything after the pause isn't recorded |
Incorrect, sorry I assumed this was it. |
|
20 bucks says it's MP3. |
yes mp3 |
mp3 and no |
in my opinion, you should release an update immediately which is just version 1.0.0 until this is fixed. people have this app attached to obtainium and it will auto update. i know this is an embarrassing thing to do but this is a de facto silent permanent file destroyer and a lot of people are losing extremely important recordings every moment this isnt patched and i can easily see them abandoning this project permanently because of it in upset. it also gives time to work on #80 |
It happens on version 1.0.0 as well, the bug has always been there. Here's how to reproduce:
|
then thats it because thats what i did |
what format should i use and should i go back to the previous version |
M4A should work fine. MP3 might work properly on the previous version if you don't change the recordings folder. This bug is there in the last simple version as well. |
can i get mp3 working fine on this version then or no? |
does opus work on this version? |
I'm working on it. If you absolutely need MP3 working now, use the "Keep screen on" option and keep the app in foreground.
Yes. |
does opus work in the last version, i am migrating back to it if so due to #83 FossifyOrg/Commons#52 (comment) |
Last I checked, it was working. |
i mean version 1.0.0, i'll have to migrate back until the data format thing is changed |
Yeah, I checked again on 1.0.0, only MP3 is broken. I have marked MP3 format as experimental until it is fixed properly:
|
for 1.1.1, you should make a notification in the app telling people that mp3 is experimental, not just changing the string of text |
could you classify 1.1.0 as a pre-release and mention in its release notes that mp3 is broken |
How would that help if this bug (among others) is also there in 1.0.0? |
i guess in an ideal world we'd classify both as pre releases but theyre the only releases besides the string patch |
It turns out, the recording file's descriptor lifecycle was not handled properly so it was being invalidated prematurely. This is only reproducible on Android 11 and above because the code assumes direct file access on Android 8, 9 and 10. This was less noticeable on version 1.0.0 because storage access framework wasn't used until you change the recordings folder. Still, I just don't know how this was never reported because the faulty code has been there since the (real) MP3 support was added. Anyway, here's a test APK: voicerecorder-4-foss-release.apk.zip (remove the This APK basically has the following change: val fileDescriptor = ParcelFileDescriptor.dup(originalFileDescriptor)
originalFileDescriptor.close()
// continue using fileDescriptor |
In an ideal world, you wouldn't need Fossify ;) |
Maybe it was reported: SimpleMobileTools/Simple-Voice-Recorder#185 |
Checklist
Affected app version
1.1.0
Affected Android/Custom ROM version
GrapheneOS
Affected device model
Pixel 6a
How did you install the app?
GitHub releases
Steps to reproduce the bug
This bug went unnotived because I couldn't see playback due to the other bug. This app does not save data correctly and there needs to be a warning put out.
Expected behavior
For the app to properly save data
Actual behavior
Files saved at six seconds
Screenshots/Screen recordings
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: