Search Unity

Float unpresentable in integer range?

Discussion in 'Web' started by mikelowefedex, Nov 5, 2020.

  1. mikelowefedex

    mikelowefedex

    Joined:
    Sep 29, 2020
    Posts:
    139
    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...

     
  2. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    953
    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.
     
  3. mikelowefedex

    mikelowefedex

    Joined:
    Sep 29, 2020
    Posts:
    139
    Thank you.
     
  4. skwsk8

    skwsk8

    Joined:
    Jul 6, 2014
    Posts:
    35
    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)