Canardoux / flutter_sound

Flutter plugin for sound. Audio recorder and player.
Mozilla Public License 2.0
849 stars 553 forks source link

[BUG]: soundEffect example Crash #1002

Closed shellus closed 3 months ago

shellus commented 6 months ago

Flutter Sound Version : 9.2.13

├── flutter_sound 9.2.13
│   ├── flutter_sound_platform_interface 9.2.13
│   ├── flutter_sound_web 9.2.13
│   │   ├── flutter_sound_platform_interface...

Severity


Platforms you faced the error


Describe the bug

    print('exec startPlayerFromStream()');
    await _mPlayer!.startPlayerFromStream(
      codec: Codec.pcm16,
      numChannels: _tNumChannels,
      sampleRate: _tSampleRate,
    );
    print('startPlayerFromStream() OK');

The log shows 'exec startPlayerFromStream()', followed by an error message, and then there is no 'startPlayerFromStream() OK'.

To Reproduce Steps to reproduce the behavior:

  1. Crashes immediately after starting the APP

Logs!!!!

[avae]            AVAEInternal.h:76    required condition is false: [AVAudioBuffer.mm:286:-[AVAudioPCMBuffer initWithPCMFormat:frameCapacity:]: (isPCMFormat(fmt))]
*** Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is false: isPCMFormat(fmt)'
*** First throw call stack:
(0x1cfb9ce38 0x1c8d338d8 0x1cfd097e4 0x1e6699490 0x1e671d4b0 0x104217f14 0x1042178d4 0x104214fbc 0x104038150 0x10403a0e8 0x1075ad374 0x107009488 0x1d71b3460 0x1d71b4f88 0x1d71c37f4 0x1d71c3444 0x1cfc2d6c8 0x1cfc0f02c 0x1cfc13eb0 0x209e09368 0x1d2109668 0x1d21092cc 0x10402e0fc 0x1ee50c960)
libc++abi: terminating with uncaught exception of type NSException
Syncing files to device iPhone13...                                123ms
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x000000020d6b7674 libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`:
->  0x20d6b7674 <+8>:  b.lo   0x20d6b7694               ; <+40>
    0x20d6b7678 <+12>: pacibsp 
    0x20d6b767c <+16>: stp    x29, x30, [sp, #-0x10]!
    0x20d6b7680 <+20>: mov    x29, sp
Target 0: (Runner) stopped.

github-actions[bot] commented 3 months ago

This issue is stale because it has been open 365 days with no activity. Leave a comment or this will be closed in 7 days.