Our widget is locking up after about 1 minute of opening and closing views (sidebar views). After the widget locks up, we simply cannot select any new views. This is an error we are trying to get resolved before submission.
WE 00:02:36:023: [T:6008] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!WE 00:02:36:023: [T:6008] ERROR!ERROR!ERROR!ERROR!ERROR!WE 00:02:36:023: [T:6008] !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!WE 00:02:36:023: [T:6008] WIDGET NAME [www.widgets.mine] // changed name of widgetWE 00:02:36:024: [T:6008] out of memory (init.js: Line 342) // not always this line number, also this line number only assigns a string to a var
We have tried several approaches to resolve our issue. Our views are loaded dynamically only being created when selected (from JSON data). We have used /mem in the log before and after the error. Our memory is a little higher after the error, but it is not substantially different. I can post this log if needed. When a view is no longer in use, we have removed that view from the widget and removed the view from the DOM. Our DOM is consistent in size throughout usage. We have also manually set the views 'cache' and 'controls' to an empty object and set 'rendered' to false before removing the view. We resorted to this method as we could still access the properties of the "unloaded" view after KONtx.application.unloadView was called. It isn't any one view that is causing this behavior. We are using KONtx framework v1.3.
We can use the widget longer in the simulator but we still experience the same behavior. I have read that this may be due to the resources available in the simulator. We have tested this widget on Vizio, Toshiba, and Sony TV's.
Any help and/or suggestions would be greatly appreciated.