Bug 231449

Summary: REGRESSION (Safari 15): AudioContext.decodeAudioData() fails to decode MP3 on macOS 10.15 (Catalina)
Product: WebKit Reporter: aaron
Component: Web AudioAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Blocker CC: andrewmacp, ap, cdumez, chris.lowis, eric.carlson, jean-yves.avenard, jer.noble, peng.liu6, sam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: Mac (Intel)   
OS: macOS 10.15   
See Also: https://bugs.webkit.org/show_bug.cgi?id=231643
Attachments:
Description Flags
Console errors related to this issue none

aaron
Reported 2021-10-08 13:52:20 PDT
Created attachment 440667 [details] Console errors related to this issue Unity3D WebGL builds cannot play audio in Safari 15.0 on macOS 10.15.7 Errors: Unhandled Promise Rejection: EncodingError: Decoding failed Loading FSB failed for audio clip: "(name)". Reproduced on a few machines ranging from MB air 2013 to MBP 2019 Reproduced with Unity builds from Unity 2018.3, 2019.4, and 2020.3 versions Fails playing audio clips which are included in the build as well as those retrieved at runtime via Unity's www interface (XHR) Confirmed for at least MP3 format files; Mime type "audio/mpeg" This has been reproduced on our own products as well as games on simmer.io (which is a better repro as they're publicly accessible!) to pick one simmer.io game at random: https://simmer.io/@henridecamps/learn-french-rpg
Attachments
Console errors related to this issue (554.50 KB, image/png)
2021-10-08 13:52 PDT, aaron
no flags
Chris Lowis
Comment 1 2021-10-11 02:26:22 PDT
I believe this may be a more general problem with the `decodeAudioData` in Safari 15 on Catalina. To reproduce: On Safari Version 15.0 (15612.1.29.41.4, 15612) / OS X 10.15.7 (19H1323) - visit https://chinmay.audio/decodethis/ - click "test all" - observe Success Count: 48 (47.059%) / Failure Count: 54 (52.941%) - observe all `mp3` files fail to decode Expected behaviour On Safari Version 13.1.2 / OS X 10.15 (tested using browserstack) - Success Count: 92 / Failure count: 10 - Only `ogg` file types fail to decode (as expected on this browser/os combination)
Andrew MacPherson
Comment 2 2021-10-11 02:27:32 PDT
Also running into this here, Safari 15 on OSX 10.15 is unable to decode mp3 files. Previous version of Safari on 10.15 was fine and Safari 15 on OSX 11.6 is also able to decode mp3.
Alexey Proskuryakov
Comment 3 2021-10-11 09:50:54 PDT
I cannot reproduces this using Safari 15.1 with macOS 12 beta. Success rate is 90.196%. Could you please try Safari 15.1 beta?
aaron
Comment 4 2021-10-11 10:15:11 PDT
I can reproduce in Safari 15.1 beta on macOS 10.15.7
Radar WebKit Bug Importer
Comment 5 2021-10-11 11:57:20 PDT
Chris Lowis
Comment 6 2021-10-12 03:45:48 PDT
I think a better title for this bug might be something like: "AudioContext.decodeAudioData fails to decode MP3 in Safari 15 on macOS 10.15.7" as it now seems to be wider-reaching than just Unity WebGL.
Chris Dumez
Comment 7 2021-10-12 09:34:03 PDT
(In reply to Alexey Proskuryakov from comment #3) > I cannot reproduces this using Safari 15.1 with macOS 12 beta. Success rate > is 90.196%. Could you please try Safari 15.1 beta? I am also unable to reproduce on macOS 12 beta. It seems this bug is specific to down level: Safari 15.x on Mac OS 10.15.x (Catalina).
Chris Dumez
Comment 8 2021-10-12 09:38:46 PDT
Looks like Jean-Yves made significant changes to AudioFileReaderCocoa recently, this may be fallout from that work.
Jean-Yves Avenard [:jya]
Comment 9 2021-10-12 14:29:05 PDT
(In reply to Chris Dumez from comment #8) > Looks like Jean-Yves made significant changes to AudioFileReaderCocoa > recently, this may be fallout from that work. there's been no change to the mp3 side of things (it's all using ExtAudioFile suite) other than ensuring the number of frames out was correct. this is a sandbox issue. same as bug 230974 *** This bug has been marked as a duplicate of bug 230974 ***
sam
Comment 10 2021-12-28 22:04:20 PST
What exact version of Safari is this fixed in? 15.2?
Note You need to log in before you can comment on or make changes to this bug.