Hey Folks,
I'm developing an app that contains various windows such as news, on-demand, tv guide etcetera.
When opening the news page you have a list view with sections for each news category, containing each 1 highlighted item and 3 other items.
When you click on an item it opens a scrollable view, containing the items including others up to a max of 15 views in the scrollable view.
When opening and closing this scrollable view like five times, I get the following error.
[ERROR] : dalvikvm: JNI ERROR (app bug): local reference table overflow (max=512) [WARN] : dalvikvm: JNI local reference table (0xb91b7ee0) dump: [WARN] : dalvikvm: Last 10 entries (of 512): [WARN] : dalvikvm: 511: 0xa4e83368 java.lang.String "enabled" [WARN] : dalvikvm: 510: 0xa840f910 org.appcelerator.kroll.runtime.v8.V8Object [WARN] : dalvikvm: 509: 0xa840f910 org.appcelerator.kroll.runtime.v8.V8Object [WARN] : dalvikvm: 508: 0xa83f7490 java.lang.Object[] (1 elements) [WARN] : dalvikvm: 507: 0xa674ce78 org.appcelerator.titanium.proxy.RProxy [WARN] : dalvikvm: 506: 0xa83f7418 java.lang.String "app://alloy/cont..." (36 chars) [WARN] : dalvikvm: 505: 0xa674ce78 org.appcelerator.titanium.proxy.RProxy [WARN] : dalvikvm: 504: 0xa674caf8 org.appcelerator.titanium.proxy.RProxy [WARN] : dalvikvm: 503: 0xa674ce78 org.appcelerator.titanium.proxy.RProxy [WARN] : dalvikvm: 502: 0xa674caf8 org.appcelerator.titanium.proxy.RProxy [WARN] : dalvikvm: Summary: [WARN] : dalvikvm: 1 of java.lang.Object[] (1 elements) [WARN] : dalvikvm: 3 of java.lang.String (3 unique instances) [WARN] : dalvikvm: 4 of org.appcelerator.kroll.runtime.v8.V8Object (3 unique instances) [WARN] : dalvikvm: 1 of org.appcelerator.kroll.KrollDict [WARN] : dalvikvm: 1 of ti.modules.titanium.ui.widget.listview.ListSectionProxy [WARN] : dalvikvm: 502 of org.appcelerator.titanium.proxy.RProxy (2 unique instances)What I always do when closing these scrollable views, and that's what I'm doing throughout the whole application, is add a custom 'destroy:self' event to the top container of the view, like top of the tree in an alloy view.
For example for the scrollable view I do the following:
// The scrollableview is $.items function destroySelf(e) { $.items.removeEventListener("destroy:self", destroySelf); var views = $.items.getViews(); for(var v in views) { var view = views[v]; view.removeAllChildren(); $.items.removeView(view); } $.items = views = view = v = null; $.destroy(); }; $.items.addEventListener("destroy:self", destroySelf);This is to keep the references table low, remove views correctly, and improve performance.
Is there any reason why I get this error, containg 502 entries of org.appcelerator.titanium.proxy.RProxy?
Patrick van Vuuren