Buffer size mismatch warnings since `0.50.0`
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
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: Buglabel to this issue.
@CptMeatball To help us reproduce the issue introduced in 0.50.0, could you share a minimal repro (small GitHub repo or CodeSandbox/StackBlitz) ?
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.
Same here
Same happens to me after resizing:
const dotLottie = new DotLottie({ ... });
dotLottie.resize();
I am using @lottiefiles/dotlottie-react version 0.17.5
Same here. Any solution to this problem?
This bug is insane, anyone fixing it?
I am experiencing the same problem using @lottiefiles/dotlottie-react. It effects performance too.
As for reproduction, a simple create-next-app + @lottiefiles/dotlottie-react should be enough.