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

Package: 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 (14)

  1. 774f2ac17af6b8d849ff4ea51ff923e9?d=mm

    h1x

    Nov 25, 2021 04:42

    Had same issue in 2020.3.22f1. PEACH_BLITZ's workaround fixed the issue.

  2. 00eca8149e7d7663276338e4c8bc882b?d=mm

    bigbrainz

    Mar 23, 2021 15:30

    Bug still present in 2019.4.22, but PEACH_BLITZ's clamp fix worked for us.

  3. 845e1b37e16bbe02701316e6d1b70ab1?d=mm

    unity_8wwIqbAQy-sARQ

    Mar 16, 2021 16:00

    Had the same issue. Changing the webGLEmscriptenArgs value as mentioned bellow has fixxed it for me

  4. 3952b46bd0ead9218fb52b424cdbe8f0?d=mm

    4ipideil

    Mar 11, 2021 11:55

    and im using Unity 2020.2.7f1

  5. 3952b46bd0ead9218fb52b424cdbe8f0?d=mm

    4ipideil

    Mar 11, 2021 11:55

    same for me!

  6. D676516e4e3686ace1f0ff175b310776?d=mm

    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

  7. 00eca8149e7d7663276338e4c8bc882b?d=mm

    bigbrainz

    Oct 16, 2020 00:01

    This is marked as fixed, but I'm getting it in 2019.4.12

  8. B909482574262798098a3f7f386e036a?d=mm

    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.

  9. 7b0d84d83fa52fe3454e9f7b16c43760?d=mm

    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!

  10. 327363147c3028362d3476633a7177b2?d=mm

    Braza

    Jul 05, 2020 18:45

    Facing this on 2019.4.1f1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.