Profiling WebGL application not possible

Hello,
I am currently unable to profile a WebGL application. I get profiling information for about 8 frames, but then the WebGL application shows “The message header is corrupted and for security reasons connection will be terminated.” on the development console, and the profiler does not receive data anymore. There exists already a bug report for this problem (https://issuetracker.unity3d.com/is…sons-connection-will-be-terminated-dot-errors), but that is open for several months now, with no fix in sight.

As I’m currently stuck: Are there any known reasons or workarounds to this problem, or alternative ways to profile a Unity WebGL build?

Thanks for any hints on this!

As per the last comment on that issue tracker entry, it is fixed on:
2023.1.0a4
2022.2.0b3
2022.1.12f1
2021.3.8f1

Something seems to have gone awry with the public issue tracker as the first fix had landed by end of July already.

I am still getting this issue in 2023.1.18f1. IS this being worked on? I cannot debug webgl.

@TomTheMan59 That sounds like it either re-appeared or might be a slightly different bug with the same symptom expression. Could you please file a bug for it so that the right team can check it out?

Hi sir

It appears it works on pc but not on macos. However, it works on macOS on the alpha build.

Hmm then maybe there is a bugfix for Mac on the alpha that’s not yet backported, or a feature change… If the next patch release doesn’t have it fixed on Mac, it might still be valid to file a bug report

1 Like