I have the local reference table overflow (max=512) error on Android 4.0.3 (TI sdk 3.1.1GA)
I counted the summary and there's no way I can have that many labels and buttons
Is that between all opened windows? a total?
the report doesn't summarize the 512 max proxies
It's not the typical 1000 tablerows window....
I tried to fix the http://developer.appcelerator.com/question/153270/android-vm-crash
var caps=Ti.Platform.displayCaps; var pWidth = caps.platformWidth; var pHeight = caps.platformHeight;but it solved nothing...maybe more tricks like that that eat up memory?
the error apears when I am clicking on a button ...
I can even do a
b.addEventListener('click', function() { //nothing }it will still crash the app...
here's what I am getting...
E/dalvikvm( 1493): JNI ERROR (app bug): local reference table overflow (max=512) W/dalvikvm( 1493): JNI local reference table (0x8a4e1c0) dump: W/dalvikvm( 1493): Last 10 entries (of 512): W/dalvikvm( 1493): 511: 0xb508ed48 ti.modules.titanium.ui.TextFieldProxy W/dalvikvm( 1493): 510: 0xb506fc80 ti.modules.titanium.ui.LabelProxy W/dalvikvm( 1493): 509: 0xb505fdc0 ti.modules.titanium.ui.ButtonProxy W/dalvikvm( 1493): 508: 0xb4f4fe70 ti.modules.titanium.ui.TextFieldProxy W/dalvikvm( 1493): 507: 0xb4fb5538 ti.modules.titanium.ui.LabelProxy W/dalvikvm( 1493): 506: 0xb4f57bc0 ti.modules.titanium.ui.TextFieldProxy W/dalvikvm( 1493): 505: 0xb4fce660 ti.modules.titanium.ui.LabelProxy W/dalvikvm( 1493): 504: 0xb4f86800 ti.modules.titanium.ui.TextFieldProxy W/dalvikvm( 1493): 503: 0xb4f511c8 ti.modules.titanium.ui.LabelProxy W/dalvikvm( 1493): 502: 0xb4fba5b8 ti.modules.titanium.ui.TextFieldProxy W/dalvikvm( 1493): Summary: W/dalvikvm( 1493): 1 of java.lang.String W/dalvikvm( 1493): 26 of ti.modules.titanium.ui.ViewProxy (1 unique instances) W/dalvikvm( 1493): 1 of org.appcelerator.kroll.KrollDict W/dalvikvm( 1493): 187 of ti.modules.titanium.ui.TextFieldProxy (7 unique instances) W/dalvikvm( 1493): 1 of org.appcelerator.titanium.proxy.TiViewProxy[] (19 elements) W/dalvikvm( 1493): 106 of ti.modules.titanium.ui.ButtonProxy (4 unique instances) W/dalvikvm( 1493): 2 of org.appcelerator.kroll.runtime.v8.V8Object (2 unique instances) W/dalvikvm( 1493): 188 of ti.modules.titanium.ui.LabelProxy (7 unique instances) E/dalvikvm( 1493): Failed adding to JNI local ref table (has 512 entries) I/dalvikvm( 1493): "KrollRuntimeThread" prio=5 tid=10 RUNNABLE I/dalvikvm( 1493): | group="main" sCount=0 dsCount=0 obj=0xb4a36638 self=0x88ddf10 I/dalvikvm( 1493): | sysTid=1507 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=143734616 I/dalvikvm( 1493): | schedstat=( 0 0 0 ) utm=48 stm=9 core=0 I/dalvikvm( 1493): at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method) I/dalvikvm( 1493): at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:64) I/dalvikvm( 1493): at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:835) I/dalvikvm( 1493): at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1059) I/dalvikvm( 1493): at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:316) I/dalvikvm( 1493): at ti.modules.titanium.ui.ScrollViewProxy.handleMessage(ScrollViewProxy.java:112) I/dalvikvm( 1493): at android.os.Handler.dispatchMessage(Handler.java:95) I/dalvikvm( 1493): at android.os.Looper.loop(Looper.java:137) I/dalvikvm( 1493): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112) I/dalvikvm( 1493): E/dalvikvm( 1493): VM aborting