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

web: wasm error "null function or function signature mismatch"

Open theashraf opened this issue 11 months ago • 2 comments

Hello, I'm still getting this error, it's only happening when there's a set width and height, whether it is set on the parent or on the component itself.

It happens when mounting and unmounting. Here's an example: https://codesandbox.io/p/sandbox/znd8vn

I also get null function or function signature mismatch

Originally posted by @kgelpes in #376

theashraf avatar Jan 27 '25 15:01 theashraf

Experiencing the same issue

UNICEFViktor avatar Mar 10 '25 12:03 UNICEFViktor

@kgelpes https://codesandbox.io/p/sandbox/dotlottie-memory-out-of-bounds-forked-r6q5n3?file=%2Fsrc%2FApp.js%3A8%2C1

You can control the animation visibility by toggling the display style property between none and block. This keeps the animation mounted and avoids the issue altogether. You can see it working as expected in the updated CodeSandbox example above.

The root cause is still under investigation but this workaround might help for now.

cc @UNICEFViktor

theashraf avatar Apr 02 '25 17:04 theashraf

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.

github-actions[bot] avatar Jun 02 '25 02:06 github-actions[bot]

fixed in latest @lottiefiles/[email protected]

theashraf avatar Jun 15 '25 15:06 theashraf