Forum Discussion

joetesta's avatar
joetesta
Roku Guru
10 years ago

any way to find orphaned objects?

Greetings,

I'm stuck on an issue and hoping for some help.
When our app launches, it makes an API call and gets data (currently playing programs). At this point hitting home button shows about 30K orphaned objects.

Now I'm trying to add a feature that allows the user to view more data (future scheduled programs) by making additional API calls. After a point, the roku freezes and reboots.
I assumed it was due to too much data stored in memory, so I'm testing this same feature by trying not to store any of the data; just making the API calls and it's still freezing and rebooting after 10 + API calls.
I'm trying to figure out why, and when exiting the app after a few such API calls, there are > 300K orphaned objects.
I've been tracing through the code and looking for anything that might be storing the data and building up these orphans but having no success.
Is there any way to see where these orphans are being stored? Are they necessarily in the global (m) array?

thanks in advance for any help with this,
Joe

15 Replies