-
Notifications
You must be signed in to change notification settings - Fork 202
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
Calling operations on AudioRecorder
in quick succession results in a crash
#249
Comments
I have a similar issue, may be connected to it? PlatformException(record, Encoder is not started, null, null) |
Thanks for the report. @eugenioadapta This is not the same issue. Please fill another one for this with a reproducer. |
Oh, this all makes sense then. I've left a 👍 reaction on the Flutter issue, as they use that as one signal when prioritizing issues. For anyone else encountering this issue, I recommend that you also add a 👍 to flutter/flutter#134346. |
same for me |
@andrewkolos I answered too quickly to this issue. |
I'm getting the same stack trace as yours |
Hello, thanks for creating and sharing this package. I am considering using it for a Windows Flutter app where the user may start a recording, but may need to restart it within a fraction of a second. This seems to risk crashing the app.
I am happy to provide more details upon request.
Package version: 5.0.1
Environment
Windows 11 Pro
Version 22H2 (OS Build 22621.2715)
output from "flutter doctor -v"
To Reproduce
Repro project: https://github.com/andrewkolos/_repro_start_and_stop_record/tree/main/249_start_and_stop_crash
AudioRecorder
.isRecording
on the object.await
this to wait for the operation to complete.start
.Here is a snippet from the aforementioned repro project that causes this crash;
Here is the output from me running this snippet:
output
Expected behavior
The code would run without issue, as all
AudioRecorder
operations are awaited.The text was updated successfully, but these errors were encountered: