godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89k stars 20.18k forks source link

Tab crashes when using "Performance" debugger in Chrome #95032

Open bypie5 opened 1 month ago

bypie5 commented 1 month ago

Tested versions

System information

Godot v4.3.rc (2f2d1a7e6) - macOS 14.5.0 - GLES3 (Compatibility) - Apple M2 - Apple M2 (8 Threads)

Issue description

When using the "Performance" tool in Chrome to create a recording, the running game will crash after stoping the recording:

Screenshot 2024-08-01 at 10 58 31 AM

Note, I have only tested on Chrome.

It seems like the crash does not happen for all web games. Consider the following example projects that I tested on my system:

Steps to reproduce

  1. Open a game exported for web in a new browser tab (I have only tested Chrome)
  2. With the game running, open up the Performance tool and start a new recording
  3. Stop the recording (the length of the recording doesn't seem to matter)
  4. Observe the crash

Minimal reproduction project (MRP)

Exporting an empty project for web will cause this issue.

bypie5 commented 4 weeks ago

I just noticed that disabling "javascript samples" while recording performance does not make the tab crash:

Screenshot 2024-08-19 at 10 19 16 PM

Perhaps this points to the crash being related to resource usage?

Note that turning on this setting limits information we are able to inspect about the web workers.