-
Notifications
You must be signed in to change notification settings - Fork 514
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
Crash in app using AVAudioSourceNode #19868
Comments
Please provide a complete test project we can use; your code snippet is incomplete (for instance, there's no code for the |
Hi @MortenGregersen. We have added the "need-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/xamarin/xamarin-macios/blob/main/docs/bug-repro.md This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Hi @MortenGregersen. Due to inactivity, we will be closing this issue. Please feel free to re-open this issue if the issue persists. For enhanced visibility, if over 7 days have passed, please open a new issue and link this issue there. Thank you. |
Reopening; repro project was provided privately. |
#20357) The signature of the callback provided when creating AVAudioSourceNode instances was wrong, so the callback would get corrupted data, causing crashes. Fix the callback to have the right signature (not too difficult), and also make the existing signature work (a bit more complicated). Note that this is the second time we've tried to fix the delegate signature for the AVAudioSourceNode callbacks, but now with tests, so hoping there won't be a third time. Fixes #19868.
Fixed with #20357. |
This is a follow-up on my previous issue #19634, where the sample project worked (when @rolfbjarne's permission string was added. But we have a similar issue in our MAUI app, where the app crashes when data is written to an
AVAudioSourceNode
's output buffer. From the crash log, we can't really tell, why the crash happens.Steps to Reproduce
AVAudioSourceNode
to anAVAudioEngine
mainMixerNode
AVAudioSourceNode
's output bufferExpected Behavior
Audio coming out of the speaker - and no crash.
Actual Behavior
Crash 💥
Environment
Version information
Build Logs
Buildlogs.zip
Example Project (If Possible)
The relevant code is in the "Steps to Reproduce" section above.
The text was updated successfully, but these errors were encountered: