Skip to content

Memory issues if animation is loaded and destroyed several times. #1

@ThomasVogelpohl

Description

@ThomasVogelpohl

Hi kbroulik,

at first thank you for your Lottie QML wrapper, it really works quite well.

Unfortunately, I do have issues with increasing memory demand. If I monitor the memory demand with the QML Profiler, the demand for memory is increasing each time I load a Animation JSON file.

This is a screenshot from the QML Profiler:
https://github.com/ThomasVogelpohl/lottie-qml/blob/master/screenshots/Screenshot%202019-02-06%20at%2021.17.16.png

I have tried calling the destroy() functions for the JavaScript lib, but it does not seem to make any difference.

I have forked your Repo and added a few files to be able to easily demonstrate the problem:

  1. Clone:
    https://github.com/ThomasVogelpohl/lottie-qml/commits/master
  2. Load the OwnLottieCompiler.pro in QT Creator.
  3. Compile and start the QML Profiler

The code will load and unload a Lottie Animation 10 times.
You see that the memory bars are steadily increasing.

So you have any suggestion on what to try to release the memory ?

Thanks,
Thomas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions