2d-inc / Flare-JS

Flare Javascript ES6 runtime with Canvas rendering.
https://flare.rive.app
MIT License
265 stars 59 forks source link

Uncaught RangeError when running the example #15

Closed quinlo closed 5 years ago

quinlo commented 5 years ago

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.

umberto-sonnino commented 5 years ago

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

quinlo commented 5 years ago

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