Skip to content

Stuttering audio on Chrome 89.0+ (upstream Chrome regression in ScriptProcessorNode) #47453

Open
@akien-mga

Description

@akien-mga

Godot version:
3.2.3 stable, 3.3 RC 6
Not a Godot regression, it's a Chrome update that triggered the issue for pre-existing builds which worked fine.

OS/device including version:
Windows 10 Home Build 19042
Mageia 9 x86_64 as of March 29

Affected browser versions:

Issue description:
Since Chrome 89.0.4389.90 (possibly older 89.0.x builds too), there's severe audio stuttering in most Godot web exports when playing music.
This appears to be a Chrome regression as the same exports were working fine prior to a recent update.

This is likely this upstream bug report: https://bugs.chromium.org/p/chromium/issues/detail?id=1187016
Which is the consequence of security fixes in ScriptProcessorNode.

The upstream bug report is supposed to have been fixed a few days ago in Chrome Canary, but I could still reproduce it with @3p0ch-NG's reproduction project. I'll report it upstream. Edit: Done: https://bugs.chromium.org/p/chromium/issues/detail?id=1187016#c66

Edit 2: New upstream issue: https://bugs.chromium.org/p/chromium/issues/detail?id=1193494

(Moved this report from #43210 (comment) which is a different issue from what #43210 initially handled.
CC @rcbotCheeseh @CedLec @3p0ch-NG who initially commented on that other issue.)

Steps to reproduce:

  • This test project can be used to reproduce the issue: https://www.newgrounds.com/portal/view/project/1594770
    There should be significant stuttering at the start and possibly throughout the whole playback (though I've also had times where it didn't stutter reliably).
  • Make sure to click the game window to start the audio playback, as per browser policy.

Minimal reproduction project:
https://www.newgrounds.com/portal/view/project/1594770

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions