Float unpresentable in integer range?

Hello,
I have developed my game into WebGL. There are no errors or warnings in Unity, but, when I run my game in my browser, I get these error messages. Most of these errors appear to be in WebGL.framework.js…

This is likely due to audio pitch setting being configured to a very small or very large value.

You can disable that error being raised by adjusting WebGL Project Settings → Player → Publishing Settings → WebAssembly Arithmetic Exceptions. Change from “Throw” to “Ignore”.

Release builds always have this setting as “Ignore”, the menu option will only adjust Development builds.

5 Likes

Thank you.

Necro’ing this thread since it’s the first one that shows up on google for “RuntimeError: float unrepresentable in integer range”, and if you’ve unfortunately seen the issue in webgl browser but it won’t reproduce in editor, it’s a massive pain.
It might be from a divide by 0 error. The editor doesn’t report this error (at least in 2020.3.8f1)