Out of memory issue when changing lottie animation

java.lang.OutOfMemoryError: Failed to allocate a 24 byte allocation with 1046088 free bytes and 1021KB until OOM, target footprint 201326592, growth limit 201326592; failed due to fragmentation (largest possible contiguous allocation 66060288 bytes)

Hello @Shantanu_Pandey,
Welcome to :niotron: iotron

I have checked Lottie component and its working fine for me. These are the blocks that i have made

image

Demo

Niotron Companion (433.6 KB)

Tested on Companion

Please send aia once

Thanks for quick response!
It works only one time, when doing again the app crashes.

Means again after clicking on that Button?

casHack.aia (439.0 KB)

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?