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.

Bug 268805 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-03 14:34 UTC by Exceptions Reporter
Modified: 2017-10-17 07:32 UTC (History)
11 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 227063


Attachments
stacktrace (1.25 KB, text/plain)
2016-11-03 14:34 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2016-11-03 14:34:46 UTC
This bug was originally marked as duplicate of bug 209982, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.101-b13, Java(TM) SE Runtime Environment, 1.8.0_101-b13
OS: Mac OS X

User Comments:
GUEST: in debug it started going slow then it continued without me pressing it

GUEST: Opening Projects

GUEST: Not sure what went wrong, but Windows 7 crashed.

GUEST: Had a couple files open. Netbeans began to run slower and kept getting slower until crash

GUEST: On loading.

GUEST: took up over 80% of cpu. could not exit, had to kill process

GUEST: .

GUEST: <Please provide a description of the problem or the steps to reproduce>t

GUEST: Debugging standalone file (Ctrl+Shift+F5) was broken (XDebug)

GUEST: Stepping through using xDebug.  Went into catch block after exception was thrown and memory started to get out of hand.

GUEST: Left netbeans running overnight, like I usually do. This morning, it was frozen.

krzysku: Error after open NetBeans

GUEST: Problem occured when debugging php app with xdebug

GUEST: Debugging PHP Code

GUEST: the problem happened when debugging a web scrapper made with simple html dom php api

alexchip: I was simply opening the netbeans when this error appears.

GUEST: step-by-step debuging
PHP x-debug

GUEST: Was debugging, and memory consumption increased to the point where the system was unstanble.  Tried to Quit, but that was unresponsive.  Used the PlugIn Restart IDE to restart (avoiding Force Quit).

GUEST: PHP debugging with Xdebug

GUEST: maxed out my cpu, had to kill

GUEST: symfony 2.8 xdebug

GUEST: Restart MacBook

GUEST: While starting the system it self this error occurs and in workspace three projects are active in that one project have more than fifty directories with may set of files. And in editor section opened around 13 php files (YII framework) each files  have an average 2000 lines of oop code.

GUEST: when opnning netbenas

salvamb: Debugging PHP with Xdebug

GUEST: Debugging a drupal form ajax callback request with xdebug.

GUEST: xdebug again but with custom netbeans conf such as

netbeans_default_options="-J-client -J-Xss7m -J-Xms96m -J-Xverify:none -J-XX:PermSize=70M -J-XX:MaxPermSize=126m -J-XX:MaxNewSize=52M -J-XX:NewSize=52M -J-XX:+UseConcMarkSweepGC  -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled -J-XX:+UseAdaptiveSizePolicy -J-XX:CompileThreshold=100 -J-Djava.net.preferIPv4Stack=true -J-Dsun.java2d.noddraw=true  -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true"

GUEST: running xdebug to watch code execution

GUEST: Was running debugger.

GUEST: opening netbeans

oc666: XDebug was on debugging PHP code and then Netbeans stuck. I need to kill it from CLI

GUEST: ?

GUEST: Start debugging

GUEST: Started Netbeans after previous hang. Opened reasonably large project, opened about 3 small files. Ran debugger. High CPU, unresponsive so forced quit.

GUEST: in debug, cpu maxed out. had to kill job

GUEST: Debug scripts php with XDebug

GUEST: xdebug

GUEST: using the debug functionallity

GUEST: ????? ???? ????????... ????????? ???????..

salvamb: Debugging PHP code

GUEST: occuredwhen i run netbeans

GUEST: Was debugging a 2100+ array()

GUEST: took up all my cpu and had to kill job

GUEST: dont know,... just startup

GUEST: I was debugging a Drupal website using Xdebug and had set the max data payload size to 20K so that I could see the context of the web-page as it was rendering.

GUEST: Debugging with xDebug

GUEST: programming PHP

GUEST: msg at startup

konradc: opened big .js file

wardjk: Same as with Bug 244773

GUEST: Just switch neateabsn on. I also been playing with php debug options.

GUEST: Debugging with local data.

GUEST: Debugging a loop with several activerecords in yii:

      if (is_array($rs)) {
         foreach ($rs as $r) {
            $roles[] = $r->rol;
            $secciones[] = $r->id_seccion;
            $rolesSecciones[] = $r->rolSeccion;
            $seccionesRoles[] = $r->seccionRol;
            $rolesSeccionesq[] = "'" . $r->rolSeccion . "'";
            $seccionesRolesq[] = "'" . $r->seccionRol . "'";
            $seccionesConRol[$r->rol][] = intval($r->id_seccion);
            $rolesConSeccion[$r->id_seccion][] = $r->rol;
            $rolesConSeccion2[$r->id_seccion][] = "'" . $r->rol . "'";
         }
      }

GUEST: tried to animate/debug

GUEST: debugging with xdebug

GUEST: 23 tabs open
In the middle of debugging a large php project with XDEBUG
1 watch added.
Clicked to descend into a function and Netbeans froze.
80% CPU use across all 8 cores being used by Java.

GUEST: while debugging

GUEST: was absent :)

GUEST: Didn't notice any problem...

GUEST: debugging a php project, an array had more that 20 000 elements, broke them down into an array with 9 elements over 500 each, iterated through the array to create a drupal background_process, the ide hanged.

kuko: with php develop

GUEST: hanged in debug mode

GUEST: xdebug debugging

GUEST: just crashed while debugging

patlol: Hello my netbeeans crash when i use xdebug

my config :
$ cat /etc/issue
Linux Mint 13 Maya

$ cat /proc/version
Linux version 3.2.0-23-generic (buildd@crested) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu4) ) #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012

NetBeans IDE 8.0 (Build 201403101706)

$ firefox -v
Mozilla Firefox 29.0

xampp-linux-x64-1.8.3-4
Apache Version : Apache/2.4.9 (Unix) OpenSSL/1.0.1g PHP/5.5.11 mod_perl/2.0.8-dev Perl/v5.16.3 
PHP Version 5.5.11
Zend Engine v2.5.0,  with Xdebug v2.2.5,

on phpinfo() :
xdebug
xdebug support	enabled
Version 	2.2.5
IDE Key 	root

Supported protocols	Revision
DBGp - Common DeBuGger Protocol 	$Revision: 1.145 $

Directive	                Local Value	Master Value
xdebug.auto_trace	Off	Off
xdebug.cli_color	0	0
xdebug.collect_assignments	Off	Off
xdebug.collect_includes	On	On
xdebug.collect_params	0	0
xdebug.collect_return	Off	Off
xdebug.collect_vars	Off	Off
xdebug.coverage_enable	On	On
xdebug.default_enable	On	On
xdebug.dump.COOKIE	no valu

alexchip: I was simply running a PHP program using Xdebug

GUEST: Trying to debug a php application

GUEST: .

pablor2307: Cuando se realiza el debug el IDE responde muy lento y ocupa mucho recurso del procesador

GUEST: Nothing to add

GUEST: That is not a prolblem that is normal for this worther and worther getting program!

GUEST: Debugging PHP

GUEST: happens typically when in debug. laptop has 20gig of ram

GUEST: Debugging PHPMailer

GUEST: Trying to do a debug session.

salvamb: Opening netbeans

GUEST: debugging with xdebug

GUEST: Debugging a PHP Symfony 2 Project with xdebug extension




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(Arrays.java:3332)
   at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137)
   at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121)
   at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:539)
   at java.lang.StringBuilder.append(StringBuilder.java:181)
   at org.netbeans.modules.php.dbgp.packets.DbgpMessage.removeNonXMLCharacters(DbgpMessage.java:313)
Comment 1 Exceptions Reporter 2016-11-03 14:34:52 UTC
Created attachment 162749 [details]
stacktrace