This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When clicking the variables tab while debugging this error is received.
Created attachment 78694 [details] Messages Log
*** Issue 161056 has been marked as a duplicate of this issue. ***
increasing to P2
*** Issue 159296 has been marked as a duplicate of this issue. ***
P2 or P1 will be evaluated and priority will be changed appropriately
This issue has already 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=148126
Created attachment 78853 [details] suggested fix
Deserves evaluation if NestedTreeModelFilter.getChildrenCount is right? Please comment! NestedTreeModelFilter: public int getChildrenCount(TreeModel original, Object node) throws UnknownTypeException { return Integer.MAX_VALUE; // [TODO] } Called in this thread: "Debugger Values Evaluator" daemon prio=1 tid=0x083ff9d8 nid=0xb65 runnable [0x808f7000..0x808f7dc0] at org.netbeans.modules.debugger.ui.views.ViewModelListener$NestedTreeModelFilter.getChildrenCount(ViewModelListener.java:659) at org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildrenCount(Models.java:714) at org.netbeans.modules.php.dbgp.models.VariablesModelFilter.getFilteredChildren(VariablesModelFilter.java:145) at org.netbeans.modules.php.dbgp.models.VariablesModelFilter.getChildrenCount(VariablesModelFilter.java:112) at org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildrenCount(Models.java:714) at org.netbeans.spi.viewmodel.Models$CompoundModel.getChildrenCount(Models.java:3158) at org.netbeans.modules.viewmodel.TreeModelNode$TreeModelChildren.evaluateLazily(TreeModelNode.java:804) at org.netbeans.modules.viewmodel.TreeModelNode$LazyEvaluator.run(TreeModelNode.java:1253) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)
suggested fix by rmatous was checkes and appears to behave properly.
FYI: The getChildrenCount() was fixed by Dan in http://hg.netbeans.org/main-silver?cmd=changeset;node=e0a9fb9f70da Anyway, since many models have to do almost the same work in getChildren() and getChildrenCount(), we just return Integer.MAX_VALUE in such models for performance reasons. There's no real use for getChildrenCount() yet. Therefore it's always a good idea to work with Math.min(<my children count>, <requested children count>).
Build: NetBeans IDE Dev (Build 090326) VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b02 OS: Linux, 2.6.27-11-generic, amd64 User Comments: Thrown when opening variables window in debugging session. Stacktrace: java.lang.OutOfMemoryError: Requested array size exceeds VM limit at java.util.ArrayList.<init>(ArrayList.java:112) at org.netbeans.modules.php.dbgp.models.VariablesModelFilter.getFilteredChildren(VariablesModelFilter.java:146) at org.netbeans.modules.php.dbgp.models.VariablesModelFilter.getChildrenCount(VariablesModelFilter.java:112) at org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildrenCount(Models.java:714) at org.netbeans.spi.viewmodel.Models$CompoundModel.getChildrenCount(Models.java:3158) at org.netbeans.modules.viewmodel.TreeModelNode$TreeModelChildren.evaluateLazily(TreeModelNode.java:804)
Created attachment 78908 [details] stacktrace
Fixed in web-main: http://hg.netbeans.org/web-main/rev/6c8ef9ceab89 Filip, this fix probably should be fixed also into M3 clone when its ready. Do you agree?
Fixed into M3: http://hg.netbeans.org/release67_m3/rev/f799b2cb28a3
this should and was fixed in 6.7 M3. issue verified
Build: NetBeans IDE Dev (Build 200903250219) VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.lang.OutOfMemoryError: Requested array size exceeds VM limit at java.util.ArrayList.<init>(ArrayList.java:112) at org.netbeans.modules.php.dbgp.models.VariablesModelFilter.getFilteredChildren(VariablesModelFilter.java:146) at org.netbeans.modules.php.dbgp.models.VariablesModelFilter.getChildrenCount(VariablesModelFilter.java:112) at org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildrenCount(Models.java:714) at org.netbeans.spi.viewmodel.Models$CompoundModel.getChildrenCount(Models.java:3158) at org.netbeans.modules.viewmodel.TreeModelNode$TreeModelChildren.evaluateLazily(TreeModelNode.java:804)
Created attachment 79111 [details] stacktrace