-
Notifications
You must be signed in to change notification settings - Fork 524
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
AUGraphStop crashes right after stream ending (iOS 14 only bug) #453
Comments
Only happen on simulator, not on device, right? |
Unfortunately not :( On simulator I have a problem simillar to #451. |
I forgot I had the same issue. This is what i did:
|
I don't have any call for this delegate method, seems useless to me :( |
So you can use a category (extension) I wrote in the past (see #398), to get notified. STKAutoRecoveringHTTPDataSource+PBPrivate.zip Import STKAutoRecoveringHTTPDataSource+PBPrivate.h in your Bridging-Header.h And for example:
|
Hello, have you found a solution? |
Yes, see my reply above. |
Could you update your adjustments to Git? |
No, I wrote this category for my own use. I am neither the owner nor a contributor of this repo. |
You can submit a PR if you want... |
I tried. In ios14 beta, it still crashes after the audio play end. |
Have you implemented the delegate function and called audioPlayer.stop()? |
Thank you for your reply. I wrote a demo that you can try on the device. Only happen on device , on ios14. |
I have updated Xcode beta 4 to Xcode beta 5 just before reading your comment. Your sample does not crash. Could you check with Xcode beta 5? |
Since Xcode12 is still in beta, So I packaged it with Xcode11.5. I compiled with Xcode11.5, exported the IPA package, installed it on an ios14beta device, and the crash occurred. |
Thank you very much for your help. I have solved the problem for the time being, In this method: I have modified :
} Thank you again. |
Hello. Seems like this problem appear (on iOS14) because
But not 100% sure about it. Will glad to hear any improvements/suggestions |
Thank a much for your help, guys. But as I see now, in beta 5 this problem disappeared. Check this please, and I probably will close the issue. |
Unfortunately, while this change fixes the crash, it causes playback to not finish properly. |
[self processFinishPlayingIfAnyAndPlayingNext:entry withNext:next]; 也放进了block里,不然会有stopReason不准的问题
|
|
16.3.1 (20D67) happened |
因为线上持续有这个问题,我今天刚好测试了下,只要长时间播放,不一会就会遇到 |
不想fork维护,目前通过pod hook修改了源码观察 |
While adopting my app to new iOS 14, I faced a bug that StreamingKit crashes at
stopAudioUnitWithReason
method instatus = AUGraphStop(audioGraph)
line.This happens only after music file ends playing, with reason == STKAudioPlayerStopReasonEof. Frequency of crash = 100%.
Also, no description of this problem was provided by Xcode.
How can this be fixed? This is a very serious issue.
The text was updated successfully, but these errors were encountered: