LottieFiles / dotlottie-web

Official LottieFiles player for rendering Lottie and dotLottie animations in the web. Supports React, Vue, Svelte, SolidJS and Web Components.
https://developers.lottiefiles.com/docs/dotlottie-player/
MIT License
191 stars 11 forks source link

RuntimeError: memory access out of bounds #328

Closed glucka closed 1 month ago

glucka commented 3 months ago

On Chrome 127.0.6533.99 Ubuntu 22.04 "@lottiefiles/dotlottie-web": "^0.30.3" hero.lottie.txt

with all another files works fine

theashraf commented 3 months ago

Hi @glucka,

The .lottie file you provided contains an issue with the image assets. There are two PNG images included, but they are not valid PNG files.

Both images start with the following binary data:

75 AB 5A 8A

This does not match the expected PNG header:

89 50 4E 47

Here’s the content of the provided .lottie file:

image

Could you please share how you created the .lottie file? If possible, providing the original Lottie JSON that you used for the conversion would be very helpful.

glucka commented 3 months ago

hi @theashraf, thanks for the quick answer! here the original json, convertet here: https://lottiefiles.com/tools/lottie-to-dotlottie animation.zip

theashraf commented 3 months ago

@glucka seems a bug from the lottie-to-dotlottie converter, we're investigating and will let you know

theashraf commented 3 months ago

@glucka The file conversion works well now on LottieFiles; I've tested it. However, the issue still persists, so it’s clear that it originates from the dotLottie player side. I will investigate further and keep you updated.

Here is the converted file for reference: optimized_m04rq00w.lottie.zip

ruoduan-hub commented 2 months ago

I have the same problem. file 👇

dotlottie-player.wasm:0x1ef3 Uncaught RuntimeError: memory access out of bounds

coin.json

coinTwo.json

theashraf commented 1 month ago

@glucka @ruoduan-hub fixed in dotlottie-web v0.35.0