Search Issue Tracker
Fixed in 2.0.0-preview.13
Votes
6
Found in [Package]
2018.4
2019.3
2019.3.3f1
2020.1
2020.2
Issue ID
1225060
Regression
No
[WebGL] [SVG] "Runtime error: float unrepresentable in integer range" is thrown on WebGL builds when using Vector Graphics
Reproduction steps:
1. Open the user's attached project ("VectorGraphicsBugReport.zip")
2. Open the repro scene ("SampleScene")
3. Enter Play Mode and notice the "UnityEngine.Vector2[]" log
4. Exit Play Mode
5. Make a WebGL (development) build and run it
Expected result: Build launches without errors
Actual result: Build crashes with "Runtime error: float unrepresentable in integer range" errors
Reproducible with: 2018.4.19f1, 2019.3.6f1, 2020.1.0b2, 2020.2.0a4
Couldn't test with: 2017.4 (SVG package is not supported)
Reproducible with package versions: 1.0.0-preview.19, 1.0.0-preview.34, 2.0.0-preview.6, 2.0.0-preview.12
Tested with: Chrome (80.0.3987.149), Firefox (74.0), Edge (80.0.361.69)
Notes:
1. On 2018.4, 2019.3 streams, the issue only reproduces on development builds
2. On 2020.1, 2020.2 streams, the issue reproduces with both development and release builds
3. Additionally, this error is also thrown: "An abnormal situation has occurred: the PlayerLoop internal function has been called recursively. Please contact Customer Support with a sample project so that we can reproduce the problem and troubleshoot it."
Comments (15)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
Nicolas_Castagnola
Jul 26, 2022 14:21
Bug still present in 2020.3.36f1 but with the package Unity UI Builder (1.0.0-preview.16).
PEACH_BLITZ's clamp fix worked!
h1x
Nov 25, 2021 04:42
Had same issue in 2020.3.22f1. PEACH_BLITZ's workaround fixed the issue.
bigbrainz
Mar 23, 2021 15:30
Bug still present in 2019.4.22, but PEACH_BLITZ's clamp fix worked for us.
unity_8wwIqbAQy-sARQ
Mar 16, 2021 16:00
Had the same issue. Changing the webGLEmscriptenArgs value as mentioned bellow has fixxed it for me
4ipideil
Mar 11, 2021 11:55
and im using Unity 2020.2.7f1
4ipideil
Mar 11, 2021 11:55
same for me!
Triplefun-Damian
Dec 04, 2020 08:56
Can confirm that this is present un 2020.1.8f1. RMP2177's solution to modify the webGLEmscriptenArgs works
bigbrainz
Oct 16, 2020 00:01
This is marked as fixed, but I'm getting it in 2019.4.12
AndyDBell
Sep 01, 2020 09:17
Same for me as well. Unity 2020.1.3f1 Vector Graphics 2.0.0-Preview.12. Crashes.
Only occurs on more complex SVG's
SVGParser.ImportSVG succeeds
VectorUtils.TessellateScene fails
exception thrown: RuntimeError: float unrepresentable in integer range
Followed by: An abnormal situation has occurred: the PlayerLoop internal function has been called recursively.
SaraKind
Aug 12, 2020 11:38
I have the same issue in Unity 2020.1.1f1, although I'm not using Vector Graphics.
RMP2177's fix worked for me. Thanks a lot!