goldfire / howler.js

Javascript audio library for the modern web.
https://howlerjs.com
MIT License
23.29k stars 2.21k forks source link

keep crash on Safari 17.5 beta #1714

Closed RayJi0428 closed 2 months ago

RayJi0428 commented 2 months ago

The Problem

Hi, I use iOS 17.5 beta + Safari easily get crash when play multiple times, but it's fine with iOS 17.4, any idea?

Reproducible Example

https://rayji0428.github.io/demo/howler/index.html

Reproduction Steps

play sound with multiple times will crash, i thought there's something wrong with release audio buffer.

Possible Solution

No response

Context

No response

Howler.js Version

v2.2.4

Affected Browser(s)/Versiuon(s)

Safari 17.5 beta

macguffin commented 2 months ago

Hi I don't use howler but have also found this issue when using soundjs with an audio sprite. Looks like there is something going on with the webAudio garbage collection.

I am going to report this to webkit - would you be able to keep your link up as I will reference it in the ticket.

Here is the line to the webkit ticket: https://bugs.webkit.org/show_bug.cgi?id=273041

if anyone from Howler has any further info on this Thanks

RayJi0428 commented 2 months ago

Thanks for your reply. We also reported the issue to Apple on the forums. We hope you can provide feedback as well. https://forums.developer.apple.com/forums/thread/749588?page=1#784728022

Now we tried to separate the audiosprite into multiple single files and decrease the audio playtimes. This can expand the running time. Besides, it works fine with the CocosCreator audio system. We haven't found out what the difference between them is yet. here's CocosCreaor demo: https://rayji0428.github.io/demo/cocos/index.html

hope these are helpful for you.

RayJi0428 commented 2 months ago

https://bugs.webkit.org/show_bug.cgi?id=273041 It's fixed in iOS 17.5 beta 3. Thanks to Apple and @macguffin !