01-04-2019 06:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-04-2019 06:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
I have implemented multi-screens app all data we are getting from our server using fetch API . When I calling web API and getting a response then assigned to an array which is populated to Virtual-tile-list.
Its working fine when I calling web API 2-3 times. In each time I am reassigned array to latest one.
ie: var info=[]
info=responseData;
The app is crashing while calling API 4th time.
I don't know how to handle this issue.
Please guide me which approach I need to follow.
01-04-2019 12:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


01-04-2019 12:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I'm wondering if it's the same problem(s) as here.
A concern I have is that SVG elements can't be deleted, so their memory can't be released and they will continue to hold references to whatever data they were populated with. If you reassign the variable in your code (as you are doing), perhaps that disassociates the SVG elements' data from your code (ie, what in info). At a stretch, I can see how this could result in an accumulation of stuff in memory.
Have you tried using the memory API to try to identify when the memory reduces?
I've had some limited success by removing data references in SVG elements before reassigning the data in my code. That way, the old data should be releasable when the memory garbage collector runs.
Gondwana Software

01-05-2019 13:00 - edited 01-05-2019 13:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-05-2019 13:00 - edited 01-05-2019 13:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I've started getting this recently as well - same as you, using the Ionic Views system and when using virtual tile lists. I am populating the vtiles via reading in from a json file, and it would appear that me loading in my file of the tiles' content on one screen and then fairly quickly going back to another screen which loads in another file is overloading the memory limit.
I assumed it was just my mistake (and I know I can reduce the save files quite a bit...), so I was looking into optimisation tips on here the other night, but if a number of us are getting this recently when using this framework and SDK 3.0, I wonder if something has changed to catch us all out?
EDIT: Oh, I see in the linked thread above that's exactly what you're all suggesting there also 😉

01-07-2019 23:36 - edited 01-07-2019 23:37
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-07-2019 23:36 - edited 01-07-2019 23:37
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
No i didn't use memory API to try to identify when the memory reduces please give me a memory api details so i can try it.

01-07-2019 23:50
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


01-07-2019 23:50
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
https://dev.fitbit.com/build/reference/device-api/system/#interface-memory
Gondwana Software

01-08-2019 22:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-08-2019 22:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
@Gondwana Thanks 🙂
