rlottie icon indicating copy to clipboard operation
rlottie copied to clipboard

Stack overflow loading a specific animation

Open FrayxRulez opened this issue 5 years ago • 3 comments

Hello, The following animation crashes the library because of a stack overflow:

tgs.txt

FrayxRulez avatar Oct 26 '20 18:10 FrayxRulez

@FrayxRulez , How did you generate this resource file?. looks like this one is modified manually and there is a cyclic loop in the layer hierarchy. which causes the infinite loop.

rlottie avatar Nov 03 '20 02:11 rlottie

Our app uses lottie files for animated stickers that users can manually submit. I know that this brings in a lot of possible issues, but it would be great if this kind of stuff could be handled by rlottie!

FrayxRulez avatar Nov 04 '20 09:11 FrayxRulez

@FrayxRulez , Will see if i can put some check to detect the cycle in layer hierarchy. But the main use case of rlottie library is to consume the exported json file from the After Effect not any random json file. maybe I can add some sanity check in the debug build don't know if that will be any help to your usecase.

smohantty avatar Nov 05 '20 05:11 smohantty