Skip to content

Android : await recorderController.stop(); sometimes never completes #470

@Tom3652

Description

@Tom3652

Describe the bug
Since i have upgraded to 2.0.1 version, i have noticed (reproductible) that for audio recordings, when i call String? path = await recorderController.stop(); i don't see the log that is right after and the wave is not generated like frozen.
This only happens on Android, iOS works fine with the same code.

To Reproduce
Steps to reproduce the behavior:

  1. Call .record on Android (physical device)
  2. Record an audio for at least 30sec - 1min
  3. Call .stop as above
  4. Print / log the path output
  5. See that this log is never shown

Expected behavior
The method await recorderController.stop(); should complete like on version < 2.0.x on Android

Smartphone (please complete the following information):

  • Device: Motorola
  • OS: Android
  • Version : 11

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
This is reproductible no matter the size of the recording, but i think it's easier to reproduce it when the recording is large > 30 seconds.
I have customers on my live that app that have reported they have this issue with recordings less than 5sec but not all the time. However, more than 30 seconds it's almost 100% that the .stop doesn't complete.

Note : this is not device-specific since i could reproduce it with my Motorola, but my customers have Google Pixel 7, Samsung A51 for example with various Android version (11 - 14 - 15)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions