RAM Usage restricted to 3MB


#5

That’s more the phone’s restriction than Thunkable…


#6

Everything depends on how you use screen sizing and how many images you have on the screen at the same time.

/Boban


#7

My cousin, the guy that originally made the Dice app.


#8

@Taifun @Boban_Stojmenovic

Tried. I reduced All the PIXEL SIZES of my Images and It still Crashes. I tried adjusting a Few ADMOB components and then It gave way for 3 cycles. I ran a Logcat test and it was obviously OUT OF MEMORY ERROR. I just removed all the blocks from my screen and started to test each block individually. Apparently the Error is getting images from firebase. There are quite a lot of images that I append to the ColinTree Slideshow Extension, so I THINK that’s why the app crashes.

Below are screenshots of My blocks. And it still doesn’t cross more than 2 cycles.



#9

I tried Tribblehunters Method and also the Manager screen method. All my icons have a maximum pixel size of 350x350 (I know I have some large Pixels). But the app ONLY CRASHES when I get around 10 images from Firebase.
@Taifun


#10

you also might want to follow tip 2? see especially @Italo’s comments there…


Taifun


#11

Ahhh… Sounds Fair. But the Images are Uploaded by the USER and are stored in cloudinary. Every image probably has a different Aspect Ratio, and I have no idea how to mess around with them. Also would changing the ration crop the images upto some extent.


#12

before uploading the images you might want to reduce its size (width & height)
the image extension and its Resize or Scale method might be able to help
Taifun


#13

Will try and get back to you. Thanks A Million!


#14

Unfortunately, I have no experience with ColinTree Slideshow how it handles images nor with firebase when it downloads images

Just a thought!
ColinTree Slideshow does it load all the images in the phones memory if so 1 image 350*350px memory consumption 490000 bytes at fixed sizing and/or responsive density 1, responsive density 3 which is common 490000 *3= 1470000 bytes

10 images 4900000 --> *3= 14700000 bytes
50 images 24500000 --> *3= 73500000 bytes

Btw, I just tried ColinTree Slideshow demo aia and it crashed on my phone Samsung Note 8, it loaded only 5 images 1000*350px…

/Boban


#15

So does it mean to say that the Slideshow extension is Buggy. The docs say that it has an ASYNCHRONOUS IMAGE LOADER Built into the extension. Does that mean Anything? If you think the extension is buggy… Is there ANY POSSIBLE METHOD to display a “list of images” obtained from firebase sequentially without crashing. ANY METHOD. I know I’ve asked this in the forum before, but it yielded no response.

P.S: I tried the COLINTREE Slideshow v2 aia on my phone with I’m sure the same 5 images. It didn’t crash and worked seamlessly :frowning: I use a Oneplus X.


#16

Hello @antonyjohne

Create a logic to get the list of items with few numbers and then keep appending the fetch data. You can append the get method using scrolling handler or a button etc.

Thanks
Abdul


#17

Hey @mannankhanabdul Thanks for the input. Sounds like a great idea. However wouldn’t appending the data require me to have a dynamic number of Images components when I scroll Up. I don’t know if thunkable supports adding a dynamic Number of components yet.


#18

You can create a counter - with clock component for each item in the list - items = global counter - you can control the counter with a clock specifying milliseconds so that you get few amount of data when scroll handler is triggered evertime and appends.


#19

Hey @Taifun I tried your extension for scaling images, but they seem to work only for .jpg files and does not work for .png files. The photos that the user uploads may also be .png so I’m not sure how to proceed with this.


#20

But when I load values from the counter, I would have to set the value to an Image Component right? How do I predetermine the Number of Image components required? For a clear picture, I’m planning to achieve something Similar to that of an Instagram feed, where there a lot of images in scroll View.

P.S: I’m really sorry to bother you with questions. :sweat_smile:


#21

For feature requests please contact me by email. To be a sponsor of a new method already is possible starting from only 10 USD! With your contribution you will help the complete App Inventor community. Thank you.

https://puravidaapps.com/contact.php
Taifun


#22

Okay Taifun. Will keep in Mind!:slight_smile: Thanks a Million for your help!


#23

Any updates on expanding the ram size of the app?


#24

YES! I had PM Albert regarding this issue and he told me that Thunkable X Had a Higher app usage limit, i.e 5X more than that at Android.

Better start getting used to that Daunting iOS Interface now :wink: