thorvg / thorvg

Thor Vector Graphics is a lightweight portable library used for drawing vector-based scenes and animations including SVG and Lottie. It can be freely utilized across various software platforms and applications to visualize graphical contents.

Home Page:https://www.thorvg.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tvg_load_data Panics with Segmentation Fault When Loading Empty Lottie

theashraf opened this issue · comments

I'm encountering an issue when trying to load an empty Lottie file in the dotLottie-rs player. The function tvg_load_data is panicking and resulting in a segmentation fault error.

Here is the empty Lottie:

{
  "nm": "Untitled file",
  "ddd": 0,
  "h": 500,
  "w": 500,
  "meta": { "g": "@lottiefiles/creator 1.12.0" },
  "layers": [],
  "v": "5.7.0",
  "fr": 30,
  "op": 150,
  "ip": 0,
  "assets": []
}