dotlottie-web icon indicating copy to clipboard operation
dotlottie-web copied to clipboard

Buffer size mismatch warnings since `0.50.0`

Open CptMeatball opened this issue 4 months ago • 8 comments

Overview

We are getting the following warning hundreds of times in the log.

Buffer size mismatch: got 493024, expected 113680

It seems to originate from:

https://github.com/LottieFiles/dotlottie-web/blob/1f86c5a72dce452c4fab20176fd91f22c7b19fa5/packages/web/src/dotlottie.ts#L622

Image

Stack

We're running a Svelte 5 set-up, but we are not using the svelte component of the repository as this is still in Svelte 4 and has way more functionality than we need.

Consuming repo

What repo were you working in when this issue occurred?

DotLottie-web (?)

Labels

  • [ ] Add the Type: Bug label to this issue.

CptMeatball avatar Aug 25 '25 12:08 CptMeatball

@CptMeatball To help us reproduce the issue introduced in 0.50.0, could you share a minimal repro (small GitHub repo or CodeSandbox/StackBlitz) ?

theashraf avatar Aug 27 '25 06:08 theashraf

I've created a minimal reproduction here: StackBlitz link.

I've noticed the warning consistently occurs when initializing a .lottie animation inside a Dialog component before its transition finishes. If I delay the animation until after the dialog is fully rendered, the warning no longer appears.

DDDDD12138 avatar Sep 02 '25 04:09 DDDDD12138

Same here

Arian-Hamdi avatar Oct 09 '25 04:10 Arian-Hamdi

Same happens to me after resizing:

const dotLottie = new DotLottie({ ... });
dotLottie.resize();

I am using @lottiefiles/dotlottie-react version 0.17.5

im-dima avatar Oct 13 '25 15:10 im-dima

Same here. Any solution to this problem?

MatheusGalhani avatar Oct 23 '25 01:10 MatheusGalhani

This bug is insane, anyone fixing it?

adi-works avatar Oct 23 '25 10:10 adi-works

I am experiencing the same problem using @lottiefiles/dotlottie-react. It effects performance too.

arshaan-abh avatar Nov 23 '25 14:11 arshaan-abh

As for reproduction, a simple create-next-app + @lottiefiles/dotlottie-react should be enough.

arshaan-abh avatar Nov 23 '25 14:11 arshaan-abh