The app plays a series of video clips and images in rotation through a webview activity. Even though total memory consumption at any point is < 150-200 mb, suddenly after around 20 hours of playing memory usage suddenly went down to zero and the app froze. I monitored all this through adb. The fire tv stick is non-responsive to the controller and basically needs to be switched off and on manually.
What could be some possible sources of this instability? Is the kernel trying to do something that isn't being handled? Do I need to be clearing some kind of buffers or need to add any additional event handling to the activity?
When I access the same URL through a normal web browser there are absolutely no issues.