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]: App crashes on iOS when using just_audio before tau and stream_loop

See original GitHub issue

Flutter 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:open
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
Larpouxcommented, Sep 28, 2021

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.

1reaction
Larpouxcommented, Sep 14, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

In iOS 15, when the app is restarted, it immediately crashes.
After the iOS 15 update, the following process causes the app to die. Go to the home screen while running the app; Completely...
Read more >
How to Fix Crashing Apps on an iPhone or Android?
Fix App Crashes on your Apple iPhone or Android smartphone. Kill the App; Restart the Phone; Update the App; Official Support; Use Bugfender!...
Read more >
Crashes & Audio Playback Limitations - forScore
Crashes & Audio Playback Limitations. This page concerns a specific, ongoing issue for users running iOS 13.4 or later and iPadOS 13.4 or...
Read more >
iOS 16 beta bug: Apple Music app crashes in playing Hi-Res ...
go into settings and scroll until you see apple music. then go to audio streaming quality or a setting like that and switch...
Read more >
VoiceOver Bug in iOS 16.0 That causes Routine ... - AppleVis
Since updating to iOS16.0, I've encountered a bug in voiceover that causes it to repeatedly crash and reopen itself if it thinks the...
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