question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG]: IOS can't register flutterSoundPlayerManager or flutterSoundRecorderManager

See original GitHub issue

Flutter Sound Version : ^7.7.0+1

  • FULL or LITE flavor ? FULL

  • Important: Result of the command : flutter pub deps | grep flutter_sound

image


Severity

Crash ? It crashes every time I try to initialize player or recorder. In the console is being triggered the follow messages:

  • ERROR during registerWithRegistrar: flutterSoundPlayerManager != nil
  • ERROR during registerWithRegistrar: flutterSoundRecorderManager != nil

Platforms you faced the error

  • iOS ? It happens on iOS Emulator

Describe the bug It is failing at registering the plugin for ios, it gets the follow messages in console: ERROR during registerWithRegistrar: flutterSoundPlayerManager != nil ERROR during registerWithRegistrar: flutterSoundRecorderManager != nil

The app builds and runs well, but when I try to initialize the player or the recorder, it crashes.

Logs!!!

(This is very important. Most of the time we cannot do anything if we do not have information on your bug) At the beginning it throws the follow messages:

  • ERROR during registerWithRegistrar: flutterSoundPlayerManager != nil
  • ERROR during registerWithRegistrar: flutterSoundRecorderManager != nil

When I try to initialize the recorder or player it throws:

  • flutter: FS:—> openAudioSession
  • flutter: —> openAudioSession
  • flutter: Resetting flutter_sound Recorder Plugin
  • @resetPlugin
  • iOS: —> resetPlugin
  • iOS: <— resetPlugin

Then It crashes

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
aavgeencommented, May 8, 2021

I am getting the same logs:

flutter: FS:—> openAudioSession flutter: —> openAudioSession flutter: Resetting flutter_sound Recorder Plugin @resetPlugin iOS: —> resetPlugin iOS: <— resetPlugin

As soon as it hits the line

await _mRecorder.openAudioSession();

I followed the simple_recorder.dart example in ^7.7.0.

0reactions
Larpouxcommented, May 22, 2021

Flutter Sound 8.1.4 is released and integrates a Pull Request kindly provided by @touficzayed .

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] Recorder not working · Issue #517 - GitHub
Flutter Sound Recorder started and not null and behaves as expected on iOS simulator. ... Managing asynchronous processing is really tough.
Read more >
flutter_sound | Flutter Package - Pub.dev
iOS ; Flutter Web. Flutter Sound provides both a high level API and widgets for: play audio; record audio. Flutter Sound can be ......
Read more >
Audio recording works on iOS emulator but not on the actual ...
I asked the flutter-sound author on github already, but it seems he doesn't really know what's wrong either, and the fact that it...
Read more >
Creating a Flutter audio player and recorder app
Recording audio has become a vastly used feature of many modern apps. From apps created to help users record and take notes during...
Read more >
A Complete Api for Audio Playback and Recording with Flutter
Flutter Sound is a Flutter package allowing you to play and record audio for : Android; iOS; Flutter Web. Maybe, one day, we...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found