Problem exceeding device memory

Hello,
After to implement this controller I have encountered an error produced when selecting the images from the carousel.
The exception occurs when I tap on the images of carousel and, depending on device and memory, after a specified number of touches, the application closes. A PDA with little RAM memory only holds 4 selections, a mobile with a little more RAM holds up to 10.
The message error is this:
     Java.Lang.OutOfMemoryError: 'Failed to allocate a 9437196 byte allocation with 3311248 free bytes and 3MB until OOM'

Finding on and consulting forums I tried to add android:largeHeap="true" on my AndroidManifest.xml but this didn't work much (the application went from supporting 2 touches to 4).

Has this happened to anyone before? Do you have any idea how to solve this problem?

Thank you

9 Replies

SS Suganya Sethuraman Syncfusion Team January 6, 2021 01:34 PM UTC

HiDiego,

Greetings from Syncfusion.

We are not able to reproduce the reported issue and we have attached the testing sample for your reference. Could you please check whether you are able to reproduce the issue in the attached sample?

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Carousel-211869911

If not, could you please share the modified the sample based on your requirement and share the device detail and syncfusion product version that you have used which would be more helpful for us to assist you?

Regards,
Suganya Sethuraman.
 




DF Diego Fdez January 8, 2021 01:08 PM UTC

Hi Suganya,
I have made an example that reproduces the same thing that I have in my application and the error that is generated.
In my app I have a screen with an Image element, carousel with pics and a button to add pics from the camera to the carousel. The mechanism is simple: You can add photos from the camera and to save on the mobile, the carousel loads this pics and when you tap on one pic, the Image element shows it bigger. Something like this with your example:
Screenshot1
 
In your example the pics are from Resources Folder from the application and there aren't any problem with them in this case. I can press as many times as I want and the main image changes without any error.

But when I take photos with the camera and the pics at the carousel are from a directory of the device, the commented error occurs. I add 3 photos and when I press the pics 2-3 times the debuging closes with this message error:
     Java.Lang.OutOfMemoryError: 'Failed to allocate a 9437196 byte allocation with 4186352 free bytes and 6MB until OOM'
ScreenShot2

The problem of Carousel is with files from a directory of the device. I have attached the sample project that reproduce the error for you to test.

I use version 18.3.0.53 of SfCarousel in my original app, but there isn't problem because this occurs too with other versions.

thank you for your attention




Attachment: CarouselError_DiegoFdez_7759adf2.7z


SS Suganya Sethuraman Syncfusion Team January 11, 2021 01:00 PM UTC

Hi Diego,

Thanks for the update.

We have checked the provided sample in Android device with the Honor 9(lite) API version 8. Please find the video from below.

Video:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/CarouselCamara-969664844

Since we are not aware of your exact application scenario and we could not able to reproduce the same. So, can you let us know the issue reproduced device details and API version. It will be help to provide the better solution at earliest.

Regards,
Suganya Sethuraman
 



DF Diego Fdez January 11, 2021 04:12 PM UTC

Hello,
I am attaching a video with the error that occurs. During the debugging and when the carousel has photos from a directory, if I tap two times in diferent pics the apps closes and the message error is the mentioned ("Java.Lang.OutOfMemoryError: 'Failed to allocate a 9437196 byte allocation with 3311248 free bytes and 3MB until OOM")
I use for this a Seypos Scanmax 22D (PDA) with Android 7.
This error occurs too with other smartphones where I have tried this.

Attachment: CarouselTestFailed_74a56c23.zip


DF Diego Fdez January 11, 2021 04:31 PM UTC

I attach you another video of  the test that I have made with a Huawei Y6p. In this case, the message error is: "Java.Lang.OutOfMemoryError: 'OOM allocating Bitmap with dimensions 1560 x 2080'"
If you try to click more times on the images you will surely get the same error.
I hope this information can be used to better understand the error.

Attachment: CarouselError_HuaweiY6p_2730911f.zip


SS Suganya Sethuraman Syncfusion Team January 12, 2021 02:13 PM UTC

Hi Diego,

We are currently validating on this and we will update the details on January 15, 2021. We appreciate your patience until then.

Regards,
Suganya Sethuraman.
 



DF Diego Fdez January 12, 2021 03:04 PM UTC

Hi Suganya,
Ok, I wait for your answer.
Thanks and regards.


SS Suganya Sethuraman Syncfusion Team January 13, 2021 07:21 AM UTC

Hi Diego,

Thanks for the update.

As we said earlier, we will update the details on January 15, 2021. We appreciate your patience until then.

Regards,
Suganya Sethuraman.
 



SS Suganya Sethuraman Syncfusion Team January 18, 2021 12:11 PM UTC

Hi Diego,

We have created a new incident under your Direct trac account to follow up with this query. We suggest you to follow up with the incident for further updates. Please log in using the below link.

https://www.syncfusion.com/account/login

Regards,
Suganya Sethuraman.
 


Loader.
Up arrow icon