2d-inc / Flare-JS

Flare Javascript ES6 runtime with Canvas rendering.

Home Page:https://flare.rive.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught RangeError when running the example

quinlo opened this issue · comments

Similar to issue #12 I am getting the following error when trying to run the example:

BinaryReader.js:53 Uncaught RangeError: Offset is outside the bounds of the DataView
    at DataView.getFloat32 (<anonymous>)
    at BinaryReader.readFloat32Array (BinaryReader.js:53)
    at _ReadActorPath (ActorLoader.js:1304)
    at _ReadComponentsBlock (ActorLoader.js:189)
    at _ReadActorArtboard (ActorLoader.js:754)
    at _ReadArtboardsBlock (ActorLoader.js:683)
    at _ReadActor (ActorLoader.js:715)
    at FileReader.fileReader.onload (ActorLoader.js:1437)

The updated CanvasKit didn't seem to do the trick for me.

Thanks for reporting this!
I updated the repo with the correct file, let me know if this fixes it for you!

Sorry for the delay in responding here. I pulled down your change and everything is working! Thank you for the quick fix.