Skip to content
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

[Web] Returned blob url directs to home page #436

Open
bloemy7 opened this issue Nov 18, 2024 · 0 comments
Open

[Web] Returned blob url directs to home page #436

bloemy7 opened this issue Nov 18, 2024 · 0 comments

Comments

@bloemy7
Copy link

bloemy7 commented Nov 18, 2024

5.2.0

Environment

  • OS: all
  • Browser: all

Describe the bug

In some edge cases, on web, the blob returned by stop recorder basically just redirects to the home page of my flutter app, and thus when I try to retrieve the .opus file from there, it's actually just html code.

To Reproduce

Unfortunately I have no exact reproduction steps. This happens in about ~5% of my users in production, at rather large scale. I have been unable to find any pattern on what users/browser/devices this is happening on. The only common issue is what is described above.

Expected behavior

I would expect the returned blob to point to a valid .opus file

Additional context

Setup is very standard. Wondering if this can be linked to some weird garbage collection edge case? In media_recorder_delegate.dart, in _onStop(), we first call await _reset() before returning the URL through the completer. The reset method empties the chunks, which is what the blob is created from, but nothing is retaining the blob or the URL created from it. This is pure speculation - just wondering if that might play a role here in race conditions in low memory environments?

Thanks for any help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant