Out of memory issue when changing lottie animation

Thanks for the aia dear, Let me check it once

yes sir, initially the animation got cancelled again and again. so I tried this. Which has later resulted in the crash.

casHack (2).aia (439.0 KB)

When I’m testing your aia in companion it is notifying that json file not found

you can crosscheck the source name and the json files present in the asset, this might be a backend bug.
OutOfMemoryError is the most common problem that occurs in android while especially dealing with bitmaps. This error is thrown by the Java Virtual Machine (JVM) when an object cannot be allocated due to lack of memory space and also, the garbage collector cannot free some space. -stackoverflow

I know that why it’s thrown as I’m also an Android Developer, but there are many other issues too with Blockly Editors,
Let me ask staff about this

Anyways @Shantanu_Pandey send me link of any animation you want to use, i want it’s assets url

thank you sir.
I Had other issues with ko.dular too, that’s why I came here.

Thank you for shifting to Niotron and we provide more better services than kod.lar

Please send it once
I’ll set the source to that and then let’s see the issue

Also , I’m trying to make this app function offline.

93344-money-investment.json https://assets1.lottiefiles.com/packages/lf20_06a6pf9i.json
99500-company-statistic-graph.json https://assets4.lottiefiles.com/packages/lf20_22mjkcbb.json
91889-budgeting.json https://assets6.lottiefiles.com/packages/lf20_l5o1uey5.json
90342-security.json https://assets3.lottiefiles.com/packages/lf20_msdmfngy.json

I replaced the source files with the url’s but the issue still persists.

Did you find any solutions?

I’m so sorry @Shantanu_Pandey, i had forgot about it, I’ll check it today and will inform you at eve, will it be okay?

yeah, no problem.

@Shantanu_Pandey you can try using more than one Lottie component if the problem still exists i will check the aia

This sounds like a solution, also you gave me an idea.
Let me check if it works. :+1:

I’ve made it work @Horizon @iaditya_nanda :partying_face:
We have to use different Lottie components and make them make them visible and invisible on the click of the button instead of changing the source. Also , make the default state of the Lottie animation as invisible.

Congratulations @Shantanu_Pandey, I’m happy you have got your solution
I’m closing the thread now