[BUG]: App crashes on iOS when using just_audio before tau and stream_loop
See original GitHub issueFlutter Sound Version :
-
FULL or LITE flavor ?
-
FULL
-
Important: Result of the command :
flutter pub deps | grep flutter_sound
-
|-- flutter_sound 8.3.12 | |-- flutter_sound_platform_interface 8.3.12 | |-- flutter_sound_web 8.3.12 | | |-- flutter_sound_platform_interface…
Severity
- Crash ?
Platforms you faced the error
-
iOS ?
-
Real device ?
Describe the bug A clear and concise description of what the bug is.
Code: https://github.com/Canardoux/tau/blob/master/flutter_sound/example/lib/streamLoop/stream_loop.dart
Works fine at the beginning. But when playing audio data with another package (eg just_audio), and then want to use the stream loop again, the app crashes.
Reproduce:
Install Example, add just_audio, use the stream loop, stop stream loop, play audio via just_audio, start stream_loop => crash
Logs!!!
[aurioc] AURemoteIO.cpp:1097:Initialize: failed: -10851 (enable 1, outf< 2 ch, 0 Hz, Float32, non-inter> inf< 2 ch, 0 Hz, Float32, non-inter>) [avae] AVAEInternal.h:76 required condition is false: [AVAEGraphNode.mm:823:CreateRecordingTap: (IsFormatSampleRateAndChannelCountValid(format))] *** Terminating app due to uncaught exception ‘com.apple.coreaudio.avfaudio’, reason: ‘required condition is false: IsFormatSampleRateAndChannelCountValid(format)’ *** First throw call stack: (0x196f5b708 0x1aba657a8 0x196e5d3b8 0x1e29d8d2c 0x1e2a3c428 0x1e2a22eb0 0x1e2aa5c08 0x1e2a863c8 0x1028eb898 0x1028ec198 0x1028ea3cc 0x10043b250 0x10043c998 0x102e61898 0x1029adfa0 0x102cb9690 0x102c5e43c 0x102c61a34 0x196ed61d4 0x196ed5dd0 0x196ed5220 0x196ecefd4 0x196ece308 0x1ae551734 0x19994c75c 0x199951fcc 0x100210c74 0x196b8acf8) libc++abi: terminating with uncaught exception of type NSException
- thread #1, queue = ‘com.apple.main-thread’, stop reason = signal SIGABRT
frame #0: 0x00000001c4aab334 libsystem_kernel.dylib
__pthread_kill + 8 libsystem_kernel.dylib
__pthread_kill: -> 0x1c4aab334 <+8>: b.lo 0x1c4aab354 ; <+40> 0x1c4aab338 <+12>: pacibsp 0x1c4aab33c <+16>: stp x29, x30, [sp, #-0x10]! 0x1c4aab340 <+20>: mov x29, sp Target 0: (Runner) stopped. Lost connection to device. Exited (sigterm)
I think that the other audio package overrides some configuration (Float32, channels) - so maybe it can be fixed with setting up these correctly again when initializing the package?
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top GitHub Comments
Hi @t-kietzmann ,
I cannot reproduce the bug on the future Tau Sound V9.0 . I am not aware to have fixed anything in this area, so it is possible that the bug still exists, but not in my configuration test.
Tau Sound V9 is not ready for a release. Even beta. There is a new API which is not stable and I did not wrote the documentation.
Of course, you can do some tests if you are courageous but it will not be easy without documentation. The source of the V9 fork is on github, and there is a submodule : tau_native. My test app is here
The plugin name is “tau_sound” (and not “flutter_sound”) The two classes are “TauPlayer” and “TauRecorder”. Also, be aware that tau_sound is under the GPL license and not anymore LGPL.
Hi @t-kietzmann ,
You are right. I get the same error when I follow your steps. There is something wrong somewhere. I am going to debug that. Thank you for your Problem Report