Skip to content

Godot 4 Beta 17: Browser freezes for minutes when loading a web-exported Godot project in Chrome on macOS #72584

Closed as not planned
@konstantinkopka

Description

@konstantinkopka

Godot version

v4.0-beta17 c400205

System information

Windows 10, GLES3, Chrome Version 109.0.5414.120 (Official Build) (64-bit)

Issue description

When uploading a new project without any content (I tried a simple scene with one 2D sprite and the Godot log graphic), and exporting this as a WebGL build, then loading it on e.g. itch.io, the entire browser freezes on macOS.

On itch.io the setting for SharedArrayBuffer is set, otherwise the project will not even load and shows this error

When loading the project, the Chrome console output shows this error:
Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-on-the-main-browser-thread onPrintError @ index.js:13991

The error appears, then the entire tab and the rest of the browser freezes completely and becomes unresponsive for about 1-2 minutes.

After the freeze, the game seems to run again, normally.

Important: This freeze only happens on Chrome on my Macbook Pro, running the latest macOS Ventura 13.2 and the latest version of Chrome.

The freezes happens for a very short amount of time on my Windows PC as well, but it's not that noticeable.

Steps to reproduce

  • Create a new Godot 4 project with the latest beta 17, either on macOS or on Windows 10 (tested both).
  • Add a main scene and a single 2d sprite node in the middle of the screen, just for testing purposes.
  • Export the project with the default web export settings
  • Upload the project to itch.io and load it
  • Encounter the freeze

Minimal reproduction project

This can be reproduced by playing it here: https://ghostbutter.itch.io/test-godot-freeze?secret=wK5roG3DyBXpWjStHef5yf98

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions