Skip to content

Text not rendered correctly when using multiple player instances #877

Description

@sebmjoll

Package

  • @lottiefiles/dotlottie-web (core)
  • @lottiefiles/dotlottie-react
  • @lottiefiles/dotlottie-vue
  • @lottiefiles/dotlottie-svelte
  • @lottiefiles/dotlottie-solid
  • @lottiefiles/dotlottie-wc

Description

If there are multiple players, destroying and recreating them with updated text leads to getting some missing characters. In the attached reproduction html file, the letters "b" and "n" seem to disppear and we get "aaa" rendered instead of "banana". However, when doing the same text updates when only one player is used, all text is correct.

Steps to reproduce

You can use this standalone html page to reproduce the problem:

lottie.html

Here are screen recordings showing that the text is correct when using a single player, but not when using two players:

lottie_1_player_ok.mov
lottie_2_players_bug.mov

Expected behavior

The text is rendered correctly.

Actual behavior

Some characters are not rendered.

Animation file

Here is the .json animation that has been used to create the reproduction recipe html file:

2_lines.json

Environment

  • Package version: tested with versions 0.69.0 and 0.73.0 of the lottie player
    Verified on MacOS 26.5 with Chrome (148.0.7778.168) and Firefox (151.0)
    Verified on Linux (CachyOS) with Chrome and Firefox
    Verified on Windows 10 with Chrome, Firefox and Edge

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions