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.
Build: NetBeans IDE Dev (Build 201203210400) VM: Java HotSpot(TM) Client VM, 20.6-b01, Java(TM) SE Runtime Environment, 1.6.0_31-b05 OS: Windows 7 User Comments: naitsirch: I have debugged PHP Code. The Exception occured while str_replace function was executed with a large input string. Stacktrace: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:0) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:0) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:0) at java.lang.StringBuilder.append(StringBuilder.java:0) at org.netbeans.modules.php.dbgp.packets.DbgpMessage.removeNonXMLCharacters(DbgpMessage.java:330) at org.netbeans.modules.php.dbgp.packets.DbgpMessage.getNode(DbgpMessage.java:356)
Created attachment 117142 [details] stacktrace
I'm not sure that I'll be able to do something with that. There is a "each character" control, because xdebug is not able (unfortunately, ask Derick Rethans why? :/) to send us only valid XML characters, so we have to check them ourself, separately and build the whole new string from scratch...char by char...that's why StringBuilder is so exhausted...:/
Okay, that's a problem... Maybe you could check memory usage and show just a "friendly" error message to the user ;-)
P4 as a reminder because we can't do anything with that...char by char check has to be done.
*** Bug 244438 has been marked as a duplicate of this bug. ***
*** Bug 238681 has been marked as a duplicate of this bug. ***
It is long ago when this bug happened the last time for me. Does it make sense to close it for now?
Well in my case it seems this is happened in different scenario, which is described below 1. Open you NetBeans IDE 8.0.2 2. Leave your system idle for atleast 30-35 Minute 3. Now open any file in netbeans by using Menu File=>Open File 4. And now select 15-20 rows and click on 'Tab' key on your computer's keyboard 5. Your system will hungs up and after a while you'll get this error
Please, start NetBeans with increased Xmx parameter. Thanks.