Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Showing modal page with image background leads to Out Of Memory error #2147
Can't fix this issue in tns-core-modules. This is a problem of the Android Runtime. For more information see NativeScript/android-runtime#503
Which platform(s) does your issue occur on?
Please provide the following version numbers that your issue occurs with:
Every time when the modal page with background image is shown, the Allocated Heap is increased, and this will lead to
Problem reproduced here:project
Until we understand why this happens, there is a quick workaround to avoid the OutOfMemoryException. Simply call gc() in the modal closed callback like this:
This will collect the bitmaps and free memory.